package crypto
Import Path
github.com/aws/aws-sdk-go-v2/internal/v4a/internal/crypto (on go.dev)
Dependency Relation
imports 10 packages, and imported by one package
Package-Level Type Names (only one, which is unexported)
Package-Level Functions (total 6, all are exported)
ConstantTimeByteCompare is a constant-time byte comparison of x and y. This function performs an absolute comparison
if the two byte slices assuming they represent a big-endian number.
error if len(x) != len(y)
-1 if x < y
0 if x == y
+1 if x > y
ECDSAKey takes the given elliptic curve, and private key (d) byte slice
and returns the private ECDSA key.
ECDSAKeyFromPoint takes the given elliptic curve and point and returns the
private and public keypair
ECDSAPublicKey takes the provide curve and (x, y) coordinates and returns
*ecdsa.PublicKey. Returns an error if the given points are not on the curve.
HMACKeyDerivation provides an implementation of a NIST-800-108 of a KDF (Key Derivation Function) in Counter Mode.
For the purposes of this implantation HMAC is used as the PRF (Pseudorandom function), where the value of
`r` is defined as a 4 byte counter.
VerifySignature takes the provided public key, hash, and asn1 encoded signature and returns
whether the given signature is valid.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)