Lines Matching full:key

10 .RI "void \fBDES_set_odd_parity\fP (DES_cblock *key)"
13 .RI "int HC_DEPRECATED \fBDES_check_key_parity\fP (DES_cblock *key)"
16 .RI "int \fBDES_is_weak_key\fP (DES_cblock *key)"
19 .RI "int HC_DEPRECATED \fBDES_set_key\fP (DES_cblock *key, DES_key_schedule *ks)"
22 .RI "int \fBDES_set_key_unchecked\fP (DES_cblock *key, DES_key_schedule *ks)"
25 .RI "int \fBDES_set_key_checked\fP (DES_cblock *key, DES_key_schedule *ks)"
28 .RI "int \fBDES_key_sched\fP (DES_cblock *key, DES_key_schedule *ks)"
55 .RI "void \fBDES_string_to_key\fP (const char *str, DES_cblock *key)"
58 .RI "int HC_DEPRECATED \fBDES_new_random_key\fP (DES_cblock *key)"
64 .RI "void HC_DEPRECATED \fBDES_random_key\fP (DES_cblock *key)"
86 \fIks\fP key schedule to use
106 \fIks\fP key schedule to use
128 \fIks\fP key schedule to use
138 .SS "int HC_DEPRECATED DES_check_key_parity (DES_cblock * key)"
140 Check if the key have correct parity.
144 \fIkey\fP key to check the parity.
163 \fIks1\fP key schedule to use
165 \fIks2\fP key schedule to use
167 \fIks3\fP key schedule to use
183 \fIks\fP key schedule to use
203 \fIks1\fP key schedule to use
205 \fIks2\fP key schedule to use
207 \fIks3\fP key schedule to use
223 \fIks\fP key schedule to use
239 .SS "int DES_is_weak_key (DES_cblock * key)"
241 Checks if the key is any of the weaks keys that makes DES attacks trival.
245 \fIkey\fP key to check.
250 1 if the key is weak, 0 otherwise.
254 .SS "int DES_key_sched (DES_cblock * key, DES_key_schedule * ks)"
260 \fIkey\fP a key to initialize the key schedule with.
262 \fIks\fP a key schedule to initialize.
267 0 on success, -1 on invalid parity, -2 on weak key.
271 .SS "int HC_DEPRECATED DES_new_random_key (DES_cblock * key)"
273 Generate a random des key using a random block, fixup parity and skip weak keys.
277 \fIkey\fP is set to a random key.
300 \fIks\fP key schedule to use
308 .SS "void HC_DEPRECATED DES_random_key (DES_cblock * key)"
310 Generate a random key, deprecated since it doesn't return an error code, use \fBDES_new_random_key(…
314 \fIkey\fP is set to a random key.
318 .SS "int HC_DEPRECATED DES_set_key (DES_cblock * key, DES_key_schedule * ks)"
320 Setup a des key schedule from a key. Deprecated function, use \fBDES_set_key_unchecked()\fP or \fBD…
324 \fIkey\fP a key to initialize the key schedule with.
326 \fIks\fP a key schedule to initialize.
335 .SS "int DES_set_key_checked (DES_cblock * key, DES_key_schedule * ks)"
337 Just like \fBDES_set_key_unchecked()\fP except checking that the key is not weak for or have correc…
341 \fIkey\fP a key to initialize the key schedule with.
343 \fIks\fP a key schedule to initialize.
348 0 on success, -1 on invalid parity, -2 on weak key.
352 .SS "int DES_set_key_unchecked (DES_cblock * key, DES_key_schedule * ks)"
354 Setup a des key schedule from a key. The key is no longer needed after this transaction and can cle…
356 Does NOT check that the key is weak for or have wrong parity.
360 \fIkey\fP a key to initialize the key schedule with.
362 \fIks\fP a key schedule to initialize.
371 .SS "void DES_set_odd_parity (DES_cblock * key)"
373 Set the parity of the key block, used to generate a des key from a random key. See \fBDES key gener…
377 \fIkey\fP key to fixup the parity for.
381 .SS "void DES_string_to_key (const char * str, DES_cblock * key)"
383 Convert a string to a DES key. Use something like \fBPKCS5_PBKDF2_HMAC_SHA1()\fP to create key from…
387 \fIstr\fP The string to convert to a key
389 \fIkey\fP the resulting key