Module: AEAD::Cipher::AES_HMAC

Included in:
AES_256_CBC_HMAC_SHA_256, AES_256_CTR_HMAC_SHA_256
Defined in:
lib/aead/cipher/aes_hmac.rb

Overview

Provides the implementation details of AES + HMAC, assuming the class including this module has defined proper class methods.

Instance Method Summary collapse

Instance Method Details

#initialize(key) ⇒ Object

Initializes the cipher with a given secret encryption key.

Parameters:

  • key (String)

    a secret encryption key



13
14
15
# File 'lib/aead/cipher/aes_hmac.rb', line 13

def initialize(key)
  super(self.class.cipher_mode, key)
end