Lines Matching refs:key

63  * bits of key data, which amounts to 128 bytes.
66 * 144 bytes (128key + 16checksum) to accomadate all the 128 bytes
75 * Encrypt a secret key given passwd
76 * The secret key is passed and returned in hex notation.
85 char key[8];
96 (void) passwd2des(passwd, key);
99 err = cbc_crypt(key, buf, len, DES_ENCRYPT | DES_HW, ivec);
116 * Decrypt secret key using passwd
117 * The secret key is passed and returned in hex notation.
126 char key[8];
138 (void) passwd2des(passwd, key);
141 err = cbc_crypt(key, buf, len, DES_DECRYPT | DES_HW, ivec);
158 * Turn password into DES key
161 passwd2des(pw, key)
163 char *key;
167 (void) memset(key, 0, 8);
169 key[i] ^= *pw++ << 1;
171 des_setparity(key);
236 * Generic key length/algorithm version of xencrypt().
238 * Encrypt a secret key given passwd.
239 * The secret key is passed in hex notation.
241 * secret key (NUL term, hex notation).
264 des_block key;
301 /* append the hex md5 string to the end of the key */
318 (void) passwd2des((char *)passwd, key.c);
322 (int)strlen(netname), &key, FALSE);
331 err = cbc_crypt(key.c, binkeybuf, binkeybytes, DES_ENCRYPT | DES_HW,
351 * Generic key len and alg type for version of xdecrypt.
353 * Decrypt secret key using passwd. The decrypted secret key
354 * *overwrites* the supplied encrypted secret key.
355 * The secret key is passed and returned in hex notation.
376 des_block key;
393 (void) passwd2des((char *)passwd, key.c);
397 (int)strlen(netname), &key, FALSE);
404 err = cbc_crypt(key.c, buf, len, DES_DECRYPT | DES_HW, ivec);
454 * RFC 1510 algorithm to generate a DES key from a user password
465 des_block *key, /* out */
480 * to the required eight byte initial DES key. Since passwords can be
482 * bit in order to preserve as much key space as possible.
498 * to the required eight byte initial DES key. Since passwords can be
500 * bit in order to preserve as much key space as possible.
559 * Use the temporary key to produce a DES CBC checksum for the text
574 (void) memcpy((*key).c, ivec.c, sizeof (ivec.c));
616 if (weakDESkeys[i].h1 == db.key.high &&
617 weakDESkeys[i].h2 == db.key.low)