Home
last modified time | relevance | path

Searched refs:key_bytes (Results 1 – 6 of 6) sorted by relevance

/mbedtls/programs/psa/
A Dhmac_demo.c59 const unsigned char key_bytes[32] = { 0 }; variable
108 psa_set_key_bits(&attributes, 8 * sizeof(key_bytes)); // optional in hmac_demo()
111 key_bytes, sizeof(key_bytes), &key); in hmac_demo()
A Daead_demo.c82 const unsigned char key_bytes[32] = { 0x2a }; variable
156 PSA_CHECK(psa_import_key(&attributes, key_bytes, key_bits / 8, key)); in aead_prepare()
/mbedtls/programs/hash/
A Dmd_hmac_demo.c57 const unsigned char key_bytes[32] = { 0 }; variable
104 CHK(mbedtls_md_hmac_starts(&ctx, key_bytes, sizeof(key_bytes))); in hmac_demo()
/mbedtls/programs/cipher/
A Dcipher_aead_demo.c79 const unsigned char key_bytes[32] = { 0x2a }; variable
145 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare()
/mbedtls/tests/suites/
A Dtest_suite_psa_crypto.function179 const unsigned char *key_bytes,
191 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key));
211 const unsigned char *key_bytes,
223 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key));
/mbedtls/docs/proposed/
A Dpsa-driver-interface.md1082 base_size + symmetric_factor * key_bytes
1084 where `key_bytes = ((key_bits + 7) / 8)` is the key size in bytes.

Completed in 26 milliseconds