Lines Matching refs:emLen
488 int maskedDBLen, MSBits, emLen; in RSA_verify_PKCS1_PSS_mgf1() local
516 emLen = RSA_size(rsa); in RSA_verify_PKCS1_PSS_mgf1()
523 emLen--; in RSA_verify_PKCS1_PSS_mgf1()
525 if (emLen < (int)hLen + 2 || emLen < ((int)hLen + sLen + 2)) { in RSA_verify_PKCS1_PSS_mgf1()
530 if (EM[emLen - 1] != 0xbc) { in RSA_verify_PKCS1_PSS_mgf1()
534 maskedDBLen = emLen - hLen - 1; in RSA_verify_PKCS1_PSS_mgf1()
587 size_t maskedDBLen, MSBits, emLen; in RSA_padding_add_PKCS1_PSS_mgf1() local
603 emLen = RSA_size(rsa); in RSA_padding_add_PKCS1_PSS_mgf1()
605 assert(emLen >= 1); in RSA_padding_add_PKCS1_PSS_mgf1()
607 emLen--; in RSA_padding_add_PKCS1_PSS_mgf1()
610 if (emLen < hLen + 2) { in RSA_padding_add_PKCS1_PSS_mgf1()
623 sLen = emLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()
631 if (emLen - hLen - 2 < sLen) { in RSA_padding_add_PKCS1_PSS_mgf1()
646 maskedDBLen = emLen - hLen - 1; in RSA_padding_add_PKCS1_PSS_mgf1()
671 p += emLen - sLen - hLen - 2; in RSA_padding_add_PKCS1_PSS_mgf1()
684 EM[emLen - 1] = 0xbc; in RSA_padding_add_PKCS1_PSS_mgf1()