Browse Source

fix typos

pull/1782/head
Liamsi 7 years ago
parent
commit
5a70fa6f35
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      crypto/encode_test.go
  2. +1
    -1
      crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go

+ 1
- 1
crypto/encode_test.go View File

@ -84,7 +84,7 @@ func TestKeyEncodings(t *testing.T) {
var sig1, sig2, sig3 Signature
sig1, err := tc.privKey.Sign([]byte("something"))
assert.NoError(t, err)
checkAminoBinary(t, sig1, &sig2, -1) // Siganture size changes for Secp anyways.
checkAminoBinary(t, sig1, &sig2, -1) // Signature size changes for Secp anyways.
assert.EqualValues(t, sig1, sig2)
checkAminoJSON(t, sig1, &sig3, false) // TODO also check Prefix bytes.
assert.EqualValues(t, sig1, sig3)


+ 1
- 1
crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go View File

@ -11,7 +11,7 @@ import (
)
// Test that a test vector we generated is valid. (Ensures backwards
// compatability)
// compatibility)
func TestVector(t *testing.T) {
key, _ := hex.DecodeString("56f8de45d3c294c7675bcaf457bdd4b71c380b9b2408ce9412b348d0f08b69ee")
aead, err := New(key[:])


Loading…
Cancel
Save