jwt/ruby-jwa

View on GitHub
lib/jwa/algorithms/content_encryption/a256_cbc_hs512.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'jwa/algorithms/content_encryption/aes_cbc_hs'

module JWA
  module Algorithms
    module ContentEncryption
      class A256CbcHs512
        include AesCbcHs

        class << self
          def enc_name
            'A256CBC-HS512'
          end

          def key_length
            64
          end

          def cipher_name
            'AES-256-CBC'
          end

          def hash
            OpenSSL::Digest::SHA512.new
          end
        end
      end
    end
  end
end