Home | History | Annotate | Download | only in cipher

Lines Matching full:ciphertext

20 	key, iv, plaintext, ciphertext string
62 expected, err := hex.DecodeString(test.ciphertext)
72 ciphertext := make([]byte, len(plaintext))
74 cfb.XORKeyStream(ciphertext, plaintext)
76 if !bytes.Equal(ciphertext, expected) {
77 t.Errorf("#%d: wrong output: got %x, expected %x", i, ciphertext, expected)
81 plaintextCopy := make([]byte, len(ciphertext))
82 cfbdec.XORKeyStream(plaintextCopy, ciphertext)
101 ciphertext := make([]byte, len(plaintext))
102 copy(ciphertext, plaintext)
103 cfb.XORKeyStream(ciphertext, ciphertext)
107 copy(plaintextCopy, ciphertext)