Class: JWE::Enc::A256cbcHs512

Inherits:
Object
  • Object
show all
Includes:
AesCbcHs
Defined in:
lib/jwe/enc/a256cbc_hs512.rb

Overview

AES CBC 256 + SHA512 message verification algorithm.

Instance Attribute Summary

Attributes included from AesCbcHs

#cek, #iv, #tag

Instance Method Summary collapse

Methods included from AesCbcHs

#cipher, #cipher_round, #decrypt, #enc_key, #encrypt, #generate_tag, included, #initialize, #mac_key

Instance Method Details

#cipher_nameObject



13
14
15
# File 'lib/jwe/enc/a256cbc_hs512.rb', line 13

def cipher_name
  'AES-256-CBC'
end

#hash_nameObject



17
18
19
# File 'lib/jwe/enc/a256cbc_hs512.rb', line 17

def hash_name
  'sha512'
end

#key_lengthObject



9
10
11
# File 'lib/jwe/enc/a256cbc_hs512.rb', line 9

def key_length
  64
end