ax(ueps): remove surviving prose fragment from MarshalAndSign_Ugly comment
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
fbdb14e98f
commit
dae27bb10b
1 changed files with 1 additions and 2 deletions
|
|
@ -116,9 +116,8 @@ func TestPacket_MarshalAndSign_Bad(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// the HMAC stored in the frame (the frame is immutable once signed).
|
||||
// frame, _ := builder.MarshalAndSign(secret)
|
||||
// // modifying frame[len(frame)-1] breaks HMAC verification
|
||||
// corrupted[len(frame)-1] ^= 0xFF // modifying any byte breaks HMAC verification
|
||||
func TestPacket_MarshalAndSign_Ugly(t *testing.T) {
|
||||
builder := NewBuilder(0x03, []byte("sensitive"))
|
||||
sharedSecret := []byte("my-secret")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue