aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_cipher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffi/ffi_cipher.cpp')
-rw-r--r--src/lib/ffi/ffi_cipher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi_cipher.cpp b/src/lib/ffi/ffi_cipher.cpp
index e9adc8637..ec6893405 100644
--- a/src/lib/ffi/ffi_cipher.cpp
+++ b/src/lib/ffi/ffi_cipher.cpp
@@ -41,6 +41,11 @@ int botan_cipher_clear(botan_cipher_t cipher)
return BOTAN_FFI_DO(Botan::Cipher_Mode, cipher, c, { c.clear(); });
}
+int botan_cipher_reset(botan_cipher_t cipher)
+ {
+ return BOTAN_FFI_DO(Botan::Cipher_Mode, cipher, c, { c.reset(); });
+ }
+
int botan_cipher_output_length(botan_cipher_t cipher, size_t in_len, size_t* out_len)
{
if(out_len == nullptr)