class Matter::Crypto::AES::Aes

Overview

AES implementation using OpenSSL's proven cipher

Defined in:

matter/crypto/aes/aes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : Bytes) #

[View source]

Instance Method Detail

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

Decrypt a block (16 bytes represented as 4 words)


[View source]
def 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


[View source]