Sha256: 5a3328992db640a908860de4d2a213670a6fa2b3bc591436ee637e25c34d3ad5

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

# typed: strict
# frozen_string_literal: true

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

      const :r, OpenSSL::BN
      const :s, OpenSSL::BN

      sig { returns(OpenSSL::ASN1::Sequence) }
      def build
        OpenSSL::ASN1::Sequence.new(
          [
            OpenSSL::ASN1::Integer.new(r),
            OpenSSL::ASN1::Integer.new(s)
          ]
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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