diff options
author | Adam Langley <agl@google.com> | 2015-02-25 03:37:26 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-03-18 22:54:53 +0300 |
commit | 7282738bad46445f0b6599e6d06ea4df270493a8 (patch) | |
tree | 84a88c19d167906f9decc0a6b420155988355a29 /include/openssl/des.h | |
parent | 3f92d21094ebb0ee36851d0f85764fefa52491f3 (diff) |
Add DES_set_odd_parity.
Because NTLM authentication is still a thing.
Change-Id: I3308a8431c82f0b614e09ce3e5efac1526881f1e
Reviewed-on: https://boringssl-review.googlesource.com/3723
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/des.h')
-rw-r--r-- | include/openssl/des.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/des.h b/include/openssl/des.h index 1f0dbad3..94188461 100644 --- a/include/openssl/des.h +++ b/include/openssl/des.h @@ -94,6 +94,10 @@ typedef struct DES_ks { OPENSSL_EXPORT void DES_set_key(const DES_cblock *key, DES_key_schedule *schedule); +/* DES_set_odd_parity sets the parity bits (the least-significant bits in each + * byte) of |key| given the other bits in each byte. */ +OPENSSL_EXPORT void DES_set_odd_parity(DES_cblock *key); + /* DES_ecb_encrypt encrypts (or decrypts, if |is_encrypt| is |DES_DECRYPT|) a * single DES block (8 bytes) from in to out, using the key configured in * |schedule|. */ |