Searched refs:seedmask (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 65 unsigned char seedmask[EVP_MAX_MD_SIZE]; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() local 128 if (PKCS1_MGF1(seedmask, mdlen, db, dbmask_len, mgf1md) < 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 132 seed[i] ^= seedmask[i]; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 136 OPENSSL_cleanse(seedmask, sizeof(seedmask)); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
|
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa.c | 1316 u8 *seedmask = dbmask, *maskedseed = NULL, *maskeddb = NULL; in rsaes_oaep_encrypt() local 1386 ret = _mgf1(maskeddb, (u16)khlen, seedmask, hlen, mgf_hash_type); EG(ret, err); in rsaes_oaep_encrypt() 1389 maskedseed[i] = (seed[i] ^ seedmask[i]); in rsaes_oaep_encrypt() 1431 u8 seedmask[MAX_DIGEST_SIZE]; in _rsaes_oaep_decrypt() local 1436 u8 *seed = seedmask, *maskedseed = NULL, *maskeddb = NULL, *db = NULL; in _rsaes_oaep_decrypt() 1444 ret = local_memset(seedmask, 0, sizeof(seedmask)); EG(ret, err); in _rsaes_oaep_decrypt() 1488 ret = _mgf1(maskeddb, (u16)khlen, seedmask, hlen, mgf_hash_type); EG(ret, err); in _rsaes_oaep_decrypt() 1491 seed[i] = (maskedseed[i] ^ seedmask[i]); in _rsaes_oaep_decrypt()
|