Ankusa.Verifier.Asymmetric.Scheme (ankusa v0.7.0)

Copy Markdown View Source

Declarative description of one provider's public-key signature scheme: the wire fields of Ankusa.Verifier.Hmac.Scheme (signature_header, parse, sig_prefix, sig_key, version, signed, timestamp; see Ankusa.Verifier.Template) with algorithm and encoding in place of hash, encoding and secret_decode.

Summary

Types

algorithm()

@type algorithm() :: :ed25519 | :rsa_sha256

t()

@type t() :: %Ankusa.Verifier.Asymmetric.Scheme{
  algorithm: algorithm(),
  encoding: :hex | :base64,
  parse: :whole | :csv_pairs | :space_versions,
  sig_key: String.t() | nil,
  sig_prefix: String.t() | nil,
  signature_header: String.t(),
  signed: String.t(),
  timestamp: nil | {:header, String.t()} | {:sig, String.t()},
  version: String.t() | nil
}