mirror of
https://github.com/restic/restic.git
synced 2026-11-19 15:00:12 +00:00
crypto: Rename internal functions
This commit is contained in:
1 parent
7a7cc5b39f
commit
7b6bd98c9e
3 files changed
+7
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user