Home | History | Annotate | Download | only in cipher

Lines Matching refs:plaintext

20 	key, iv, plaintext, ciphertext string
58 plaintext, err := hex.DecodeString(test.plaintext)
72 ciphertext := make([]byte, len(plaintext))
74 cfb.XORKeyStream(ciphertext, plaintext)
85 t.Errorf("#%d: wrong plaintext: got %x, expected %x", i, plaintextCopy, plaintext)
97 plaintext := []byte("this is the plaintext. this is the plaintext.")
101 ciphertext := make([]byte, len(plaintext))
102 copy(ciphertext, plaintext)
106 plaintextCopy := make([]byte, len(plaintext))
110 if !bytes.Equal(plaintextCopy, plaintext) {
111 t.Errorf("got: %x, want: %x", plaintextCopy, plaintext)