class RestPki::SHA256DigestAlgorithm

Public Class Methods

new() click to toggle source
Calls superclass method RestPki::DigestAlgorithm::new
# File lib/rest_pki/digest_algorithm.rb, line 122
def initialize
    @name = 'SHA256'
    @oid = Oids.oids["SHA256"]
    @byte_length = 32
    @api_model = 'sha256'
    @xml_uri = 'http://www.w3.org/2001/04/xmlenc#sha256'
    @crypto_digest = Digest::SHA2.new(256)
    super(name, oid, byte_length, api_model, xml_uri, crypto_digest)
end