Class: Sandal::Enc::A256CBC_HS512

Inherits:
ACBC_HS
  • Object
show all
Defined in:
lib/sandal/enc/acbc_hs.rb

Overview

The A256CBC-HS512 encryption method.

Constant Summary collapse

NAME =

The JWA name of the algorithm.

"A256CBC-HS512"
KEY_SIZE =

 The size of key that is required, in bits.

512

Instance Attribute Summary

Attributes inherited from ACBC_HS

#alg, #name

Instance Method Summary collapse

Methods inherited from ACBC_HS

#decrypt, #encrypt

Constructor Details

#initialize(alg) ⇒ A256CBC_HS512

Initialises a new instance.

Parameters:

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

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



141
142
143
# File 'lib/sandal/enc/acbc_hs.rb', line 141

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