Sha256: 528500debe70413a604a90c332ab494cfd33056b81f9fe20fa91f6ba0b314dab
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
# typed: strict # frozen_string_literal: true module Paseto module ASN1 class ECPrivateKey < T::Struct extend T::Sig const :private_key, String sig { returns(OpenSSL::ASN1::Sequence) } def build OpenSSL::ASN1::Sequence.new( [ OpenSSL::ASN1::Integer.new(1), OpenSSL::ASN1::OctetString.new(private_key) ] ) end sig { returns(String) } def to_der build.to_der end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-paseto-0.1.2 | lib/paseto/asn1/ec_private_key.rb |
ruby-paseto-0.1.1 | lib/paseto/asn1/ec_private_key.rb |
ruby-paseto-0.1.0 | lib/paseto/asn1/ec_private_key.rb |