#include <openssl/cipher.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
#include "internal.h"
#include "../service_indicator/internal.h"
#include "../../internal.h"
void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) { … }
EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) { … }
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) { … }
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) { … }
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) { … }
int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) { … }
int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
ENGINE *engine, const uint8_t *key, const uint8_t *iv,
int enc) { … }
int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
ENGINE *impl, const uint8_t *key, const uint8_t *iv) { … }
int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
ENGINE *impl, const uint8_t *key, const uint8_t *iv) { … }
static int block_remainder(const EVP_CIPHER_CTX *ctx, int len) { … }
int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len,
const uint8_t *in, int in_len) { … }
int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { … }
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len,
const uint8_t *in, int in_len) { … }
int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) { … }
int EVP_Cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in,
size_t in_len) { … }
int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len,
const uint8_t *in, int in_len) { … }
int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { … }
const EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx) { … }
int EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx) { … }
int EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx) { … }
unsigned EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) { … }
unsigned EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) { … }
unsigned EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) { … }
void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx) { … }
void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) { … }
uint32_t EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) { … }
uint32_t EVP_CIPHER_CTX_mode(const EVP_CIPHER_CTX *ctx) { … }
int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int command, int arg, void *ptr) { … }
int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) { … }
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *c, unsigned key_len) { … }
int EVP_CIPHER_nid(const EVP_CIPHER *cipher) { … }
unsigned EVP_CIPHER_block_size(const EVP_CIPHER *cipher) { … }
unsigned EVP_CIPHER_key_length(const EVP_CIPHER *cipher) { … }
unsigned EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) { … }
uint32_t EVP_CIPHER_flags(const EVP_CIPHER *cipher) { … }
uint32_t EVP_CIPHER_mode(const EVP_CIPHER *cipher) { … }
int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
const uint8_t *key, const uint8_t *iv, int enc) { … }
int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
const uint8_t *key, const uint8_t *iv) { … }
int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
const uint8_t *key, const uint8_t *iv) { … }
int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { … }
int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { … }
int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len) { … }
int EVP_add_cipher_alias(const char *a, const char *b) { … }
void EVP_CIPHER_CTX_set_flags(const EVP_CIPHER_CTX *ctx, uint32_t flags) { … }