Searched refs:emlen (Results 1 – 1 of 1) sorted by relevance
/external/boringssl/src/crypto/rsa/ |
D | padding.c | 376 unsigned i, emlen, mdlen; in RSA_padding_add_PKCS1_OAEP_mgf1() local 396 emlen = tlen - 1; in RSA_padding_add_PKCS1_OAEP_mgf1() 397 if (flen > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 403 if (emlen < 2 * mdlen + 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 416 memset(db + mdlen, 0, emlen - flen - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1() 417 db[emlen - flen - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1() 418 memcpy(db + emlen - flen - mdlen, from, flen); in RSA_padding_add_PKCS1_OAEP_mgf1() 423 dbmask = OPENSSL_malloc(emlen - mdlen); in RSA_padding_add_PKCS1_OAEP_mgf1() 430 if (PKCS1_MGF1(dbmask, emlen - mdlen, seed, mdlen, mgf1md) < 0) { in RSA_padding_add_PKCS1_OAEP_mgf1() 433 for (i = 0; i < emlen - mdlen; i++) { in RSA_padding_add_PKCS1_OAEP_mgf1() [all …]
|