class Sandal::Enc::A256CBC_HS512

The A256CBC-HS512 encryption method.

Constants

KEY_SIZE

 The size of key that is required, in bits.

NAME

The JWA name of the algorithm.

Public Class Methods

new(alg) click to toggle source

Initialises a new instance.

@param alg [#name, encrypt_key, decrypt_key] The algorithm to use to encrypt and/or decrypt the AES key.

Calls superclass method Sandal::Enc::ACBC_HS::new
# File lib/sandal/enc/acbc_hs.rb, line 141
def initialize(alg)
  super(NAME, KEY_SIZE / 2, KEY_SIZE, alg)
end