jwt/ruby-jwa

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

Summary

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

module JWA
  module Algorithms
    module ContentEncryption
      class A192CbcHs384
        include AesCbcHs

        class << self
          def enc_name
            'A192CBC-HS384'
          end

          def key_length
            48
          end

          def cipher_name
            'AES-192-CBC'
          end

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