diff options
Diffstat (limited to 'wsutil/wsgcrypt.h')
-rw-r--r-- | wsutil/wsgcrypt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wsutil/wsgcrypt.h b/wsutil/wsgcrypt.h index 6a5ef8290e..90ad24081d 100644 --- a/wsutil/wsgcrypt.h +++ b/wsutil/wsgcrypt.h @@ -29,6 +29,7 @@ #include <ws_diag_control.h> #include "ws_symbol_export.h" +#include <glib.h> DIAG_OFF(deprecated-declarations) @@ -46,4 +47,8 @@ DIAG_ON(deprecated-declarations) algorithm. */ WS_DLL_PUBLIC gcry_error_t ws_hmac_buffer(int algo, void *digest, const void *buffer, size_t length, const void *key, size_t keylen); +/* Convenience function to encrypt 8 bytes in BUFFER with DES using the 56 bits KEY expanded to + 64 bits as key, encrypted data is returned in OUTPUT which must be at least 8 bytes large */ +WS_DLL_PUBLIC void crypt_des_ecb(guint8 *output, const guint8 *buffer, const guint8 *key56); + #endif /* __WSGCRYPT_H__ */ |