class

Matter::Crypto::AES::Aes

Inherits Reference < Object

AES implementation using OpenSSL's proven cipher

Constructors

new(key : Bytes)
Source

Instance methods

decrypt(ct : WordArray, pt : WordArray | Nil = nil) : WordArray

Decrypt a block (16 bytes represented as 4 words)

Source
encrypt(pt : WordArray, ct : WordArray | Nil = nil) : WordArray

Encrypt a block (16 bytes represented as 4 words) Operates on word array and returns encrypted word array

Source