Class: Krypt::ASN1::AlgorithmIdentifier

Inherits:
Object
  • Object
show all
Includes:
Template::Sequence
Defined in:
lib/krypt/asn1/common.rb

Constant Summary collapse

MD5 =
algorithm_null_params('1.2.840.113549.2.5')
RIPEMD160 =
algorithm_null_params('1.3.36.3.2.1')
SHA1 =
algorithm_null_params('1.3.14.3.2.26')
SHA224 =
algorithm_null_params('2.16.840.1.101.3.4.2.4')
SHA256 =
algorithm_null_params('2.16.840.1.101.3.4.2.1')
SHA384 =
algorithm_null_params('2.16.840.1.101.3.4.2.2')
SHA512 =
algorithm_null_params('2.16.840.1.101.3.4.2.3')
RSA =
algorithm_null_params('1.2.840.113549.1.1.1')
RSA_MD5 =
algorithm_null_params('1.2.840.113549.1.1.4')
RSA_SHA1 =
algorithm_null_params('1.2.840.113549.1.1.5')
RSA_SHA224 =
algorithm_null_params('1.2.840.113549.1.1.14')
RSA_SHA256 =
algorithm_null_params('1.2.840.113549.1.1.11')
RSA_SHA384 =
algorithm_null_params('1.2.840.113549.1.1.12')
RSA_SHA512 =
algorithm_null_params('1.2.840.113549.1.1.13')

Class Method Summary collapse

Methods included from Template::Sequence

included

Class Method Details

.algorithm_null_params(name) ⇒ Object



68
69
70
71
72
73
# File 'lib/krypt/asn1/common.rb', line 68

def self.algorithm_null_params(name)
  AlgorithmIdentifier.new do |alg|
    alg.algorithm = name
    alg.params = Krypt::ASN1::Null.new
  end
end