Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EdgeMsgs = [][]byte{ {}, make([]byte, 512), []byte{0x00, 0x01, 0x02, 0x03, 0x04}, bytesRepeat(0xff, 128), []byte("The quick brown fox jumps over the lazy dog."), append([]byte{0x80}, make([]byte, 64)...), append(bytesRepeat(0xaa, 64), bytesRepeat(0x55, 64)...), }
EdgeMsgs enumerates adversarial message patterns useful for stress testing.
Functions ¶
func HashDeterministic ¶
HashDeterministic computes a length-prefixed sha256 hash across each part, providing a stable synthetic primitive suitable for tests.
Types ¶
type Case ¶
type Case struct {
Message []byte
PublicKey []byte
SecretKey []byte
Signature []byte
Meta map[string]string
}
Case represents a single request/response test vector.
type VerifyFunc ¶
VerifyFunc validates a signature for the supplied public key and message. Implementations should return a non-nil error when verification fails.
Click to show internal directories.
Click to hide internal directories.