diff options
Diffstat (limited to 'src/pkg/crypto/block/cbc_aes_test.go')
-rw-r--r-- | src/pkg/crypto/block/cbc_aes_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/block/cbc_aes_test.go b/src/pkg/crypto/block/cbc_aes_test.go index 8a84feadd..8f7d5b442 100644 --- a/src/pkg/crypto/block/cbc_aes_test.go +++ b/src/pkg/crypto/block/cbc_aes_test.go @@ -82,7 +82,7 @@ func TestCBC_AES(t *testing.T) { n, err := io.Copy(r, w); if n != int64(len(tt.in)) || err != nil { t.Errorf("%s: CBCEncrypter io.Copy = %d, %v want %d, nil", test, n, err, len(tt.in)); - } else if d := crypt.Data(); !same(tt.out, d) { + } else if d := crypt.Bytes(); !same(tt.out, d) { t.Errorf("%s: CBCEncrypter\nhave %x\nwant %x", test, d, tt.out); } @@ -92,7 +92,7 @@ func TestCBC_AES(t *testing.T) { n, err = io.Copy(r, w); if n != int64(len(tt.out)) || err != nil { t.Errorf("%s: CBCDecrypter io.Copy = %d, %v want %d, nil", test, n, err, len(tt.out)); - } else if d := plain.Data(); !same(tt.in, d) { + } else if d := plain.Bytes(); !same(tt.in, d) { t.Errorf("%s: CBCDecrypter\nhave %x\nwant %x", test, d, tt.in); } |