module Crypto::CTR

Defined in:

crypto/cipher/aes/ctr.cr

Class Method Summary

Class Method Detail

def self.xcrypt(data : Bytes, key : Bytes, iv : Bytes, state : Bytes = Bytes[0]) : Bytes #

Encrypt/decrypt a buffer using CTR256.

data must be a non-empty buffer who's length is a multiple of 16 bytes. key must be a 32 byte encryption key and iv must be 16 bytes.


[View source]