1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/include/ulib/base/ssl/des3.h
stefanocasazza eb39e7643a sync
2016-07-12 16:11:57 +02:00

40 lines
1.1 KiB
C

/* ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// des3.h
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================ */
#ifndef ULIB_CODER_DES3_H
#define ULIB_CODER_DES3_H 1
#include <ulib/base/base.h>
#ifdef __cplusplus
extern "C" {
#endif
U_EXPORT void u_des_init(void);
U_EXPORT void u_des_reset(void);
U_EXPORT void u_des_key(const char* restrict str);
U_EXPORT long u_des_encode(const unsigned char* restrict inp, long len, unsigned char* restrict out);
U_EXPORT long u_des_decode(const unsigned char* restrict inp, long len, unsigned char* restrict out);
U_EXPORT void u_des3_init(void);
U_EXPORT void u_des3_reset(void);
U_EXPORT void u_des3_key(const char* restrict str);
U_EXPORT long u_des3_encode(const unsigned char* restrict inp, long len, unsigned char* restrict out);
U_EXPORT long u_des3_decode(const unsigned char* restrict inp, long len, unsigned char* restrict out);
#ifdef __cplusplus
}
#endif
#endif