Versions in this module Expand all Collapse all v1 v1.2.0 Feb 17, 2021 Changes in this version + const RequestTarget + func IsSupportedDigestAlgorithm(algo string) bool + func IsSupportedHttpSigAlgorithm(algo string) bool + 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 ECDSASignature struct + R *big.Int + S *big.Int + type SSHSigner interface + SignRequest func(pubKeyId string, r *http.Request, body []byte) error + SignResponse func(pubKeyId string, r http.ResponseWriter, body []byte) error + type SignatureScheme string + const Authorization + const Signature + type Signer interface + SignRequest func(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error + SignResponse func(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error + type Verifier interface + KeyId func() string + Verify func(pKey crypto.PublicKey, algo Algorithm) error + func NewResponseVerifier(r *http.Response) (Verifier, error) + func NewVerifier(r *http.Request) (Verifier, error)