Home
last modified time | relevance | path

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/
Dcommon_sb_ops.c117 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()
Dcommon_crypto_asym.c175 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()