testkeys

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL