Lines Matching refs:k
58 unsigned char *k; in RC2_set_key() local
62 k = (unsigned char *)&(key->data[0]); in RC2_set_key()
63 *k = 0; /* for if there is a zero length key */ in RC2_set_key()
73 k[i] = data[i]; in RC2_set_key()
76 d = k[len - 1]; in RC2_set_key()
79 d = key_table[(k[j] + d) & 0xff]; in RC2_set_key()
80 k[i] = d; in RC2_set_key()
89 d = key_table[k[i] & c]; in RC2_set_key()
90 k[i] = d; in RC2_set_key()
92 d = key_table[k[i + j] ^ d]; in RC2_set_key()
93 k[i] = d; in RC2_set_key()
99 *(ki--) = ((k[i] << 8) | k[i - 1]) & 0xffff; in RC2_set_key()