Class: Sandal::Enc::A128GCM

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

Overview

The A128GCM encryption method.

Constant Summary collapse

NAME =

The JWA name of the algorithm.

"A128GCM"
KEY_SIZE =

 The size of key that is required, in bits.

128

Instance Attribute Summary

Attributes inherited from AGCM

#alg, #name

Instance Method Summary collapse

Methods inherited from AGCM

#decrypt, #encrypt

Constructor Details

#initialize(alg) ⇒ A128GCM

Initialises a new instance.

Parameters:

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

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



84
85
86
# File 'lib/sandal/enc/agcm.rb', line 84

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