Documentation
¶
Overview ¶
Package testkeys generates throwaway public keys for the SDK's runnable examples and tests, so the example files don't each re-implement the same key-gen helpers. The keys are random and ephemeral — never a production custody model.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func P256SPKI ¶
func P256SPKI() []byte
P256SPKI returns a fresh P-256 public key in DER SPKI form — the shape of a resource key (CreateParams.ResourcePublicKey), and what AWS KMS GetPublicKey returns. It panics on failure, which is acceptable in example/test code.
func X25519Public ¶
func X25519Public() []byte
X25519Public returns a fresh raw 32-byte X25519 public key — the shape of an NHP cell key (CreateParams.CellPublicKey). It panics on failure, which is acceptable in example/test code.
Types ¶
This section is empty.