Searched refs:maskeddb (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 166 const unsigned char *maskedseed, *maskeddb; in RSA_padding_check_PKCS1_OAEP_mgf1() local 238 maskeddb = em + 1 + mdlen; in RSA_padding_check_PKCS1_OAEP_mgf1() 240 if (PKCS1_MGF1(seed, mdlen, maskeddb, dblen, mgf1md)) in RSA_padding_check_PKCS1_OAEP_mgf1() 248 db[i] ^= maskeddb[i]; in RSA_padding_check_PKCS1_OAEP_mgf1()
|
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.c | 975 const u8 *h, *salt, *maskeddb = em; in emsa_pss_verify() local 1020 MUST_HAVE(((maskeddb[0] & (~mask)) == 0), ret, err); in emsa_pss_verify() 1030 db[i] = (dbmask[i] ^ maskeddb[i]); in emsa_pss_verify() 1316 u8 *seedmask = dbmask, *maskedseed = NULL, *maskeddb = NULL; in rsaes_oaep_encrypt() local 1342 maskeddb = &em[hlen + 1]; in rsaes_oaep_encrypt() 1382 maskeddb[i] = (db[i] ^ dbmask[i]); in rsaes_oaep_encrypt() 1386 ret = _mgf1(maskeddb, (u16)khlen, seedmask, hlen, mgf_hash_type); EG(ret, err); in rsaes_oaep_encrypt() 1436 u8 *seed = seedmask, *maskedseed = NULL, *maskeddb = NULL, *db = NULL; in _rsaes_oaep_decrypt() local 1484 maskeddb = &em[hlen + 1]; in _rsaes_oaep_decrypt() 1488 ret = _mgf1(maskeddb, (u16)khlen, seedmask, hlen, mgf_hash_type); EG(ret, err); in _rsaes_oaep_decrypt() [all …]
|