Lines Matching refs:subkeys
9 func cryptBlock(subkeys []uint64, dst, src []byte, decrypt bool) {
19 left, right = feistel(left, right, subkeys[15-2*i], subkeys[15-(2*i+1)])
23 left, right = feistel(left, right, subkeys[2*i], subkeys[2*i+1])
35 // Encrypt one block from src into dst, using the subkeys.
36 func encryptBlock(subkeys []uint64, dst, src []byte) {
37 cryptBlock(subkeys, dst, src, false)
40 // Decrypt one block from src into dst, using the subkeys.
41 func decryptBlock(subkeys []uint64, dst, src []byte) {
42 cryptBlock(subkeys, dst, src, true)
220 // creates 16 56-bit subkeys from the original key
230 // generate subkeys
235 c.subkeys[i] = unpack(permuteBlock(pc2Input, permutedChoice2[:]))