Lines Matching defs:aad
68 * cryptocheck [-vz] [-A aad length] [-a algorithm] [-d dev] [size ...]
599 const char *aad, size_t aad_len, const char *input, char *output,
633 caead.aad = (char *)aad;
677 char *aad, *buffer, *cleartext, *ciphertext;
794 const char *iv, const char *aad, size_t aad_len, const char *input,
809 if (aad != NULL) {
810 if (EVP_EncryptUpdate(ctx, NULL, &outl, (const u_char *)aad,
812 errx(1, "OpenSSL %s (%zu) aad update failed: %s",
837 size_t iv_len, const char *aad, size_t aad_len, const char *input,
868 caead.aad = (char *)aad;
890 const char *iv, const char *aad, size_t aad_len, const char *input,
906 if (aad != NULL) {
907 if (EVP_DecryptUpdate(ctx, NULL, &outl, (const u_char *)aad,
909 errx(1, "OpenSSL %s (%zu) aad update failed: %s",
936 char *aad, *buffer, *cleartext, *ciphertext;
963 aad = alloc_buffer(aad_len);
965 aad = NULL;
968 openssl_gcm_encrypt(alg, cipher, key, iv, aad, aad_len, cleartext,
972 if (!ocf_gcm(alg, key, key_len, iv, iv_len, aad, aad_len, cleartext,
993 if (!ocf_gcm(alg, key, key_len, iv, iv_len, aad, aad_len, ciphertext,
1010 free(aad);