class

CMAC

Inherits Reference < Object

Constants

CONSTANT_BLOCK = Bytes[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135]
ZERO_BLOCK = Bytes.new(16)

Constructors

new(key)
Source

Instance methods

_derive_key(key : Bytes) : Bytes
Source
_encrypt_block(key : Bytes, block : Bytes) : Bytes
Source
_generate_subkeys(key : Bytes)
Source
_leftshift(input : Bytes) : Bytes
Source
_needs_padding?(message : Bytes) : Bool
Source
_next_key(key : Bytes) : Bytes
Source
_pad_message(message : Bytes) : Bytes
Source
_secure_compare?(a : Bytes, b : Bytes) : Bool
Source
_xor(a : Bytes, b : Bytes) : Bytes
Source
sign(message, truncate = 16) : Bytes
Source
valid_message?(tag, message) : Bool
Source

Nested types