Lines Matching defs:key
11 * serves a dual purpose (1) hold the key, and (2) save progress information
13 * objects: (1) a psa_key_id_t to hold the key, and (2) a psa_operation_t for
69 /* Dummy key material - never do this in production!
70 * This example program uses SHA-256, so a 32-byte key makes sense. */
114 psa_key_id_t key = 0;
116 /* prepare key */
123 key_bytes, sizeof(key_bytes), &key);
132 /* compute HMAC(key, msg1_part1 | msg1_part2) */
133 PSA_CHECK(psa_mac_sign_setup(&op, key, alg));
139 /* compute HMAC(key, msg2_part1 | msg2_part2) */
140 PSA_CHECK(psa_mac_sign_setup(&op, key, alg));
148 psa_destroy_key(key);