diff options
author | Andreas Schneider <asn@samba.org> | 2019-07-18 13:33:54 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-26 01:48:22 +0000 |
commit | baa96ef20945638fb5ee76b03543c7b611e9c7d7 (patch) | |
tree | 85e534dddc003d5d2fedbc38f8d1ca998d043aec /lib/crypto | |
parent | e43678b84a3434b977f44b265599f1d9207d3b78 (diff) | |
download | samba-baa96ef20945638fb5ee76b03543c7b611e9c7d7.tar.gz |
lib:crypto: Document samba_gnutls_arcfour_confounded_md5()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/crypto')
-rw-r--r-- | lib/crypto/gnutls_helpers.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/crypto/gnutls_helpers.h b/lib/crypto/gnutls_helpers.h index 5fd9a4d2d67..45dec2b5db6 100644 --- a/lib/crypto/gnutls_helpers.h +++ b/lib/crypto/gnutls_helpers.h @@ -85,6 +85,24 @@ enum samba_gnutls_direction { SAMBA_GNUTLS_DECRYPT }; +/** + * @brief Encrypt or decrypt a data blob using RC4 with a key and salt. + * + * One of the key input should be a session key and the other a confounder + * (aka salt). Which one depends on the implementation details of the + * protocol. + * + * @param[in] key_input1 Either a session_key or a confounder. + * + * @param[in] key_input2 Either a session_key or a confounder. + * + * @param[in] data The data blob ot either encrypt or decrypt. The data + * will be encrypted or decrypted in place. + * + * @param[in] encrypt The encryption direction. + * + * @return A gnutls error code. + */ int samba_gnutls_arcfour_confounded_md5(const DATA_BLOB *key_input1, const DATA_BLOB *key_input2, DATA_BLOB *data, |