Method: OpenSSL::Cipher#encrypt
- Defined in:
- ossl_cipher.c
#encrypt ⇒ self
Initializes the Cipher for encryption.
Make sure to call Cipher#encrypt or Cipher#decrypt before using any of the following methods:
- #key=, #iv=, #random_key, #random_iv, #pkcs5_keyivgen
Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, 1).
257 258 259 260 261 |
# File 'ossl_cipher.c', line 257
static VALUE
ossl_cipher_encrypt(int argc, VALUE *argv, VALUE self)
{
return ossl_cipher_init(argc, argv, self, 1);
}
|