Lines Matching refs:key

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()
163 DES_cblock key; in setup_des_key() local
166 extend_key_56_to_64(key_56, (char *) &key); in setup_des_key()
169 DES_set_odd_parity(&key); in setup_des_key()
172 DES_set_key_unchecked(&key, ks); in setup_des_key()
180 char key[8]; in setup_des_key() local
183 extend_key_56_to_64(key_56, key); in setup_des_key()
186 Curl_des_set_odd_parity((unsigned char *) key, sizeof(key)); in setup_des_key()
189 des_set_key(des, (const uint8_t *) key); in setup_des_key()
198 char key[8]; in encrypt_des() local
201 extend_key_56_to_64(key_56, key); in encrypt_des()
204 mbedtls_des_key_set_parity((unsigned char *) key); in encrypt_des()
208 mbedtls_des_setkey_enc(&ctx, (unsigned char *) key); in encrypt_des()
217 char key[8]; in encrypt_des() local
222 extend_key_56_to_64(key_56, key); in encrypt_des()
225 Curl_des_set_odd_parity((unsigned char *) key, sizeof(key)); in encrypt_des()
228 err = CCCrypt(kCCEncrypt, kCCAlgorithmDES, kCCOptionECBMode, key, in encrypt_des()
240 char key[8]; in encrypt_des() local
245 ctl.Data_Len = sizeof(key); in encrypt_des()
269 char key[8]; in encrypt_des() member
283 blob.len = sizeof(blob.key); in encrypt_des()
286 extend_key_56_to_64(key_56, blob.key); in encrypt_des()
289 Curl_des_set_odd_parity((unsigned char *) blob.key, sizeof(blob.key)); in encrypt_des()