@@ -7528,6 +7570,11 @@ psa_status_t psa_crypto_init(void) global_data.initialized = 1; exit: #if defined(MBEDTLS_THREADING_C) mbedtls_mutex_unlock(&mbedtls_threading_psa_globaldata_mutex); #endif /* defined(MBEDTLS_THREADING_C) */ if (status != PSA_SUCCESS) { mbedtls_psa_crypto_...
PSA_ASSERT(psa_crypto_init()); TEST_EQUAL(0, mbedtls_psa_get_random(MBEDTLS_PSA_RANDOM_STATE, output2, sizeof(output2))); PSA_DONE(); /* The two rounds must generate different random data. */ TEST_ASSERT(memcmp(output1, output2, OUTPUT_SIZE) != 0); exit...
status = psa_crypto_init(); if (status != PSA_SUCCESS) { printf("Failed to initialize PSA Crypto\n"); return 1; } else { printf(" PSA Crypto encrypt init success\n"); } psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_DECRYPT); ...
Crypto and SSL questions mbed_tls 0253December 11, 2020 ECDSA using mbedtls Library Crypto and SSL questions mbed_tls 0578April 26, 2021 Not able to verify ECDSA Signature using mbedtls Mbed OS mbed_tls 0311August 11, 2023 Mbedtls_pk_parse_public_key returns 0xfffffff0 with secp256k1 public...
static void test_init_twice(void) { TEST_ASSERT_PSA(psa_crypto_init()); const psa_key_type_t key_type = PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_TWISTED_EDWARDS); const size_t key_bits = 255; const psa_algorithm_t key_alg = PSA_ALG_PURE_EDDSA; uint8_t key_data[PSA_EXPORT_...
/* Note: PSA Crypto init not needed to info functions */ md_info = mbedtls_md_info_from_type(md_type); TEST_ASSERT(md_info != NULL); #if defined(MBEDTLS_MD_C) @@ -150,12 +160,17 @@ void md_text(int md_type, char *text_src_string, data_t *hash) unsigned char output[MBE...
@@ -7449,12 +7449,25 @@ psa_status_t mbedtls_psa_crypto_configure_entropy_sources( void (* entropy_init)(mbedtls_entropy_context *ctx), void (* entropy_free)(mbedtls_entropy_context *ctx)) { psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; #if defined(MBEDTLS_THREADING_C) mbedtls...
psa_ret = psa_crypto_init(); if (psa_ret != PSA_SUCCESS) { BOOT_LOG_ERR("AES crypto init failed %d", psa_ret); return -1; valeriosetti Aug 30, 2024 I think that you might add memset(private_key, 0, sizeof(private_key)); here as well just in case psa_crypto_init ...
* depends_on:MBEDTLS_PSA_CRYPTO_CLIENT * END_DEPENDENCIES */ /* BEGIN_CASE */ void attributes_set_get( int owner_id_arg, int id_arg, int lifetime_arg, int usage_flags_arg, int alg_arg, int type_arg, int bits_arg ) { psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; ...
* * Called from psa_crypto_init(). */ psa_status_t psa_init_all_se_drivers(void); /** A structure that describes a registered secure element driver. * * A secure element driver table entry contains a pointer to the * driver's method table as well as the driver context ...