Class: JWE::Enc::A128cbcHs256

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

Overview

AES CBC 128 + SHA256 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/a128cbc_hs256.rb', line 13

def cipher_name
  'AES-128-CBC'
end

#hash_nameObject


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

def hash_name
  'sha256'
end

#key_lengthObject


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

def key_length
  32
end