Class: JWE::Enc::A128cbcHs256
- Inherits:
-
Object
- Object
- JWE::Enc::A128cbcHs256
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_name ⇒ Object
13
14
15
|
# File 'lib/jwe/enc/a128cbc_hs256.rb', line 13
def cipher_name
'AES-128-CBC'
end
|
#hash_name ⇒ Object
17
18
19
|
# File 'lib/jwe/enc/a128cbc_hs256.rb', line 17
def hash_name
'sha256'
end
|
#key_length ⇒ Object
9
10
11
|
# File 'lib/jwe/enc/a128cbc_hs256.rb', line 9
def key_length
32
end
|