Searched refs:keyout (Results 1 – 4 of 4) sorted by relevance
50 smb_initlmkey(uchar_t *keyout, const uchar_t *keyin);146 smb_initlmkey(uchar_t *keyout, const uchar_t *keyin) in smb_initlmkey() argument150 keyout[0] = keyin[0] >> 0x01; in smb_initlmkey()151 keyout[1] = ((keyin[0] & 0x01) << 6) | (keyin[1] >> 2); in smb_initlmkey()152 keyout[2] = ((keyin[1] & 0x03) << 5) | (keyin[2] >> 3); in smb_initlmkey()153 keyout[3] = ((keyin[2] & 0x07) << 4) | (keyin[3] >> 4); in smb_initlmkey()154 keyout[4] = ((keyin[3] & 0x0f) << 3) | (keyin[4] >> 5); in smb_initlmkey()155 keyout[5] = ((keyin[4] & 0x1f) << 2) | (keyin[5] >> 6); in smb_initlmkey()156 keyout[6] = ((keyin[5] & 0x3f) << 1) | (keyin[6] >> 7); in smb_initlmkey()157 keyout[7] = keyin[6] & 0x7f; in smb_initlmkey()[all …]
36 static void smb_initlmkey(unsigned char *keyin, unsigned char *keyout);224 smb_initlmkey(unsigned char *keyin, unsigned char *keyout) in smb_initlmkey() argument228 keyout[0] = keyin[0] >> 0x01; in smb_initlmkey()229 keyout[1] = ((keyin[0] & 0x01) << 6) | (keyin[1] >> 2); in smb_initlmkey()230 keyout[2] = ((keyin[1] & 0x03) << 5) | (keyin[2] >> 3); in smb_initlmkey()231 keyout[3] = ((keyin[2] & 0x07) << 4) | (keyin[3] >> 4); in smb_initlmkey()232 keyout[4] = ((keyin[3] & 0x0f) << 3) | (keyin[4] >> 5); in smb_initlmkey()233 keyout[5] = ((keyin[4] & 0x1f) << 2) | (keyin[5] >> 6); in smb_initlmkey()234 keyout[6] = ((keyin[5] & 0x3f) << 1) | (keyin[6] >> 7); in smb_initlmkey()235 keyout[7] = keyin[6] & 0x7f; in smb_initlmkey()[all …]
90 adjust(keyout, keyin) in adjust() argument91 char keyout[HEXKEYBYTES + 1]; in adjust()99 for (s = keyout + HEXKEYBYTES; p >= keyin; p--, s--) {102 while (s >= keyout) {
77 adjust(char *keyout, char *keyin, int keylen) in adjust() argument84 for (s = keyout + hexkeybytes; p >= keyin; p--, s--) { in adjust()87 while (s >= keyout) { in adjust()