Class: JWA::Algorithms::ContentEncryption::A256CbcHs512
- Inherits:
-
Object
- Object
- JWA::Algorithms::ContentEncryption::A256CbcHs512
show all
- Includes:
- AesCbcHs
- Defined in:
- lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb
Instance Attribute Summary
Attributes included from AesCbcHs
#iv, #key
Class Method Summary
collapse
Methods included from AesCbcHs
#cipher, #cipher_round, #decrypt, #enc_key, #encrypt, #generate_tag, included, #initialize, #mac_key
Class Method Details
.cipher_name ⇒ Object
18
19
20
|
# File 'lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb', line 18
def cipher_name
'AES-256-CBC'
end
|
.enc_name ⇒ Object
10
11
12
|
# File 'lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb', line 10
def enc_name
'A256CBC-HS512'
end
|
.hash ⇒ Object
22
23
24
|
# File 'lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb', line 22
def hash
OpenSSL::Digest::SHA512.new
end
|
.key_length ⇒ Object
14
15
16
|
# File 'lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb', line 14
def key_length
64
end
|