/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | srp_driver.c | 41 const mbedtls_md_info_t *md_info=NULL; in SRP_kMultiplierCalc() local 46 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[pCtx->hashMode] ); in SRP_kMultiplierCalc() 47 if (NULL == md_info) { in SRP_kMultiplierCalc() 52 rc = mbedtls_md_setup(&hash_ctx, md_info, 0); // 0 = HASH, not HMAC in SRP_kMultiplierCalc() 84 if (NULL != md_info) { in SRP_kMultiplierCalc() 99 const mbedtls_md_info_t *md_info=NULL; in SRP_shaInterleave() local 127 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[pCtx->hashMode] ); in SRP_shaInterleave() 128 if (NULL == md_info) { in SRP_shaInterleave() 136 rc = mbedtls_md(md_info, in SRP_shaInterleave() 149 rc = mbedtls_md(md_info, in SRP_shaInterleave() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_oaep.c | 83 const mbedtls_md_info_t *md_info=NULL; in RsaPssOaepEncode() local 181 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashFunc] ); in RsaPssOaepEncode() 182 if (NULL == md_info) { in RsaPssOaepEncode() 185 Error = mbedtls_md(md_info, in RsaPssOaepEncode() 201 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashFunc] ); in RsaPssOaepEncode() 202 if (NULL == md_info) { in RsaPssOaepEncode() 206 Error = mbedtls_md_setup(md_ctx, md_info, 0); // 0 = HASH, not HMAC in RsaPssOaepEncode() 353 if((md_info!=NULL) && (md_ctx!=NULL)) { in RsaPssOaepEncode() 391 const mbedtls_md_info_t *md_info=NULL; in RsaPssOaepDecode() local 519 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashFunc] ); in RsaPssOaepDecode() [all …]
|
D | cc_rsa_pss21_util.c | 74 const mbedtls_md_info_t *md_info=NULL; in RsaPssVerify21() local 215 …md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[Context_ptr->HashOperationMode] ); in RsaPssVerify21() 216 if (NULL == md_info) in RsaPssVerify21() 220 Error = mbedtls_md(md_info, in RsaPssVerify21() 281 const mbedtls_md_info_t *md_info=NULL; in RsaPssSign21() local 368 …md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[Context_ptr->HashOperationMode] ); in RsaPssSign21() 369 if (NULL == md_info) in RsaPssSign21() 373 Error = mbedtls_md(md_info, in RsaPssSign21()
|
D | cc_rsa_verify.c | 92 const mbedtls_md_info_t *md_info=NULL; in CC_RsaVerifyInit() local 201 …md_info = mbedtls_md_info_from_type(RsaHash_CC_mbedtls_Info[ccmWorkingContext_ptr->HashOperationMo… in CC_RsaVerifyInit() 202 if (NULL == md_info) { in CC_RsaVerifyInit() 206 … Error = mbedtls_md_setup(&ccmWorkingContext_ptr->RsaHashCtx, md_info, 0); // 0 = HASH, not HMAC in CC_RsaVerifyInit() 273 if(md_info!=NULL){ in CC_RsaVerifyInit()
|
D | cc_rsa_sign.c | 92 const mbedtls_md_info_t *md_info=NULL; in CC_RsaSignInit() local 192 …md_info = mbedtls_md_info_from_type(RsaHash_CC_mbedtls_Info[ccmWorkingContext_ptr->HashOperationMo… in CC_RsaSignInit() 193 if (NULL == md_info) { in CC_RsaSignInit() 197 … Error = mbedtls_md_setup(&ccmWorkingContext_ptr->RsaHashCtx, md_info, 0); // 0 = HASH, not HMAC in CC_RsaSignInit() 266 if(md_info!=NULL){ in CC_RsaSignInit()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 65 const mbedtls_md_info_t *md_info=NULL; in EcEdwSeedKeyPair() local 100 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[CC_HASH_SHA512_mode] ); in EcEdwSeedKeyPair() 101 if (NULL == md_info) { in EcEdwSeedKeyPair() 105 err = mbedtls_md(md_info, in EcEdwSeedKeyPair() 347 const mbedtls_md_info_t *md_info=NULL; in EcEdwSign() local 355 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[CC_HASH_SHA512_mode] ); in EcEdwSign() 356 if (NULL == md_info) { in EcEdwSign() 360 err = mbedtls_md(md_info, in EcEdwSign() 377 err = mbedtls_md_setup(p_hash_ctx, md_info, 0); // 0 = HASH, not HMAC in EcEdwSign() 499 err = mbedtls_md_setup(p_hash_ctx, md_info, 0); // 0 = HASH, not HMAC in EcEdwSign() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/ |
D | run_integration_mac.c | 58 const mbedtls_md_info_t *md_info = NULL; in runIt_hmac() local 73 …RUNIT_API_ASSIGNMENT(md_info, mbedtls_md_info_from_string(HashAlgMode2mbedtlsString[CC_HASH_SHA256… in runIt_hmac() 74 RUNIT_ASSERT(md_info != NULL); in runIt_hmac() 76 RUNIT_ASSERT_WITH_RESULT(mbedtls_md_hmac( md_info, in runIt_hmac() 95 RUNIT_ASSERT_WITH_RESULT(mbedtls_md_setup(&ctx, md_info, 1), CC_OK); // 1 = HMAC in runIt_hmac()
|
D | run_integration_ecdsa.c | 282 const mbedtls_md_info_t *md_info; in runIt_ecdsaDetVectorsTest() local 303 md_info = mbedtls_md_info_from_type(md_alg); in runIt_ecdsaDetVectorsTest() 304 RUNIT_ASSERT(md_info != NULL); in runIt_ecdsaDetVectorsTest() 328 hlen = mbedtls_md_get_size(md_info); in runIt_ecdsaDetVectorsTest() 330 RUNIT_ASSERT_API(mbedtls_md(md_info, (const unsigned char *) msg, strlen(msg), pHash) == 0); in runIt_ecdsaDetVectorsTest() 369 …ME, "ID[%s] MD[%s]", (mbedtls_ecp_curve_info_from_grp_id(id)->name), mbedtls_md_get_name(md_info)); in runIt_ecdsaDetVectorsTest()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/ |
D | cc_ecdsa_verify.c | 78 const mbedtls_md_info_t *md_info=NULL; in EcdsaVerifyInit() local 129 …md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[ecpki_hash_info[pWorkingContext->… in EcdsaVerifyInit() 130 if (NULL == md_info) { in EcdsaVerifyInit() 135 … err = mbedtls_md_setup(&(pWorkingContext->hash_ctx), md_info, 0); // 0 = HASH, not HMAC in EcdsaVerifyInit() 157 if(md_info!=NULL){ in EcdsaVerifyInit()
|
D | cc_ecdsa_sign.c | 92 const mbedtls_md_info_t *md_info=NULL; in EcdsaSignInit() local 141 …md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[ecpki_hash_info[pWorkingContext->… in EcdsaSignInit() 142 if (NULL == md_info) { in EcdsaSignInit() 147 err = mbedtls_md_setup(&(pWorkingContext->hash_ctx), md_info, 0); // 0 = HASH, not HMAC in EcdsaSignInit() 170 if(md_info!=NULL){ in EcdsaSignInit()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/ |
D | cc_kdf.c | 243 const mbedtls_md_info_t *md_info=NULL; in CC_KdfKeyDerivFunc() local 300 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashMode] ); in CC_KdfKeyDerivFunc() 301 if (NULL == md_info) in CC_KdfKeyDerivFunc() 307 error = mbedtls_md_setup(&hash_ctx, md_info, 0); // 0 = HASH, not HMAC in CC_KdfKeyDerivFunc() 452 if(md_info!=NULL){ in CC_KdfKeyDerivFunc()
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/ |
D | rsa_alt.c | 1410 hlen = mbedtls_md_get_size( md_ctx->MBEDTLS_PRIVATE(md_info) ); in mgf_mask() 1461 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_encrypt() local 1474 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->MBEDTLS_PRIVATE(hash_id) ); in mbedtls_rsa_rsaes_oaep_encrypt() 1475 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt() 1479 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt() 1496 if( ( ret = mbedtls_md( md_info, label, label_len, p ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt() 1505 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt() 1642 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_decrypt() local 1659 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->MBEDTLS_PRIVATE(hash_id) ); in mbedtls_rsa_rsaes_oaep_decrypt() 1660 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_decrypt() [all …]
|
/trusted-firmware-m-3.4.0/bl1/bl1_2/lib/pq_crypto/ |
D | pq_crypto_mbedtls.c | 42 const mbedtls_md_info_t *md_info, int hmac) in mbedtls_md_setup() argument 45 (void)md_info; in mbedtls_md_setup()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/ |
D | cc_ffc_domain.c | 380 const mbedtls_md_info_t *md_info=NULL; in FfcFips186v4FindOrderQ() local 412 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashMode] ); in FfcFips186v4FindOrderQ() 413 if (NULL == md_info) { in FfcFips186v4FindOrderQ() 427 err = mbedtls_md(md_info, pSeed, seedSizeBytes, (unsigned char *)pHashData); in FfcFips186v4FindOrderQ() 506 const mbedtls_md_info_t *md_info=NULL; in FfcFips186v4FindPrimeP() local 552 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[hashMode] ); in FfcFips186v4FindPrimeP() 553 if (NULL == md_info) { in FfcFips186v4FindPrimeP() 568 err = mbedtls_md(md_info, pHashInput, seedSizeBytes, (unsigned char*)pCurrPtr); in FfcFips186v4FindPrimeP() 580 …err = mbedtls_md(md_info, pHashInput, seedSizeBytes, (unsigned char*)pRemC); /*temporary use pRemC… in FfcFips186v4FindPrimeP() 673 const mbedtls_md_info_t *md_info=NULL; in FfcFips186v4CreateGenerator() local [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_drbg_util.c | 91 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(MBEDTLS_MD_SHA256); in cc3xx_hmac_drbg_init_with_params() local 115 error = mbedtls_hmac_drbg_seed_buf(hmac_drbg_ctx, md_info, seed_buff, 2 * key_len); in cc3xx_hmac_drbg_init_with_params()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_mont/ |
D | cc_ec_mont.c | 427 const mbedtls_md_info_t *md_info=NULL; in CC_EcMontSeedKeyPair() local 459 md_info = mbedtls_md_info_from_string( HashAlgMode2mbedtlsString[CC_HASH_SHA512_mode] ); in CC_EcMontSeedKeyPair() 460 if (NULL == md_info) { in CC_EcMontSeedKeyPair() 465 err = mbedtls_md(md_info, in CC_EcMontSeedKeyPair()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 1765 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_encrypt() local 1815 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->MBEDTLS_PRIVATE(hash_id) ); in mbedtls_rsa_rsaes_oaep_encrypt() 1816 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt() 1822 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt()
|