Class: AEAD::Cipher::AES_128_GCM
- Inherits:
-
AEAD::Cipher
- Object
- AEAD::Cipher
- AEAD::Cipher::AES_128_GCM
- 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
- .cipher_mode ⇒ Object
- .iv_len ⇒ Object
- .key_len ⇒ Object
-
.tag_len ⇒ Object
def self.nonce_len; 12; end.
Methods included from AES_GCM
Methods inherited from AEAD::Cipher
#decrypt, #encrypt, generate_key, generate_nonce, #key_len, new, #nonce_len, signature_compare
Class Method Details
.cipher_mode ⇒ Object
10 |
# File 'lib/aead/cipher/aes_128_gcm.rb', line 10 def self.cipher_mode; 'aes-128-gcm'; end |
.iv_len ⇒ Object
13 |
# File 'lib/aead/cipher/aes_128_gcm.rb', line 13 def self.iv_len; 12; end |
.key_len ⇒ Object
12 |
# File 'lib/aead/cipher/aes_128_gcm.rb', line 12 def self.key_len; 16; end |
.tag_len ⇒ Object
def self.nonce_len; 12; end
15 |
# File 'lib/aead/cipher/aes_128_gcm.rb', line 15 def self.tag_len; 16; end |