Lines Matching defs:hmac_ctx

31   hmac_ctx_t hmac_ctx;
52 status = hmac_init(&hmac_ctx, key, KEY_LEN);
54 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key);
57 status = hmac_init(&hmac_ctx, key, KEY_LEN);
59 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key);
79 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN);
82 status = hmac_start(&hmac_ctx);
85 status = hmac_update(&hmac_ctx, clear, clear_len);
88 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag);
105 hmac_ctx_t hmac_ctx;
129 status = hmac_init(&hmac_ctx, key, KEY_LEN);
131 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key);
134 status = hmac_init(&hmac_ctx, key, KEY_LEN);
136 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key);
155 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN);
158 status = hmac_start(&hmac_ctx);
161 status = hmac_update(&hmac_ctx, clear, clear_len);
164 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, tmp_tag);
191 hmac_ctx_t hmac_ctx;
217 status = hmac_init(&hmac_ctx, key, KEY_LEN);
219 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key);
222 status = hmac_init(&hmac_ctx, key, KEY_LEN);
224 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key);
262 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN);
265 status = hmac_start(&hmac_ctx);
268 status = hmac_update(&hmac_ctx, clear, clear_len);
276 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag);
302 hmac_ctx_t hmac_ctx;
330 status = hmac_init(&hmac_ctx, key, KEY_LEN);
332 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key);
335 status = hmac_init(&hmac_ctx, key, KEY_LEN);
337 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key);
360 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN);
363 status = hmac_start(&hmac_ctx);
366 status = hmac_update(&hmac_ctx, clear, clear_len);
374 status = hmac_compute(&hmac_ctx, opaque, ciphertext_len, TAG_LEN, tmp_tag);