Lines Matching refs:db

63     unsigned char *db, *seed;  in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()  local
111 db = to + mdlen + 1; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
114 if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL)) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
117 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
119 db[emlen - flen - mdlen - 1] = 0x01; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
120 memcpy(db + emlen - flen - mdlen, from, (unsigned int)flen); in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
135 db[i] ^= dbmask[i]; in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
138 if (PKCS1_MGF1(seedmask, mdlen, db, dbmask_len, mgf1md) < 0) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex()
181 unsigned char *db = NULL, *em = NULL, seed[EVP_MAX_MD_SIZE], in RSA_padding_check_PKCS1_OAEP_mgf1() local
227 db = OPENSSL_malloc(dblen); in RSA_padding_check_PKCS1_OAEP_mgf1()
228 if (db == NULL) in RSA_padding_check_PKCS1_OAEP_mgf1()
263 if (PKCS1_MGF1(db, dblen, seed, mdlen, mgf1md)) in RSA_padding_check_PKCS1_OAEP_mgf1()
266 db[i] ^= maskeddb[i]; in RSA_padding_check_PKCS1_OAEP_mgf1()
271 good &= constant_time_is_zero(CRYPTO_memcmp(db, phash, mdlen)); in RSA_padding_check_PKCS1_OAEP_mgf1()
278 unsigned int equals1 = constant_time_eq(db[i], 1); in RSA_padding_check_PKCS1_OAEP_mgf1()
279 unsigned int equals0 = constant_time_is_zero(db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
316 db[i] = constant_time_select_8(mask, db[i + msg_index], db[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
320 to[i] = constant_time_select_8(mask, db[i + mdlen + 1], to[i]); in RSA_padding_check_PKCS1_OAEP_mgf1()
337 OPENSSL_clear_free(db, dblen); in RSA_padding_check_PKCS1_OAEP_mgf1()