crypto: Rename internal functions

This commit is contained in:
Alexander Neumann committed 2015-04-19 14:57:35 +02:00
1 parent 7a7cc5b39f
commit 7b6bd98c9e
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -48,13 +48,13 @@ func TestPoly1305(t *testing.T) {
key := &SigningKey{}
copy(key.K[:], test.k)
copy(key.R[:], test.r)
mac := poly1305_sign(test.msg, test.nonce, key)
mac := poly1305Sign(test.msg, test.nonce, key)
if !bytes.Equal(mac, test.mac) {
t.Fatalf("wrong mac calculated, want: %02x, got: %02x", test.mac, mac)
}
if !poly1305_verify(test.msg, test.nonce, key, test.mac) {
if !poly1305Verify(test.msg, test.nonce, key, test.mac) {
t.Fatalf("mac does not verify: mac: %02x", test.mac)
}
}