Class: AEAD::Cipher::AES_128_GCM

Inherits:
AEAD::Cipher show all
Includes:
AES_GCM
Defined in:
lib/aead/cipher/aes_128_gcm.rb

Overview

Encrypt plaintext using the Galois Counter Mode of AES.

Class Method Summary collapse

Methods included from AES_GCM

#initialize, #nonce_len

Methods inherited from AEAD::Cipher

#decrypt, #encrypt, generate_key, generate_nonce, #key_len, new, #nonce_len, signature_compare

Class Method Details

.cipher_modeObject



10
# File 'lib/aead/cipher/aes_128_gcm.rb', line 10

def self.cipher_mode; 'aes-128-gcm'; end

.iv_lenObject



13
# File 'lib/aead/cipher/aes_128_gcm.rb', line 13

def self.iv_len;    12; end

.key_lenObject



12
# File 'lib/aead/cipher/aes_128_gcm.rb', line 12

def self.key_len;   16; end

.tag_lenObject

def self.nonce_len; 12; end



15
# File 'lib/aead/cipher/aes_128_gcm.rb', line 15

def self.tag_len;   16; end