Documentation ¶
Index ¶
- Variables
- func BenchmarkSignMessage(b *testing.B, c crpt.Crpt, privateKey []byte, kt crpt.KeyType)
- func BenchmarkVerify(b *testing.B, c crpt.Crpt, privateKey []byte, kt crpt.KeyType)
- func Test_Batch(t *testing.T, c crpt.Crpt, kt crpt.KeyType)
- func Test_Hash(t *testing.T, c crpt.Crpt)
- func Test_PrivateKey_PublicKey(t *testing.T, c crpt.Crpt)
- func Test_XxxFromBytes_SignXxx_Verify(t *testing.T, c crpt.Crpt, privateKey []byte, kt crpt.KeyType)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestHashFunc = crypto.SHA512 TestEd25519PrivateKey = []byte{ 0x7c, 0xbf, 0x09, 0xb2, 0x31, 0x35, 0x7f, 0x05, 0xb2, 0xd7, 0xcf, 0x8a, 0x43, 0x9e, 0xbb, 0xa1, 0x4f, 0x78, 0x80, 0x11, 0x5e, 0x26, 0x22, 0x34, 0x71, 0xf5, 0x69, 0xb7, 0x5d, 0x6f, 0xe7, 0x51, 0xc4, 0xdf, 0xd5, 0x6d, 0x89, 0x28, 0x5d, 0x2d, 0x0f, 0x9a, 0x04, 0x12, 0x91, 0x48, 0x41, 0x22, 0x3b, 0x94, 0x06, 0xdb, 0xaf, 0x6c, 0xe5, 0x13, 0x07, 0xba, 0x57, 0x5b, 0xa4, 0x4c, 0xe5, 0x5f, } TestEd25519PrivateKeyTyped = append([]byte{byte(crpt.Ed25519)}, TestEd25519PrivateKey...) TestWrongData = []byte{0x1, 0x2, 0x3, 0x4} TestMsg = []byte{0x1, 0x2, 0x3, 0x4} TestDigest []byte TestMsg2 = []byte{0x1, 0x2, 0x3, 0x4, 0x5} )
Functions ¶
func BenchmarkSignMessage ¶ added in v0.5.0
func BenchmarkVerify ¶ added in v0.5.0
func Test_Batch ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.