Lines Matching defs:salt
145 * "salt" are also converted to this 8*(6+2) format. The SPE table size is
215 * The Bell Labs "salt" (Bob Baldwin):
218 * Specifically, if bit i (1 <= i <= 24) of the salt is set then bits i and
219 * i+24 of the result are swapped. The salt is thus a 24 bit number, with
220 * 16777216 possible values. (The original salt was 12 bits and could not
223 * It is possible, but ugly, to warp the SPE table to account for the salt
555 int32_t salt;
648 salt = 0;
654 salt = (salt << 6) | value;
658 (char *)(void *)&rsltblock, salt, num_iter))
687 crypt(const char *key, const char *salt)
689 char *res = __crypt(key, salt);
694 return __UNCONST(salt[0] == '*' && salt[1] == '0' ? "*1" : "*0");
734 * iterations of DES, using the given 24-bit salt and the pre-computed key
741 des_cipher(const char *in, char *out, long salt, int num_iter)
752 L0 = salt;
753 TO_SIX_BIT(salt, L0); /* convert to 4*(6+2) format */
756 salt = ~salt; /* "x &~ y" is faster than "x & y". */
757 #define SALT (~salt)
759 #define SALT salt
812 k = (q0 ^ q1) & SALT; \
1088 salt]\n", getprogname());