Documentation ¶
Overview ¶
Package testutil provides helper functions for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyFromPEM ¶
func PrivateKeyFromPEM(privPEM string, keyID uint32) *tinkpb.Keyset_Key
PrivateKeyFromPEM produces a Keyset_Key from privatePEM.
func PublicKeyFromPEM ¶
func PublicKeyFromPEM(pubPEM string, keyID uint32) *tinkpb.Keyset_Key
PublicKeyFromPEM produces a Keyset_Key from pubPEM.
func SignKeysetsFromPEMs ¶
func SignKeysetsFromPEMs(privPEMs ...string) []*tink.KeysetHandle
SignKeysetsFromPEMs produces a slice of keysets, each with one private key.
func VerifyKeysetFromPEMs ¶
func VerifyKeysetFromPEMs(pubPEMs ...string) *tink.KeysetHandle
VerifyKeysetFromPEMs produces a Keyset with pubPEMs.
Types ¶
type FakeKT ¶
type FakeKT struct { Server pb.KeyTransparencyServer Client pb.KeyTransparencyClient Addr string }
FakeKT runs a fake KeyTransparency server.
Click to show internal directories.
Click to hide internal directories.