Versions in this module Expand all Collapse all v0 v0.0.1 Nov 3, 2020 Changes in this version + const RequestTarget + func NewSSHSigner(s ssh.Signer, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, ...) (SSHSigner, Algorithm, error) + func NewSigner(prefs []Algorithm, dAlgo DigestAlgorithm, headers []string, ...) (Signer, Algorithm, error) + type Algorithm string + const BLAKE2B_256 + const BLAKE2B_384 + const BLAKE2B_512 + const BLAKE2S_256 + const ECDSA_RIPEMD160 + const ECDSA_SHA224 + const ECDSA_SHA256 + const ECDSA_SHA384 + const ECDSA_SHA512 + const ED25519 + const HMAC_BLAKE2B_256 + const HMAC_BLAKE2B_384 + const HMAC_BLAKE2B_512 + const HMAC_BLAKE2S_256 + const HMAC_RIPEMD160 + const HMAC_SHA224 + const HMAC_SHA256 + const HMAC_SHA384 + const HMAC_SHA3_224 + const HMAC_SHA3_256 + const HMAC_SHA3_384 + const HMAC_SHA3_512 + const HMAC_SHA512 + const HMAC_SHA512_224 + const HMAC_SHA512_256 + const RSA_RIPEMD160 + const RSA_SHA1 + const RSA_SHA224 + const RSA_SHA256 + const RSA_SHA384 + const RSA_SHA512 + type DigestAlgorithm string + const DigestSha256 + const DigestSha512 + type SSHSigner interface + SignRequest func(keyId string, req *http.Request, body []byte) (err error) + SignResponse func(keyId string, rsp http.ResponseWriter, body []byte) (err error) + type SignatureScheme string + const Authorization + const Signature + type Signer interface + SignRequest func(privateKey crypto.PrivateKey, keyId string, req *http.Request, body []byte) (err error) + SignResponse func(privateKey crypto.PrivateKey, keyId string, rsp http.ResponseWriter, ...) (err error) + type Verifier interface + KeyId func() string + Verify func(publicKey crypto.PublicKey, alg Algorithm) (err error) + func NewResponseVerifier(rsp *http.Response) (Verifier, error) + func NewVerifier(req *http.Request) (verifier Verifier, err error)