Home
last modified time | relevance | path

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

/mbedtls-3.5.0/programs/psa/
Dhmac_demo.c71 const unsigned char key_bytes[32] = { 0 }; variable
120 psa_set_key_bits(&attributes, 8 * sizeof(key_bytes)); // optional in hmac_demo()
123 key_bytes, sizeof(key_bytes), &key); in hmac_demo()
Daead_demo.c94 const unsigned char key_bytes[32] = { 0x2a }; variable
168 PSA_CHECK(psa_import_key(&attributes, key_bytes, key_bits / 8, key)); in aead_prepare()
/mbedtls-3.5.0/programs/hash/
Dmd_hmac_demo.c69 const unsigned char key_bytes[32] = { 0 }; variable
116 CHK(mbedtls_md_hmac_starts(&ctx, key_bytes, sizeof(key_bytes))); in hmac_demo()
/mbedtls-3.5.0/programs/cipher/
Dcipher_aead_demo.c91 const unsigned char key_bytes[32] = { 0x2a }; variable
157 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_psa_crypto.function175 const unsigned char *key_bytes,
187 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key));
207 const unsigned char *key_bytes,
219 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key));
/mbedtls-3.5.0/docs/proposed/
Dpsa-driver-interface.md818 base_size + symmetric_factor * key_bytes
820 where `key_bytes = ((key_bits + 7) / 8)` is the key size in bytes.