Home
last modified time | relevance | path

Searched refs:emlen (Results 1 – 1 of 1) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c334 size_t emlen = to_len - 1; in RSA_padding_add_PKCS1_OAEP_mgf1() local
335 if (from_len > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1()
340 if (emlen < 2 * mdlen + 1) { in RSA_padding_add_PKCS1_OAEP_mgf1()
352 OPENSSL_memset(db + mdlen, 0, emlen - from_len - 2 * mdlen - 1); in RSA_padding_add_PKCS1_OAEP_mgf1()
353 db[emlen - from_len - mdlen - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP_mgf1()
354 OPENSSL_memcpy(db + emlen - from_len - mdlen, from, from_len); in RSA_padding_add_PKCS1_OAEP_mgf1()
359 uint8_t *dbmask = OPENSSL_malloc(emlen - mdlen); in RSA_padding_add_PKCS1_OAEP_mgf1()
366 if (!PKCS1_MGF1(dbmask, emlen - mdlen, seed, mdlen, mgf1md)) { in RSA_padding_add_PKCS1_OAEP_mgf1()
369 for (size_t i = 0; i < emlen - mdlen; i++) { in RSA_padding_add_PKCS1_OAEP_mgf1()
374 if (!PKCS1_MGF1(seedmask, mdlen, db, emlen - mdlen, mgf1md)) { in RSA_padding_add_PKCS1_OAEP_mgf1()