Go to the documentation of this file.
62 #include "../delocate.h"
105 if (in_len < ctx->cipher->block_size) {
108 in_len -=
ctx->cipher->block_size;
111 for (
size_t i = 0;
i <= in_len;
i +=
ctx->cipher->block_size) {
113 &dat->
ks.ks,
ctx->encrypt);
197 if (in_len < ctx->cipher->block_size) {
200 in_len -=
ctx->cipher->block_size;
203 for (
size_t i = 0;
i <= in_len;
i +=
ctx->cipher->block_size) {
205 &dat->
ks.ks[0], &dat->
ks.ks[1], &dat->
ks.ks[2],
static int des_ede_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len)
static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc)
const EVP_CIPHER * EVP_des_ede3_ecb(void)
return memset(p, 0, total)
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_cbc(void)
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_ede3(void)
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_ecb(void)
for(map_begin_internal(intern, &it);!map_done(&it);map_next(&it))
DEFINE_METHOD_FUNCTION(EVP_CIPHER, EVP_des_cbc)
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_ede_cbc(void)
static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc)
#define DES_ede3_cbc_encrypt
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_ede3_cbc(void)
static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len)
#define EVP_CIPH_CBC_MODE
const OPENSSL_EXPORT EVP_CIPHER * EVP_des_ede(void)
static int des_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc)
static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len)
static int des_ede3_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t in_len)
#define EVP_CIPH_ECB_MODE
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:18