RDK Documentation (Open Sourced RDK Components)
openSslMocks.c
1 #include <openssl/evp.h>
2 
3 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void)
4 {
5  return NULL;
6 }
7 
8 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
9 {
10 }
11 
12 #if OPENSSL_API_COMPAT < 0x10100000L
13 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx)
14 {
15  return 0;
16 }
17 #else
18 void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a)
19 {
20 }
21 
22 int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a)
23 {
24  return 0;
25 }
26 #endif
27 
28 const EVP_CIPHER *EVP_aes_128_ctr(void)
29 {
30  return NULL;
31 }
32 
33 int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
34  const unsigned char *key, const unsigned char *iv)
35 {
36  return 0;
37 }
38 
39 int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
40  ENGINE *impl, const unsigned char *key,
41  const unsigned char *iv)
42 {
43  return 0;
44 }
45 
46 int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
47  const unsigned char *in, int inl)
48 {
49  return 0;
50 }
51 
52 int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl)
53 {
54  return 0;
55 }