Sha256: 5c788bec0163e7fa19c9860d060ae1739418871896f073a1247b060970f2b084

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Paseto
  module ASN1
    class PrivateKeyAlgorithmIdentifier < T::Struct
      extend T::Sig

      const :parameters, T.any(Ed25519Identifier, NamedCurve)

      sig { returns(OpenSSL::ASN1::Sequence) }
      def build
        OpenSSL::ASN1::Sequence.new(parameters.build)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-paseto-0.1.2 lib/paseto/asn1/private_key_algorithm_identifier.rb
ruby-paseto-0.1.1 lib/paseto/asn1/private_key_algorithm_identifier.rb
ruby-paseto-0.1.0 lib/paseto/asn1/private_key_algorithm_identifier.rb