Searched refs:key_56 (Results 1 – 2 of 2) sorted by relevance
138 static void extend_key_56_to_64(const unsigned char *key_56, char *key) in extend_key_56_to_64() argument140 key[0] = key_56[0]; in extend_key_56_to_64()141 key[1] = (unsigned char)(((key_56[0] << 7) & 0xFF) | (key_56[1] >> 1)); in extend_key_56_to_64()142 key[2] = (unsigned char)(((key_56[1] << 6) & 0xFF) | (key_56[2] >> 2)); in extend_key_56_to_64()143 key[3] = (unsigned char)(((key_56[2] << 5) & 0xFF) | (key_56[3] >> 3)); in extend_key_56_to_64()144 key[4] = (unsigned char)(((key_56[3] << 4) & 0xFF) | (key_56[4] >> 4)); in extend_key_56_to_64()145 key[5] = (unsigned char)(((key_56[4] << 3) & 0xFF) | (key_56[5] >> 5)); in extend_key_56_to_64()146 key[6] = (unsigned char)(((key_56[5] << 2) & 0xFF) | (key_56[6] >> 6)); in extend_key_56_to_64()147 key[7] = (unsigned char) ((key_56[6] << 1) & 0xFF); in extend_key_56_to_64()155 static void setup_des_key(const unsigned char *key_56, in setup_des_key() argument[all …]
144 void Splay56To64(const uint8_t* key_56, uint8_t* key_64) { in Splay56To64() argument145 key_64[0] = key_56[0]; in Splay56To64()146 key_64[1] = key_56[0] << 7 | key_56[1] >> 1; in Splay56To64()147 key_64[2] = key_56[1] << 6 | key_56[2] >> 2; in Splay56To64()148 key_64[3] = key_56[2] << 5 | key_56[3] >> 3; in Splay56To64()149 key_64[4] = key_56[3] << 4 | key_56[4] >> 4; in Splay56To64()150 key_64[5] = key_56[4] << 3 | key_56[5] >> 5; in Splay56To64()151 key_64[6] = key_56[5] << 2 | key_56[6] >> 6; in Splay56To64()152 key_64[7] = key_56[6] << 1; in Splay56To64()