Home | History | Annotate | Download | only in cipher

Lines Matching refs:tt

69 	for _, tt := range ofbTests {
70 test := tt.name
72 c, err := aes.NewCipher(tt.key)
74 t.Errorf("%s: NewCipher(%d bytes) = %s", test, len(tt.key), err)
79 plaintext := tt.in[0 : len(tt.in)-j]
80 ofb := cipher.NewOFB(c, tt.iv)
83 if !bytes.Equal(ciphertext, tt.out[:len(plaintext)]) {
84 t.Errorf("%s/%d: encrypting\ninput % x\nhave % x\nwant % x", test, len(plaintext), plaintext, ciphertext, tt.out)
89 ciphertext := tt.out[0 : len(tt.in)-j]
90 ofb := cipher.NewOFB(c, tt.iv)
93 if !bytes.Equal(plaintext, tt.in[:len(ciphertext)]) {
94 t.Errorf("%s/%d: decrypting\nhave % x\nwant % x", test, len(ciphertext), plaintext, tt.in)