instance method
OpenSSL::Cipher#reset
() -> self
cipher.reset → self
ext/openssl/ossl_cipher.c
View on GitHub ↗
static VALUE
ossl_cipher_reset(VALUE self)
{
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
if (EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, -1) != 1)
ossl_raise(eCipherError, NULL);
return self;
}