Lines Matching refs:key_56
142 static void extend_key_56_to_64(const unsigned char *key_56, char *key) in extend_key_56_to_64() argument
144 key[0] = (char)key_56[0]; in extend_key_56_to_64()
145 key[1] = (char)(((key_56[0] << 7) & 0xFF) | (key_56[1] >> 1)); in extend_key_56_to_64()
146 key[2] = (char)(((key_56[1] << 6) & 0xFF) | (key_56[2] >> 2)); in extend_key_56_to_64()
147 key[3] = (char)(((key_56[2] << 5) & 0xFF) | (key_56[3] >> 3)); in extend_key_56_to_64()
148 key[4] = (char)(((key_56[3] << 4) & 0xFF) | (key_56[4] >> 4)); in extend_key_56_to_64()
149 key[5] = (char)(((key_56[4] << 3) & 0xFF) | (key_56[5] >> 5)); in extend_key_56_to_64()
150 key[6] = (char)(((key_56[5] << 2) & 0xFF) | (key_56[6] >> 6)); in extend_key_56_to_64()
151 key[7] = (char) ((key_56[6] << 1) & 0xFF); in extend_key_56_to_64()
160 static void setup_des_key(const unsigned char *key_56, in setup_des_key() argument
166 extend_key_56_to_64(key_56, (char *) &key); in setup_des_key()
177 static void setup_des_key(const unsigned char *key_56, in setup_des_key() argument
183 extend_key_56_to_64(key_56, key); in setup_des_key()
195 const unsigned char *key_56) in encrypt_des() argument
201 extend_key_56_to_64(key_56, key); in encrypt_des()
215 const unsigned char *key_56) in encrypt_des() argument
222 extend_key_56_to_64(key_56, key); in encrypt_des()
238 const unsigned char *key_56) in encrypt_des() argument
248 extend_key_56_to_64(key_56, ctl.Crypto_Key); in encrypt_des()
262 const unsigned char *key_56) in encrypt_des() argument
286 extend_key_56_to_64(key_56, blob.key); in encrypt_des()