Home
last modified time | relevance | path

Searched refs:key_so_far (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/common/crypto/des/
H A Ddes_impl.c625 uint64_t key_so_far; in keycheck() local
667 key_so_far = htonll(*(uint64_t *)(void *)&key[0]); in keycheck()
674 key_so_far = (((uint64_t)key[0] << 56) | ((uint64_t)key[1] << 48) | in keycheck()
683 fix_des_parity(&key_so_far); in keycheck()
687 if (key_so_far == des_weak_keys[i]) { in keycheck()
693 *(uint64_t *)(void *)&corrected_key[0] = htonll(key_so_far); in keycheck()
700 corrected_key[0] = key_so_far >> 56; in keycheck()
701 corrected_key[1] = key_so_far >> 48; in keycheck()
702 corrected_key[2] = key_so_far >> 40; in keycheck()
703 corrected_key[3] = key_so_far >> 32; in keycheck()
[all …]
/titanic_44/usr/src/common/net/wanboot/crypt/
H A Ddes3.c108 uint64_t key_so_far; in des3_keycheck() local
162 key_so_far = currentkey[j]; in des3_keycheck()
163 scratch = key_so_far; in des3_keycheck()
199 key_so_far &= ~((uint64_t)1 << (i << 3)); in des3_keycheck()
200 key_so_far |= ((uint64_t)parity << (i << 3)); in des3_keycheck()
206 if (key_so_far == des_weak_keys[i]) { in des3_keycheck()
229 currentkey[j] = key_so_far; in des3_keycheck()