diff options
Diffstat (limited to 'src/crypto/cipher/aead.c')
-rw-r--r-- | src/crypto/cipher/aead.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/crypto/cipher/aead.c b/src/crypto/cipher/aead.c index 7e747f8..b1db83d 100644 --- a/src/crypto/cipher/aead.c +++ b/src/crypto/cipher/aead.c @@ -156,3 +156,12 @@ int EVP_AEAD_CTX_get_rc4_state(const EVP_AEAD_CTX *ctx, const RC4_KEY **out_key) return ctx->aead->get_rc4_state(ctx, out_key); } + +int EVP_AEAD_CTX_get_iv(const EVP_AEAD_CTX *ctx, const uint8_t **out_iv, + size_t *out_len) { + if (ctx->aead->get_iv == NULL) { + return 0; + } + + return ctx->aead->get_iv(ctx, out_iv, out_len); +} |