Lines Matching refs:opaque

27 			      void *opaque,           in aes_128_cbc_hmac_sha1_96_func()  argument
37 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_func()
41 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_func()
75 status = aes_cbc_nist_encrypt(&aes_ctx, opaque, opaque_len); in aes_128_cbc_hmac_sha1_96_func()
88 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag); in aes_128_cbc_hmac_sha1_96_func()
101 void *opaque, in aes_128_cbc_hmac_sha1_96_inv() argument
114 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_inv()
118 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_inv()
151 status = aes_cbc_nist_decrypt(&aes_ctx, opaque, opaque_len); in aes_128_cbc_hmac_sha1_96_inv()
164 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, tmp_tag); in aes_128_cbc_hmac_sha1_96_inv()
188 void *opaque, in aes_128_cbc_hmac_sha1_96_enc() argument
198 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_enc()
202 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_enc()
243 printf("plaintext: %s\n", octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_enc()
248 status = aes_cbc_nist_encrypt(&aes_ctx, opaque, opaque_len); in aes_128_cbc_hmac_sha1_96_enc()
254 printf("ciphertext: %s\n", octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_enc()
274 auth_tag = (unsigned char *)opaque; in aes_128_cbc_hmac_sha1_96_enc()
276 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag); in aes_128_cbc_hmac_sha1_96_enc()
280 octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_enc()
287 printf("prot data: %s\n", octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_enc()
299 void *opaque, in aes_128_cbc_hmac_sha1_96_dec() argument
312 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_dec()
316 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in aes_128_cbc_hmac_sha1_96_dec()
342 printf("prot data: %s\n", octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_dec()
374 status = hmac_compute(&hmac_ctx, opaque, ciphertext_len, TAG_LEN, tmp_tag); in aes_128_cbc_hmac_sha1_96_dec()
379 octet_string_hex_string(opaque, ciphertext_len)); in aes_128_cbc_hmac_sha1_96_dec()
386 auth_tag = (unsigned char *)opaque; in aes_128_cbc_hmac_sha1_96_dec()
407 printf("ciphertext: %s\n", octet_string_hex_string(opaque, *opaque_len)); in aes_128_cbc_hmac_sha1_96_dec()
412 status = aes_cbc_nist_decrypt(&aes_ctx, opaque, &ciphertext_len); in aes_128_cbc_hmac_sha1_96_dec()
419 octet_string_hex_string(opaque, ciphertext_len)); in aes_128_cbc_hmac_sha1_96_dec()
447 void *opaque, in null_enc() argument
454 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in null_enc()
458 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in null_enc()
479 octet_string_hex_string(opaque, *opaque_len)); in null_enc()
481 auth_tag = opaque; in null_enc()
489 octet_string_hex_string(opaque, *opaque_len)); in null_enc()
502 void *opaque, in null_dec() argument
507 if ((iv == NULL) && (opaque == NULL) && (opaque_len == NULL)) { in null_dec()
511 } else if ((iv == NULL) || (opaque == NULL) || (opaque_len == NULL)) { in null_dec()
526 octet_string_hex_string(opaque, *opaque_len)); in null_dec()
528 auth_tag = opaque; in null_dec()
537 octet_string_hex_string(opaque, *opaque_len)); in null_dec()