Lines Matching +full:k +full:- +full:to +full:- +full:j
2 * Copyright (c) 1997 - 2008 Kungliga Tekniska Högskolan
18 * may be used to endorse or promote products derived from this software
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
44 DES_cblock *k = key->keyvalue.data; in DES3_random_key() local
46 krb5_generate_random_block(k, 3 * sizeof(DES_cblock)); in DES3_random_key()
47 DES_set_odd_parity(&k[0]); in DES3_random_key()
48 DES_set_odd_parity(&k[1]); in DES3_random_key()
49 DES_set_odd_parity(&k[2]); in DES3_random_key()
50 } while(DES_is_weak_key(&k[0]) || in DES3_random_key()
51 DES_is_weak_key(&k[1]) || in DES3_random_key()
52 DES_is_weak_key(&k[2])); in DES3_random_key()
111 "rsa-md5-des3",
122 "hmac-sha1-des3",
133 "des3-cbc-md5",
149 "des3-cbc-sha1",
165 "old-des3-cbc-sha1",
181 "des3-cbc-none",
200 unsigned char *x = key->keyvalue.data; in _krb5_DES3_random_to_key()
202 DES_cblock *k; in _krb5_DES3_random_to_key() local
203 int i, j; in _krb5_DES3_random_to_key() local
205 memset(key->keyvalue.data, 0, key->keyvalue.length); in _krb5_DES3_random_to_key()
208 for (j = 0; j < 7; ++j) { in _krb5_DES3_random_to_key()
209 unsigned char b = q[7 * i + j]; in _krb5_DES3_random_to_key()
211 x[8 * i + j] = b; in _krb5_DES3_random_to_key()
214 for (j = 6; j >= 0; --j) { in _krb5_DES3_random_to_key()
215 foo |= q[7 * i + j] & 1; in _krb5_DES3_random_to_key()
220 k = key->keyvalue.data; in _krb5_DES3_random_to_key()
222 DES_set_odd_parity(&k[i]); in _krb5_DES3_random_to_key()
223 if(DES_is_weak_key(&k[i])) in _krb5_DES3_random_to_key()
224 _krb5_xor(&k[i], (const unsigned char*)"\0\0\0\0\0\0\0\xf0"); in _krb5_DES3_random_to_key()