Functions
cipher.c File Reference
#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 "../../internal.h"
Include dependency graph for cipher.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int block_remainder (const EVP_CIPHER_CTX *ctx, int len)
 
int EVP_add_cipher_alias (const char *a, const char *b)
 
int EVP_Cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len)
 
unsigned EVP_CIPHER_block_size (const EVP_CIPHER *cipher)
 
unsigned EVP_CIPHER_CTX_block_size (const EVP_CIPHER_CTX *ctx)
 
const EVP_CIPHEREVP_CIPHER_CTX_cipher (const EVP_CIPHER_CTX *ctx)
 
int EVP_CIPHER_CTX_cleanup (EVP_CIPHER_CTX *c)
 
int EVP_CIPHER_CTX_copy (EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in)
 
int EVP_CIPHER_CTX_ctrl (EVP_CIPHER_CTX *ctx, int command, int arg, void *ptr)
 
int EVP_CIPHER_CTX_encrypting (const EVP_CIPHER_CTX *ctx)
 
uint32_t EVP_CIPHER_CTX_flags (const EVP_CIPHER_CTX *ctx)
 
void EVP_CIPHER_CTX_free (EVP_CIPHER_CTX *ctx)
 
void * EVP_CIPHER_CTX_get_app_data (const EVP_CIPHER_CTX *ctx)
 
void EVP_CIPHER_CTX_init (EVP_CIPHER_CTX *ctx)
 
unsigned EVP_CIPHER_CTX_iv_length (const EVP_CIPHER_CTX *ctx)
 
unsigned EVP_CIPHER_CTX_key_length (const EVP_CIPHER_CTX *ctx)
 
uint32_t EVP_CIPHER_CTX_mode (const EVP_CIPHER_CTX *ctx)
 
EVP_CIPHER_CTXEVP_CIPHER_CTX_new (void)
 
int EVP_CIPHER_CTX_nid (const EVP_CIPHER_CTX *ctx)
 
int EVP_CIPHER_CTX_reset (EVP_CIPHER_CTX *ctx)
 
void EVP_CIPHER_CTX_set_app_data (EVP_CIPHER_CTX *ctx, void *data)
 
void EVP_CIPHER_CTX_set_flags (const EVP_CIPHER_CTX *ctx, uint32_t flags)
 
int EVP_CIPHER_CTX_set_key_length (EVP_CIPHER_CTX *c, unsigned key_len)
 
int EVP_CIPHER_CTX_set_padding (EVP_CIPHER_CTX *ctx, int pad)
 
uint32_t EVP_CIPHER_flags (const EVP_CIPHER *cipher)
 
unsigned EVP_CIPHER_iv_length (const EVP_CIPHER *cipher)
 
unsigned EVP_CIPHER_key_length (const EVP_CIPHER *cipher)
 
uint32_t EVP_CIPHER_mode (const EVP_CIPHER *cipher)
 
int EVP_CIPHER_nid (const EVP_CIPHER *cipher)
 
int EVP_CipherFinal (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len)
 
int EVP_CipherFinal_ex (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len)
 
int EVP_CipherInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const uint8_t *key, const uint8_t *iv, int enc)
 
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_CipherUpdate (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len, const uint8_t *in, int in_len)
 
int EVP_DecryptFinal (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len)
 
int EVP_DecryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
 
int EVP_DecryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, 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)
 
int EVP_DecryptUpdate (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len, const uint8_t *in, int in_len)
 
int EVP_EncryptFinal (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len)
 
int EVP_EncryptFinal_ex (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len)
 
int EVP_EncryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const uint8_t *key, const uint8_t *iv)
 
int EVP_EncryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const uint8_t *key, const uint8_t *iv)
 
int EVP_EncryptUpdate (EVP_CIPHER_CTX *ctx, uint8_t *out, int *out_len, const uint8_t *in, int in_len)
 

Function Documentation

◆ block_remainder()

static int block_remainder ( const EVP_CIPHER_CTX ctx,
int  len 
)
static

Definition at line 243 of file cipher.c.

◆ EVP_add_cipher_alias()

int EVP_add_cipher_alias ( const char *  a,
const char *  b 
)

Definition at line 644 of file cipher.c.

◆ EVP_Cipher()

int EVP_Cipher ( EVP_CIPHER_CTX ctx,
uint8_t out,
const uint8_t in,
size_t  in_len 
)

Definition at line 486 of file cipher.c.

◆ EVP_CIPHER_block_size()

unsigned EVP_CIPHER_block_size ( const EVP_CIPHER cipher)

Definition at line 594 of file cipher.c.

◆ EVP_CIPHER_CTX_block_size()

unsigned EVP_CIPHER_CTX_block_size ( const EVP_CIPHER_CTX ctx)

Definition at line 520 of file cipher.c.

◆ EVP_CIPHER_CTX_cipher()

const EVP_CIPHER* EVP_CIPHER_CTX_cipher ( const EVP_CIPHER_CTX ctx)

Definition at line 508 of file cipher.c.

◆ EVP_CIPHER_CTX_cleanup()

int EVP_CIPHER_CTX_cleanup ( EVP_CIPHER_CTX c)

Definition at line 83 of file cipher.c.

◆ EVP_CIPHER_CTX_copy()

int EVP_CIPHER_CTX_copy ( EVP_CIPHER_CTX out,
const EVP_CIPHER_CTX in 
)

Definition at line 100 of file cipher.c.

◆ EVP_CIPHER_CTX_ctrl()

int EVP_CIPHER_CTX_ctrl ( EVP_CIPHER_CTX ctx,
int  command,
int  arg,
void *  ptr 
)

Definition at line 548 of file cipher.c.

◆ EVP_CIPHER_CTX_encrypting()

int EVP_CIPHER_CTX_encrypting ( const EVP_CIPHER_CTX ctx)

Definition at line 516 of file cipher.c.

◆ EVP_CIPHER_CTX_flags()

uint32_t EVP_CIPHER_CTX_flags ( const EVP_CIPHER_CTX ctx)

Definition at line 540 of file cipher.c.

◆ EVP_CIPHER_CTX_free()

void EVP_CIPHER_CTX_free ( EVP_CIPHER_CTX ctx)

Definition at line 93 of file cipher.c.

◆ EVP_CIPHER_CTX_get_app_data()

void* EVP_CIPHER_CTX_get_app_data ( const EVP_CIPHER_CTX ctx)

Definition at line 532 of file cipher.c.

◆ EVP_CIPHER_CTX_init()

void EVP_CIPHER_CTX_init ( EVP_CIPHER_CTX ctx)

Definition at line 71 of file cipher.c.

◆ EVP_CIPHER_CTX_iv_length()

unsigned EVP_CIPHER_CTX_iv_length ( const EVP_CIPHER_CTX ctx)

Definition at line 528 of file cipher.c.

◆ EVP_CIPHER_CTX_key_length()

unsigned EVP_CIPHER_CTX_key_length ( const EVP_CIPHER_CTX ctx)

Definition at line 524 of file cipher.c.

◆ EVP_CIPHER_CTX_mode()

uint32_t EVP_CIPHER_CTX_mode ( const EVP_CIPHER_CTX ctx)

Definition at line 544 of file cipher.c.

◆ EVP_CIPHER_CTX_new()

EVP_CIPHER_CTX* EVP_CIPHER_CTX_new ( void  )

Definition at line 75 of file cipher.c.

◆ EVP_CIPHER_CTX_nid()

int EVP_CIPHER_CTX_nid ( const EVP_CIPHER_CTX ctx)

Definition at line 512 of file cipher.c.

◆ EVP_CIPHER_CTX_reset()

int EVP_CIPHER_CTX_reset ( EVP_CIPHER_CTX ctx)

Definition at line 129 of file cipher.c.

◆ EVP_CIPHER_CTX_set_app_data()

void EVP_CIPHER_CTX_set_app_data ( EVP_CIPHER_CTX ctx,
void *  data 
)

Definition at line 536 of file cipher.c.

◆ EVP_CIPHER_CTX_set_flags()

void EVP_CIPHER_CTX_set_flags ( const EVP_CIPHER_CTX ctx,
uint32_t  flags 
)

Definition at line 648 of file cipher.c.

◆ EVP_CIPHER_CTX_set_key_length()

int EVP_CIPHER_CTX_set_key_length ( EVP_CIPHER_CTX c,
unsigned  key_len 
)

Definition at line 578 of file cipher.c.

◆ EVP_CIPHER_CTX_set_padding()

int EVP_CIPHER_CTX_set_padding ( EVP_CIPHER_CTX ctx,
int  pad 
)

Definition at line 569 of file cipher.c.

◆ EVP_CIPHER_flags()

uint32_t EVP_CIPHER_flags ( const EVP_CIPHER cipher)

Definition at line 606 of file cipher.c.

◆ EVP_CIPHER_iv_length()

unsigned EVP_CIPHER_iv_length ( const EVP_CIPHER cipher)

Definition at line 602 of file cipher.c.

◆ EVP_CIPHER_key_length()

unsigned EVP_CIPHER_key_length ( const EVP_CIPHER cipher)

Definition at line 598 of file cipher.c.

◆ EVP_CIPHER_mode()

uint32_t EVP_CIPHER_mode ( const EVP_CIPHER cipher)

Definition at line 610 of file cipher.c.

◆ EVP_CIPHER_nid()

int EVP_CIPHER_nid ( const EVP_CIPHER cipher)

Definition at line 592 of file cipher.c.

◆ EVP_CipherFinal()

int EVP_CipherFinal ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len 
)

Definition at line 632 of file cipher.c.

◆ EVP_CipherFinal_ex()

int EVP_CipherFinal_ex ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len 
)

Definition at line 500 of file cipher.c.

◆ EVP_CipherInit()

int EVP_CipherInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const uint8_t key,
const uint8_t iv,
int  enc 
)

Definition at line 614 of file cipher.c.

◆ EVP_CipherInit_ex()

int EVP_CipherInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE engine,
const uint8_t key,
const uint8_t iv,
int  enc 
)

Definition at line 135 of file cipher.c.

◆ EVP_CipherUpdate()

int EVP_CipherUpdate ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len,
const uint8_t in,
int  in_len 
)

Definition at line 491 of file cipher.c.

◆ EVP_DecryptFinal()

int EVP_DecryptFinal ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len 
)

Definition at line 640 of file cipher.c.

◆ EVP_DecryptFinal_ex()

int EVP_DecryptFinal_ex ( EVP_CIPHER_CTX ctx,
unsigned char *  out,
int out_len 
)

Definition at line 427 of file cipher.c.

◆ EVP_DecryptInit()

int EVP_DecryptInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const uint8_t key,
const uint8_t iv 
)

Definition at line 627 of file cipher.c.

◆ EVP_DecryptInit_ex()

int EVP_DecryptInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const uint8_t key,
const uint8_t iv 
)

Definition at line 236 of file cipher.c.

◆ EVP_DecryptUpdate()

int EVP_DecryptUpdate ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len,
const uint8_t in,
int  in_len 
)

Definition at line 368 of file cipher.c.

◆ EVP_EncryptFinal()

int EVP_EncryptFinal ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len 
)

Definition at line 636 of file cipher.c.

◆ EVP_EncryptFinal_ex()

int EVP_EncryptFinal_ex ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len 
)

Definition at line 324 of file cipher.c.

◆ EVP_EncryptInit()

int EVP_EncryptInit ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const uint8_t key,
const uint8_t iv 
)

Definition at line 622 of file cipher.c.

◆ EVP_EncryptInit_ex()

int EVP_EncryptInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const uint8_t key,
const uint8_t iv 
)

Definition at line 231 of file cipher.c.

◆ EVP_EncryptUpdate()

int EVP_EncryptUpdate ( EVP_CIPHER_CTX ctx,
uint8_t out,
int out_len,
const uint8_t in,
int  in_len 
)

Definition at line 250 of file cipher.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:06