Documentation
¶
Overview ¶
Package cryptotest is the conformance suite for a [connectionforge.Cryptographer], and an in-memory cryptographer for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cryptographer ¶
type Cryptographer struct {
// contains filtered or unexported fields
}
Cryptographer is an in-memory AES-256-GCM cryptographer for tests. Its key is random and lives only in memory.
func (*Cryptographer) Open ¶
func (c *Cryptographer) Open(ctx context.Context, purpose string, ciphertext, aad []byte) ([]byte, error)
Open implements cf.Cryptographer.
func (*Cryptographer) Seal ¶
func (c *Cryptographer) Seal(ctx context.Context, purpose string, plaintext, aad []byte) ([]byte, error)
Seal implements cf.Cryptographer.
Click to show internal directories.
Click to hide internal directories.