Lines Matching defs:key
82 * Generate key schedule for triple DES in E-D-E (or D-E-D) mode.
84 * The key argument is taken to be 24 bytes. The first 8 bytes are K1
89 des3_key(void *cookie, const uint8_t *key)
92 uint8_t *k1 = (uint8_t *)key;
106 des3_keycheck(const uint8_t *key)
153 if (IS_P2ALIGNED(key, sizeof (uint64_t))) {
155 currentkey = (uint64_t *)key;
158 bcopy(key, currentkey, 3 * sizeof (uint64_t));
203 /* Do weak key check itself. */
207 /* In 3DES, one weak key is OK. Two is bad. */
212 * We found a weak key, but since
213 * we've only found one weak key,
217 * Break from the weak key loop
218 * (since this DES key is weak) and
227 * Fix key extension, adjust bits if necessary.
233 * Perform key equivalence checks, now that parity is properly set.