Class: PkiExpress::RSAPKAlgorithm

Inherits:
PKAlgorithm show all
Defined in:
lib/pki_express/pk_algorithms.rb

Instance Attribute Summary

Attributes inherited from PKAlgorithm

#name, #oid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PKAlgorithm

#rsa

Constructor Details

#initializeRSAPKAlgorithm

Returns a new instance of RSAPKAlgorithm.



149
150
151
# File 'lib/pki_express/pk_algorithms.rb', line 149

def initialize
  super(PKAlgorithms::RSA, Oids::RSA)
end

Class Method Details

.get_signature_algorithm(digest_algorithm) ⇒ Object



153
154
155
# File 'lib/pki_express/pk_algorithms.rb', line 153

def get_signature_algorithm(digest_algorithm)
  RSASignatureAlgorithm.new(digest_algorithm)
end