Class: AEAD::Cipher::AES_256_GCM
Overview
Encrypt plaintext using the Galois Counter Mode of AES.
Class Method Summary
collapse
Instance Method Summary
collapse
#decrypt, #encrypt, generate_key, generate_nonce, #key_len, new, #nonce_len, signature_compare
Constructor Details
Instantiates the cipher with a secret key.
17
18
19
|
# File 'lib/aead/cipher/aes_256_gcm.rb', line 17
def initialize(key)
super('aes-256-gcm', key)
end
|
Class Method Details
.iv_len ⇒ Object
8
|
# File 'lib/aead/cipher/aes_256_gcm.rb', line 8
def self.iv_len; 12; end
|
.key_len ⇒ Object
7
|
# File 'lib/aead/cipher/aes_256_gcm.rb', line 7
def self.key_len; 32; end
|
.nonce_len ⇒ Object
9
|
# File 'lib/aead/cipher/aes_256_gcm.rb', line 9
def self.nonce_len; 12; end
|
.tag_len ⇒ Object
10
|
# File 'lib/aead/cipher/aes_256_gcm.rb', line 10
def self.tag_len; 16; end
|