20 #ifndef FREERDP_LIB_CRYPTO_H
21 #define FREERDP_LIB_CRYPTO_H
24 #include <winpr/windows.h>
25 #include <winpr/custom-crypto.h>
27 #include <freerdp/api.h>
28 #include <freerdp/freerdp.h>
29 #include <freerdp/crypto/crypto.h>
36 FREERDP_LOCAL SSIZE_T crypto_rsa_public_encrypt(
const BYTE* input,
size_t length,
37 const rdpCertInfo* cert, BYTE* output,
38 size_t output_length);
39 FREERDP_LOCAL SSIZE_T crypto_rsa_public_decrypt(
const BYTE* input,
size_t length,
40 const rdpCertInfo* cert, BYTE* output,
41 size_t output_length);
42 FREERDP_LOCAL SSIZE_T crypto_rsa_private_encrypt(
const BYTE* input,
size_t length,
43 const rdpPrivateKey* key, BYTE* output,
44 size_t output_length);
45 FREERDP_LOCAL SSIZE_T crypto_rsa_private_decrypt(
const BYTE* input,
size_t length,
46 const rdpPrivateKey* key, BYTE* output,
47 size_t output_length);
49 FREERDP_LOCAL
void crypto_reverse(BYTE* data,
size_t length);