module Crypto::CBC
Defined in:
crypto/cipher/aes/cbc.crClass Method Summary
-
.decrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes
Decrypt a buffer using CBC256.
-
.encrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes
Encrypt a buffer using CBC256.
Class Method Detail
def self.decrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes
#
Decrypt a buffer using CBC256.
data
must be a non-empty buffer of any length.
key
must be a 32 byte encryption key and iv
must
be 16 bytes.
def self.encrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes
#
Encrypt a buffer using CBC256.
data
must be a non-empty buffer of any length.
key
must be a 32 byte encryption key and iv
must
be 16 bytes.