Home
last modified time | relevance | path

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

/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c491 int maskedDBLen, MSBits, emLen; in RSA_verify_PKCS1_PSS_mgf1() local
519 emLen = RSA_size(rsa); in RSA_verify_PKCS1_PSS_mgf1()
526 emLen--; in RSA_verify_PKCS1_PSS_mgf1()
528 if (emLen < (int)hLen + 2 || emLen < ((int)hLen + sLen + 2)) { in RSA_verify_PKCS1_PSS_mgf1()
533 if (EM[emLen - 1] != 0xbc) { in RSA_verify_PKCS1_PSS_mgf1()
537 maskedDBLen = emLen - hLen - 1; in RSA_verify_PKCS1_PSS_mgf1()
590 size_t maskedDBLen, MSBits, emLen; in RSA_padding_add_PKCS1_PSS_mgf1() local
606 emLen = RSA_size(rsa); in RSA_padding_add_PKCS1_PSS_mgf1()
608 assert(emLen >= 1); in RSA_padding_add_PKCS1_PSS_mgf1()
610 emLen--; in RSA_padding_add_PKCS1_PSS_mgf1()
[all …]
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c491 int maskedDBLen, MSBits, emLen; in RSA_verify_PKCS1_PSS_mgf1() local
519 emLen = RSA_size(rsa); in RSA_verify_PKCS1_PSS_mgf1()
526 emLen--; in RSA_verify_PKCS1_PSS_mgf1()
528 if (emLen < (int)hLen + 2 || emLen < ((int)hLen + sLen + 2)) { in RSA_verify_PKCS1_PSS_mgf1()
533 if (EM[emLen - 1] != 0xbc) { in RSA_verify_PKCS1_PSS_mgf1()
537 maskedDBLen = emLen - hLen - 1; in RSA_verify_PKCS1_PSS_mgf1()
590 size_t maskedDBLen, MSBits, emLen; in RSA_padding_add_PKCS1_PSS_mgf1() local
606 emLen = RSA_size(rsa); in RSA_padding_add_PKCS1_PSS_mgf1()
608 assert(emLen >= 1); in RSA_padding_add_PKCS1_PSS_mgf1()
610 emLen--; in RSA_padding_add_PKCS1_PSS_mgf1()
[all …]
/external/scapy/scapy/layers/tls/crypto/
Dpkcs1.py70 def _legacy_pkcs1_v1_5_encode_md5_sha1(M, emLen): argument
80 if emLen < 36 + 11:
84 PS = b'\xff'*(emLen - 36 - 3)