Home | History | Annotate | Download | only in ae_xfm

Lines Matching full:opaque

27 			      void *opaque,         
37 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
41 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
74 /* encrypt the opaque data */
75 status = aes_cbc_nist_encrypt(&aes_ctx, opaque, opaque_len);
78 /* authenticate clear and opaque data */
88 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag);
101 void *opaque,
114 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
118 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
150 /* encrypt the opaque data */
151 status = aes_cbc_nist_decrypt(&aes_ctx, opaque, opaque_len);
154 /* authenticate clear and opaque data */
164 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, tmp_tag);
188 void *opaque,
198 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
202 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
243 printf("plaintext: %s\n", octet_string_hex_string(opaque, *opaque_len));
247 /* encrypt the opaque data */
248 status = aes_cbc_nist_encrypt(&aes_ctx, opaque, opaque_len);
254 printf("ciphertext: %s\n", octet_string_hex_string(opaque, *opaque_len));
258 * authenticate clear and opaque data, then write the
274 auth_tag = (unsigned char *)opaque;
276 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag);
280 octet_string_hex_string(opaque, *opaque_len));
287 printf("prot data: %s\n", octet_string_hex_string(opaque, *opaque_len));
299 void *opaque,
312 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
316 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
342 printf("prot data: %s\n", octet_string_hex_string(opaque, *opaque_len));
357 * compute the authentication tag for the clear and opaque data,
374 status = hmac_compute(&hmac_ctx, opaque, ciphertext_len, TAG_LEN, tmp_tag);
379 octet_string_hex_string(opaque, ciphertext_len));
386 auth_tag = (unsigned char *)opaque;
407 printf("ciphertext: %s\n", octet_string_hex_string(opaque, *opaque_len));
412 status = aes_cbc_nist_decrypt(&aes_ctx, opaque, &ciphertext_len);
419 octet_string_hex_string(opaque, ciphertext_len));
447 void *opaque,
454 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
458 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
479 octet_string_hex_string(opaque, *opaque_len));
481 auth_tag = opaque;
489 octet_string_hex_string(opaque, *opaque_len));
502 void *opaque,
507 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) {
511 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) {
526 octet_string_hex_string(opaque, *opaque_len));
528 auth_tag = opaque;
537 octet_string_hex_string(opaque, *opaque_len));