Searched refs:pDigest (Results 1 – 2 of 2) sorted by relevance
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_sb_ops.c | 117 unsigned char pDigest[HASH_SHA256_DIGEST_SIZE_IN_BYTES]; in Sign_v21() local 128 EVP_DigestFinal(&md_ctx, pDigest, &uDigestLen); in Sign_v21() 132 if (!RSA_padding_add_PKCS1_PSS(pRsaPrivKey, EM, pDigest, EVP_sha256(), RSA_SALT_LEN)) in Sign_v21() 143 if (RSA_verify_PKCS1_PSS(pRsaPrivKey, pDigest, EVP_sha256(), pDecrypted, RSA_SALT_LEN) != 1) in Sign_v21()
|
D | common_crypto_asym.c | 175 uint8_t pDigest[HASH_SHA256_DIGEST_SIZE_IN_BYTES] = {0}; in Sign_v21() local 192 EVP_DigestFinal(&md_ctx, pDigest, &uDigestLen); in Sign_v21() 196 if (!RSA_padding_add_PKCS1_PSS(pRsaPrivKey, EM, pDigest, EVP_sha256(), RSA_SALT_LEN)) { in Sign_v21() 210 if (RSA_verify_PKCS1_PSS(pRsaPrivKey, pDigest, EVP_sha256(), pDecrypted, RSA_SALT_LEN) != 1) { in Sign_v21() 238 uint8_t pDigest[HASH_SHA256_DIGEST_SIZE_IN_BYTES] = {0}; in Verify_v21() local 256 EVP_DigestFinal(&md_ctx, pDigest, &uDigestLen); in Verify_v21() 264 if (RSA_verify_PKCS1_PSS(pRsaPubKey, pDigest, EVP_sha256(), pDecrypted,RSA_SALT_LEN) != 1) { in Verify_v21()
|