Class: Sandal::Enc::A256GCM

Inherits:
AGCM
  • Object
show all
Defined in:
lib/sandal/enc/agcm.rb

Overview

The A256GCM encryption method.

Constant Summary collapse

NAME =

The JWA name of the algorithm.

"A256GCM"
KEY_SIZE =

 The size of key that is required, in bits.

256

Instance Attribute Summary

Attributes inherited from AGCM

#alg, #name

Instance Method Summary collapse

Methods inherited from AGCM

#decrypt, #encrypt

Constructor Details

#initialize(alg) ⇒ A256GCM

Initialises a new instance.

Parameters:

  • alg (#name, #encrypt_key, #decrypt_key)

    The algorithm to use to encrypt and/or decrypt the AES key.



102
103
104
# File 'lib/sandal/enc/agcm.rb', line 102

def initialize(alg)
  super(NAME, KEY_SIZE, alg)
end