Home
last modified time | relevance | path

Searched refs:keyout (Results 1 – 4 of 4) sorted by relevance

/titanic_50/usr/src/lib/libsmbfs/smb/
H A Dcrypt.c50 smb_initlmkey(uchar_t *keyout, const uchar_t *keyin);
146 smb_initlmkey(uchar_t *keyout, const uchar_t *keyin) in smb_initlmkey() argument
150 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 …]
/titanic_50/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_crypt.c36 static void smb_initlmkey(unsigned char *keyin, unsigned char *keyout);
224 smb_initlmkey(unsigned char *keyin, unsigned char *keyout) in smb_initlmkey() argument
228 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 …]
/titanic_50/usr/src/lib/libnsl/key/
H A Dgen_dhkeys.c90 adjust(keyout, keyin) in adjust() argument
91 char keyout[HEXKEYBYTES + 1]; in adjust()
99 for (s = keyout + HEXKEYBYTES; p >= keyin; p--, s--) {
102 while (s >= keyout) {
/titanic_50/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c77 adjust(char *keyout, char *keyin, int keylen) in adjust() argument
84 for (s = keyout + hexkeybytes; p >= keyin; p--, s--) { in adjust()
87 while (s >= keyout) { in adjust()