Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Drsa_alt.c1403 unsigned int hlen; in mgf_mask() local
1410 hlen = mbedtls_md_get_size( md_ctx->MBEDTLS_PRIVATE(md_info) ); in mgf_mask()
1417 use_len = hlen; in mgf_mask()
1418 if( dlen < hlen ) in mgf_mask()
1460 unsigned int hlen; in mbedtls_rsa_rsaes_oaep_encrypt() local
1479 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt()
1482 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1490 if( ( ret = f_rng( p_rng, p, hlen ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1493 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt()
1498 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_ecdsa.c189 size_t hlen; in runIt_ecdsaPrimVectorsTest() local
217 hlen = runIt_unhexify(pHash, hash_str); in runIt_ecdsaPrimVectorsTest()
234 …RUNIT_ASSERT_API(mbedtls_ecdsa_sign(pGrp, &r, &s, &d, pHash, hlen, runIt_rndBufferRand, &rnd_info)… in runIt_ecdsaPrimVectorsTest()
237 RUNIT_ASSERT_API(mbedtls_ecdsa_verify(pGrp, pHash, hlen, pQ, &rCheck, &sCheck) == 0); in runIt_ecdsaPrimVectorsTest()
281 size_t hlen; in runIt_ecdsaDetVectorsTest() local
328 hlen = mbedtls_md_get_size(md_info); in runIt_ecdsaDetVectorsTest()
331 RUNIT_ASSERT_API(mbedtls_ecdsa_sign_det(pGrp, pR, pS, pD, pHash, hlen, md_alg) == 0); in runIt_ecdsaDetVectorsTest()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c1764 unsigned int hlen; in mbedtls_rsa_rsaes_oaep_encrypt() local
1822 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt()
1825 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt()