heimdal  7.7.0
About: Heimdal is a free implementation of Kerberos 5 (a system for authenticating users and services on a network).
  Fossies Dox: heimdal-7.7.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

EVP generic crypto functions

See the EVP - generic crypto interface for description and examples. More...

Functions

const EVP_CIPHEREVP_wincrypt_des_ede3_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_aes_128_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_aes_192_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_aes_256_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_aes_128_cfb8 (void)
 
const EVP_CIPHEREVP_hcrypto_aes_192_cfb8 (void)
 
const EVP_CIPHEREVP_hcrypto_aes_256_cfb8 (void)
 
const EVP_MDEVP_hcrypto_sha256 (void)
 
const EVP_MDEVP_hcrypto_sha384 (void)
 
const EVP_MDEVP_hcrypto_sha512 (void)
 
const EVP_MDEVP_hcrypto_sha1 (void)
 
const EVP_MDEVP_hcrypto_md5 (void)
 
const EVP_MDEVP_hcrypto_md4 (void)
 
const EVP_MDEVP_hcrypto_md2 (void)
 
const EVP_CIPHEREVP_hcrypto_des_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_des_ede3_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_rc2_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_rc2_40_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_rc2_64_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_camellia_128_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_camellia_192_cbc (void)
 
const EVP_CIPHEREVP_hcrypto_camellia_256_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_des_ede3_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_des_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_128_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_192_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_256_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_128_cfb8 (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_192_cfb8 (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_aes_256_cfb8 (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_rc2_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_rc2_40_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_rc2_64_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_camellia_128_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_camellia_192_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_camellia_256_cbc (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_rc4 (void)
 
const hc_EVP_CIPHERhc_EVP_ossl_rc4_40 (void)
 
const hc_EVP_MDhc_EVP_ossl_md2 (void)
 
const hc_EVP_MDhc_EVP_ossl_md4 (void)
 
const hc_EVP_MDhc_EVP_ossl_md5 (void)
 
const hc_EVP_MDhc_EVP_ossl_sha1 (void)
 
const hc_EVP_MDhc_EVP_ossl_sha256 (void)
 
const hc_EVP_MDhc_EVP_ossl_sha384 (void)
 
const hc_EVP_MDhc_EVP_ossl_sha512 (void)
 
const EVP_CIPHERhc_EVP_wincng_camellia_128_cbc (void)
 
const EVP_CIPHERhc_EVP_wincng_camellia_192_cbc (void)
 
const EVP_CIPHERhc_EVP_wincng_camellia_256_cbc (void)
 
size_t EVP_MD_size (const EVP_MD *md)
 
size_t EVP_MD_block_size (const EVP_MD *md)
 
EVP_MD_CTXEVP_MD_CTX_create (void)
 
void EVP_MD_CTX_init (EVP_MD_CTX *ctx)
 
void EVP_MD_CTX_destroy (EVP_MD_CTX *ctx)
 
int EVP_MD_CTX_cleanup (EVP_MD_CTX *ctx)
 
const EVP_MDEVP_MD_CTX_md (EVP_MD_CTX *ctx)
 
size_t EVP_MD_CTX_size (EVP_MD_CTX *ctx)
 
size_t EVP_MD_CTX_block_size (EVP_MD_CTX *ctx)
 
int EVP_DigestInit_ex (EVP_MD_CTX *ctx, const EVP_MD *md, ENGINE *engine)
 
int EVP_DigestUpdate (EVP_MD_CTX *ctx, const void *data, size_t size)
 
int EVP_DigestFinal_ex (EVP_MD_CTX *ctx, void *hash, unsigned int *size)
 
int EVP_Digest (const void *data, size_t dsize, void *hash, unsigned int *hsize, const EVP_MD *md, ENGINE *engine)
 
const EVP_MDEVP_sha256 (void)
 
const EVP_MDEVP_sha384 (void)
 
const EVP_MDEVP_sha512 (void)
 
const EVP_MDEVP_sha1 (void)
 
const EVP_MDEVP_sha (void)
 
const EVP_MDEVP_md5 (void)
 
const EVP_MDEVP_md4 (void)
 
const EVP_MDEVP_md2 (void)
 
const EVP_MDEVP_md_null (void)
 
size_t EVP_CIPHER_block_size (const EVP_CIPHER *c)
 
size_t EVP_CIPHER_key_length (const EVP_CIPHER *c)
 
size_t EVP_CIPHER_iv_length (const EVP_CIPHER *c)
 
void EVP_CIPHER_CTX_init (EVP_CIPHER_CTX *c)
 
int EVP_CIPHER_CTX_cleanup (EVP_CIPHER_CTX *c)
 
int EVP_CIPHER_CTX_set_key_length (EVP_CIPHER_CTX *c, int length)
 
const EVP_CIPHEREVP_CIPHER_CTX_cipher (EVP_CIPHER_CTX *ctx)
 
size_t EVP_CIPHER_CTX_block_size (const EVP_CIPHER_CTX *ctx)
 
size_t EVP_CIPHER_CTX_key_length (const EVP_CIPHER_CTX *ctx)
 
size_t EVP_CIPHER_CTX_iv_length (const EVP_CIPHER_CTX *ctx)
 
unsigned long EVP_CIPHER_CTX_flags (const EVP_CIPHER_CTX *ctx)
 
int EVP_CIPHER_CTX_mode (const EVP_CIPHER_CTX *ctx)
 
voidEVP_CIPHER_CTX_get_app_data (EVP_CIPHER_CTX *ctx)
 
void EVP_CIPHER_CTX_set_app_data (EVP_CIPHER_CTX *ctx, void *data)
 
int EVP_CipherInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *c, ENGINE *engine, const void *key, const void *iv, int encp)
 
int EVP_CipherUpdate (EVP_CIPHER_CTX *ctx, void *out, int *outlen, void *in, size_t inlen)
 
int EVP_CipherFinal_ex (EVP_CIPHER_CTX *ctx, void *out, int *outlen)
 
const EVP_CIPHEREVP_enc_null (void)
 
const EVP_CIPHEREVP_rc2_cbc (void)
 
const EVP_CIPHEREVP_rc2_40_cbc (void)
 
const EVP_CIPHEREVP_rc2_64_cbc (void)
 
const EVP_CIPHEREVP_rc4 (void)
 
const EVP_CIPHEREVP_rc4_40 (void)
 
const EVP_CIPHEREVP_des_cbc (void)
 
const EVP_CIPHEREVP_des_ede3_cbc (void)
 
const EVP_CIPHEREVP_aes_128_cbc (void)
 
const EVP_CIPHEREVP_aes_192_cbc (void)
 
const EVP_CIPHEREVP_aes_256_cbc (void)
 
const EVP_CIPHEREVP_aes_128_cfb8 (void)
 
const EVP_CIPHEREVP_aes_192_cfb8 (void)
 
const EVP_CIPHEREVP_aes_256_cfb8 (void)
 
const EVP_CIPHEREVP_camellia_128_cbc (void)
 
const EVP_CIPHEREVP_camellia_192_cbc (void)
 
const EVP_CIPHEREVP_camellia_256_cbc (void)
 
const EVP_CIPHEREVP_get_cipherbyname (const char *name)
 
int EVP_BytesToKey (const EVP_CIPHER *type, const EVP_MD *md, const void *salt, const void *data, size_t datalen, unsigned int count, void *keydata, void *ivdata)
 

Variables

static EVP_CIPHER pkcs11_des_ede3_cbc = { 0, 8 , 24 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_DES3_CBC }
 
static EVP_CIPHER pkcs11_des_cbc = { 0, 8 , 8 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_DES_CBC }
 
static EVP_CIPHER pkcs11_aes_128_cbc = { 0, 16 , 16 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
 
static EVP_CIPHER pkcs11_aes_192_cbc = { 0, 16 , 24 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
 
static EVP_CIPHER pkcs11_aes_256_cbc = { 0, 16 , 32 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
 
static EVP_CIPHER pkcs11_aes_128_cfb8 = { 0, 16 , 16 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
 
static EVP_CIPHER pkcs11_aes_192_cfb8 = { 0, 16 , 24 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
 
static EVP_CIPHER pkcs11_aes_256_cfb8 = { 0, 16 , 32 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
 
static EVP_CIPHER pkcs11_rc2_cbc = { 0, 8 , 16 , 8 , ( EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
 
static EVP_CIPHER pkcs11_rc2_40_cbc = { 0, 8 , 5 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
 
static EVP_CIPHER pkcs11_rc2_64_cbc = { 0, 8 , 8 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
 
static EVP_CIPHER pkcs11_camellia_128_cbc = { 0, 16 , 16 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
 
static EVP_CIPHER pkcs11_camellia_192_cbc = { 0, 16 , 24 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
 
static EVP_CIPHER pkcs11_camellia_256_cbc = { 0, 16 , 32 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
 
static EVP_CIPHER pkcs11_rc4 = { 0, 1 , 16 , 0 , ( EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC4 }
 
static EVP_CIPHER pkcs11_rc4_40 = { 0, 1 , 5 , 0 , ( EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC4 }
 
static EVP_CIPHER wincng_des_ede3_cbc = { 0, 8 , 24 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_des_cbc = { 0, 8 , 8 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_128_cbc = { 0, 16 , 16 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_192_cbc = { 0, 16 , 24 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_256_cbc = { 0, 16 , 32 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_128_cfb8 = { 0, 16 , 16 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_192_cfb8 = { 0, 16 , 24 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_aes_256_cfb8 = { 0, 16 , 32 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_rc2_cbc = { 0, 8 , 16 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_rc2_40_cbc = { 0, 8 , 5 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_rc2_64_cbc = { 0, 8 , 8 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_rc4 = { 0, 1 , 16 , 0 , EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 
static EVP_CIPHER wincng_rc4_40 = { 0, 1 , 5 , 0 , EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
 

Detailed Description

See the EVP - generic crypto interface for description and examples.

Function Documentation

◆ EVP_aes_128_cbc()

const EVP_CIPHER* EVP_aes_128_cbc ( void  )

The AES-128 cipher type

Returns
the AES-128 EVP_CIPHER pointer.

Definition at line 1165 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by main().

◆ EVP_aes_128_cfb8()

const EVP_CIPHER* EVP_aes_128_cfb8 ( void  )

The AES-128 cipher type

Returns
the AES-128 EVP_CIPHER pointer.

Definition at line 1210 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_aes_192_cbc()

const EVP_CIPHER* EVP_aes_192_cbc ( void  )

The AES-192 cipher type

Returns
the AES-192 EVP_CIPHER pointer.

Definition at line 1180 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_aes_192_cfb8()

const EVP_CIPHER* EVP_aes_192_cfb8 ( void  )

The AES-192 cipher type

Returns
the AES-192 EVP_CIPHER pointer.

Definition at line 1225 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_aes_256_cbc()

const EVP_CIPHER* EVP_aes_256_cbc ( void  )

The AES-256 cipher type

Returns
the AES-256 EVP_CIPHER pointer.

Definition at line 1195 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_aes_256_cfb8()

const EVP_CIPHER* EVP_aes_256_cfb8 ( void  )

The AES-256 cipher type

Returns
the AES-256 EVP_CIPHER pointer.

Definition at line 1240 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_BytesToKey()

int EVP_BytesToKey ( const EVP_CIPHER type,
const EVP_MD md,
const void salt,
const void data,
size_t  datalen,
unsigned int  count,
void keydata,
void ivdata 
)

Provides a legancy string to key function, used in PEM files.

New protocols should use new string to key functions like NIST SP56-800A or PKCS#5 v2.0 (see PKCS5_PBKDF2_HMAC_SHA1()).

Parameters
typetype of cipher to use
mdmessage digest to use
saltsalt salt string, should be an binary 8 byte buffer.
datathe password/input key string.
datalenlength of data parameter.
countiteration counter.
keydataoutput keydata, needs to of the size EVP_CIPHER_key_length().
ivdataoutput ivdata, needs to of the size EVP_CIPHER_block_size().
Returns
the size of derived key.

Definition at line 1362 of file evp.c.

References buf, count, data, EVP_CIPHER_iv_length(), EVP_CIPHER_key_length(), EVP_DigestFinal_ex(), EVP_DigestInit_ex(), EVP_DigestUpdate(), EVP_MD_CTX, EVP_MD_CTX_cleanup(), EVP_MD_CTX_init(), EVP_MD_size(), gen-map::i, key, keylen, min, PKCS5_SALT_LEN, and salt.

Referenced by try_decrypt().

◆ EVP_camellia_128_cbc()

const EVP_CIPHER* EVP_camellia_128_cbc ( void  )

The Camellia-128 cipher type

Returns
the Camellia-128 EVP_CIPHER pointer.

Definition at line 1255 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_camellia_192_cbc()

const EVP_CIPHER* EVP_camellia_192_cbc ( void  )

The Camellia-198 cipher type

Returns
the Camellia-198 EVP_CIPHER pointer.

Definition at line 1270 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_camellia_256_cbc()

const EVP_CIPHER* EVP_camellia_256_cbc ( void  )

The Camellia-256 cipher type

Returns
the Camellia-256 EVP_CIPHER pointer.

Definition at line 1285 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_CIPHER_block_size()

size_t EVP_CIPHER_block_size ( const EVP_CIPHER c)

Return the block size of the cipher.

Parameters
ccipher to get the block size from.
Returns
the block size of the cipher.

Definition at line 535 of file evp.c.

Referenced by EVP_CIPHER_CTX_block_size(), EVP_CipherInit_ex(), hx509_crypto_decrypt(), hx509_crypto_encrypt(), and main().

◆ EVP_CIPHER_CTX_block_size()

size_t EVP_CIPHER_CTX_block_size ( const EVP_CIPHER_CTX ctx)

Return the block size of the cipher context.

Parameters
ctxcipher context to get the block size from.
Returns
the block size of the cipher context.

Definition at line 670 of file evp.c.

References EVP_CIPHER_block_size().

Referenced by _krb5_evp_encrypt_cts(), EVP_CipherFinal_ex(), and EVP_CipherUpdate().

◆ EVP_CIPHER_CTX_cipher()

const EVP_CIPHER* EVP_CIPHER_CTX_cipher ( EVP_CIPHER_CTX ctx)

Return the EVP_CIPHER for a EVP_CIPHER_CTX context.

Parameters
ctxthe context to get the cipher type from.
Returns
the EVP_CIPHER pointer.

Definition at line 654 of file evp.c.

◆ EVP_CIPHER_CTX_cleanup()

◆ EVP_CIPHER_CTX_flags()

unsigned long EVP_CIPHER_CTX_flags ( const EVP_CIPHER_CTX ctx)

Get the flags for an EVP_CIPHER_CTX context.

Parameters
ctxthe EVP_CIPHER_CTX to get the flags from
Returns
the flags for an EVP_CIPHER_CTX.

Definition at line 718 of file evp.c.

Referenced by EVP_CIPHER_CTX_mode().

◆ EVP_CIPHER_CTX_get_app_data()

void* EVP_CIPHER_CTX_get_app_data ( EVP_CIPHER_CTX ctx)

Get the app data for an EVP_CIPHER_CTX context.

Parameters
ctxthe EVP_CIPHER_CTX to get the app data from
Returns
the app data for an EVP_CIPHER_CTX.

Definition at line 750 of file evp.c.

◆ EVP_CIPHER_CTX_init()

◆ EVP_CIPHER_CTX_iv_length()

size_t EVP_CIPHER_CTX_iv_length ( const EVP_CIPHER_CTX ctx)

Return the IV size of the cipher context.

Parameters
ctxcipher context to get the IV size from.
Returns
the IV size of the cipher context.

Definition at line 702 of file evp.c.

References EVP_CIPHER_iv_length().

Referenced by _krb5_evp_encrypt(), and EVP_CipherInit_ex().

◆ EVP_CIPHER_CTX_key_length()

size_t EVP_CIPHER_CTX_key_length ( const EVP_CIPHER_CTX ctx)

Return the key size of the cipher context.

Parameters
ctxcipher context to get the key size from.
Returns
the key size of the cipher context.

Definition at line 686 of file evp.c.

References EVP_CIPHER_key_length().

Referenced by rc2_init().

◆ EVP_CIPHER_CTX_mode()

int EVP_CIPHER_CTX_mode ( const EVP_CIPHER_CTX ctx)

Get the mode for an EVP_CIPHER_CTX context.

Parameters
ctxthe EVP_CIPHER_CTX to get the mode from
Returns
the mode for an EVP_CIPHER_CTX.

Definition at line 734 of file evp.c.

References EVP_CIPH_MODE, and EVP_CIPHER_CTX_flags().

Referenced by aes_do_cipher(), aes_init(), EVP_CipherInit_ex(), p11_do_cipher(), and wincng_do_cipher().

◆ EVP_CIPHER_CTX_set_app_data()

void EVP_CIPHER_CTX_set_app_data ( EVP_CIPHER_CTX ctx,
void data 
)

Set the app data for an EVP_CIPHER_CTX context.

Parameters
ctxthe EVP_CIPHER_CTX to set the app data for
datathe app data to set for an EVP_CIPHER_CTX.

Definition at line 765 of file evp.c.

References data.

◆ EVP_CIPHER_CTX_set_key_length()

int EVP_CIPHER_CTX_set_key_length ( EVP_CIPHER_CTX c,
int  length 
)

If the cipher type supports it, change the key length

Parameters
cthe cipher context to change the key length for
lengthnew key length
Returns
1 on success.

Definition at line 626 of file evp.c.

References EVP_CIPH_VARIABLE_LENGTH, and gen-errorlist::length.

Referenced by test_bulk_cipher(), and test_cipher().

◆ EVP_CIPHER_iv_length()

size_t EVP_CIPHER_iv_length ( const EVP_CIPHER c)

Return the IV size of the cipher.

Parameters
ccipher to get the IV size from.
Returns
the IV size of the cipher.

Definition at line 567 of file evp.c.

Referenced by _hx509_pbe_decrypt(), EVP_BytesToKey(), EVP_CIPHER_CTX_iv_length(), hx509_crypto_decrypt(), hx509_crypto_encrypt(), hx509_crypto_random_iv(), main(), and parse_pem_private_key().

◆ EVP_CIPHER_key_length()

size_t EVP_CIPHER_key_length ( const EVP_CIPHER c)

Return the key size of the cipher.

Parameters
ccipher to get the key size from.
Returns
the key size of the cipher.

Definition at line 551 of file evp.c.

Referenced by _hx509_pbe_decrypt(), EVP_BytesToKey(), EVP_CIPHER_CTX_key_length(), hx509_crypto_set_key_data(), hx509_crypto_set_random_key(), main(), try_decrypt(), and wincng_cipher_algorithm_init().

◆ EVP_CipherFinal_ex()

int EVP_CipherFinal_ex ( EVP_CIPHER_CTX ctx,
void out,
int *  outlen 
)

Encipher/decipher final data

Parameters
ctxthe cipher context.
outoutput data from the operation.
outlenoutput length

The input length needs to be at least EVP_CIPHER_block_size() bytes long.

See EVP Cipher for an example how to use this function.

Returns
1 on success.

Definition at line 951 of file evp.c.

References EVP_CIPHER_CTX_block_size(), and ret.

Referenced by main().

◆ EVP_CipherInit_ex()

int EVP_CipherInit_ex ( EVP_CIPHER_CTX ctx,
const EVP_CIPHER c,
ENGINE engine,
const void key,
const void iv,
int  encp 
)

Initiate the EVP_CIPHER_CTX context to encrypt or decrypt data. Clean up with EVP_CIPHER_CTX_cleanup().

Parameters
ctxcontext to initiate
ccipher to use.
enginecrypto engine to use, NULL to select default.
keythe crypto key to use, NULL will use the previous value.
ivthe IV to use, NULL will use the previous value.
encpnon zero will encrypt, -1 use the previous value.
Returns
1 on success.

Definition at line 787 of file evp.c.

References EVP_CIPH_ALWAYS_CALL_INIT, EVP_CIPH_CBC_MODE, EVP_CIPH_CFB8_MODE, EVP_CIPH_CTRL_INIT, EVP_CIPH_STREAM_CIPHER, EVP_CIPHER_block_size(), EVP_CIPHER_CTX_cleanup(), EVP_CIPHER_CTX_ctrl(), EVP_CIPHER_CTX_iv_length(), EVP_CIPHER_CTX_mode(), EVP_CTRL_INIT, and key.

Referenced by _gssapi_get_mic_arcfour(), _gssapi_unwrap_arcfour(), _gssapi_unwrap_iov_arcfour(), _gssapi_verify_mic_arcfour(), _gssapi_wrap_arcfour(), _gssapi_wrap_iov_arcfour(), _krb5_des_checksum(), _krb5_des_verify(), _krb5_evp_encrypt(), _krb5_evp_encrypt_cts(), _krb5_evp_schedule(), AES_SHA1_PRF(), ARCFOUR_subdecrypt(), ARCFOUR_subencrypt(), DES3_prf(), heim_ntlm_keyex_unwrap(), heim_ntlm_keyex_wrap(), hx509_crypto_decrypt(), hx509_crypto_encrypt(), main(), splitandenc(), test_bulk_cipher(), test_cipher(), and try_decrypt().

◆ EVP_CipherUpdate()

int EVP_CipherUpdate ( EVP_CIPHER_CTX ctx,
void out,
int *  outlen,
void in,
size_t  inlen 
)

Encipher/decipher partial data

Parameters
ctxthe cipher context.
outoutput data from the operation.
outlenoutput length
ininput data to the operation.
inlenlength of data.

The output buffer length should at least be EVP_CIPHER_block_size() byte longer then the input length.

See EVP Cipher for an example how to use this function.

Returns
1 on success.

If there in no spare bytes in the left from last Update and the input length is on the block boundery, the EVP_CipherUpdate() function can take a shortcut (and preformance gain) and directly encrypt the data, otherwise we hav to fix it up and store extra it the EVP_CIPHER_CTX.

Definition at line 865 of file evp.c.

References EVP_CIPHER_CTX_block_size(), and ret.

Referenced by main().

◆ EVP_des_cbc()

const EVP_CIPHER* EVP_des_cbc ( void  )

The DES cipher type

Returns
the DES-CBC EVP_CIPHER pointer.

Definition at line 1135 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by splitandenc().

◆ EVP_des_ede3_cbc()

const EVP_CIPHER* EVP_des_ede3_cbc ( void  )

The triple DES cipher type

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 1150 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by find_string2key().

◆ EVP_Digest()

int EVP_Digest ( const void data,
size_t  dsize,
void hash,
unsigned int *  hsize,
const EVP_MD md,
ENGINE engine 
)

Do the whole EVP_MD_CTX_create(), EVP_DigestInit_ex(), EVP_DigestUpdate(), EVP_DigestFinal_ex(), EVP_MD_CTX_destroy() dance in one call.

Parameters
datathe data to update the context with
dsizelength of data
hashoutput data of at least EVP_MD_size() length.
hsizeoutput length of hash.
mdmessage digest to use
engineengine to use, NULL for default engine.
Returns
1 on success.

Definition at line 339 of file evp.c.

References data, EVP_DigestFinal_ex(), EVP_DigestInit_ex(), EVP_DigestUpdate(), EVP_MD_CTX, EVP_MD_CTX_create(), EVP_MD_CTX_destroy(), hash(), and ret.

Referenced by HMAC_Init_ex(), PKCS12_key_gen(), RSA_MD5_checksum(), SHA1_checksum(), and test_bulk_digest().

◆ EVP_DigestFinal_ex()

int EVP_DigestFinal_ex ( EVP_MD_CTX ctx,
void hash,
unsigned int *  size 
)

◆ EVP_DigestInit_ex()

int EVP_DigestInit_ex ( EVP_MD_CTX ctx,
const EVP_MD md,
ENGINE engine 
)

◆ EVP_DigestUpdate()

◆ EVP_enc_null()

const EVP_CIPHER* EVP_enc_null ( void  )

The NULL cipher type, does no encryption/decryption.

Returns
the null EVP_CIPHER pointer.

Definition at line 1031 of file evp.c.

References enc_null_cleanup(), enc_null_do_cipher(), enc_null_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_get_cipherbyname()

const EVP_CIPHER* EVP_get_cipherbyname ( const char *  name)

Get the cipher type using their name.

Parameters
namethe name of the cipher.
Returns
the selected EVP_CIPHER pointer or NULL if not found.

Definition at line 1322 of file evp.c.

References cipher_name, func, gen-map::i, name, and strcasecmp().

Referenced by parse_pem_private_key().

◆ EVP_hcrypto_aes_128_cbc()

const EVP_CIPHER* EVP_hcrypto_aes_128_cbc ( void  )

The AES-128 cipher type (hcrypto)

Returns
the AES-128 EVP_CIPHER pointer.

Definition at line 99 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_aes_128_cfb8()

const EVP_CIPHER* EVP_hcrypto_aes_128_cfb8 ( void  )

The AES-128 CFB8 cipher type (hcrypto)

Returns
the AES-128 EVP_CIPHER pointer.

Definition at line 187 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CFB8_MODE, and EVP_CIPHER.

Referenced by main().

◆ EVP_hcrypto_aes_192_cbc()

const EVP_CIPHER* EVP_hcrypto_aes_192_cbc ( void  )

The AES-192 cipher type (hcrypto)

Returns
the AES-192 EVP_CIPHER pointer.

Definition at line 129 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_aes_192_cfb8()

const EVP_CIPHER* EVP_hcrypto_aes_192_cfb8 ( void  )

The AES-192 CFB8 cipher type (hcrypto)

Returns
the AES-192 EVP_CIPHER pointer.

Definition at line 217 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CFB8_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_aes_256_cbc()

const EVP_CIPHER* EVP_hcrypto_aes_256_cbc ( void  )

The AES-256 cipher type (hcrypto)

Returns
the AES-256 EVP_CIPHER pointer.

Definition at line 158 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

Referenced by main(), and test_bulk_provider_hcrypto().

◆ EVP_hcrypto_aes_256_cfb8()

const EVP_CIPHER* EVP_hcrypto_aes_256_cfb8 ( void  )

The AES-256 CFB8 cipher type (hcrypto)

Returns
the AES-256 EVP_CIPHER pointer.

Definition at line 246 of file evp-hcrypto.c.

References aes_do_cipher(), aes_init(), EVP_CIPH_CFB8_MODE, and EVP_CIPHER.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_camellia_128_cbc()

const EVP_CIPHER* EVP_hcrypto_camellia_128_cbc ( void  )

The Camellia-128 cipher type - hcrypto

Returns
the Camellia-128 EVP_CIPHER pointer.

Definition at line 713 of file evp-hcrypto.c.

References camellia_do_cipher(), camellia_init(), cipher, EVP_CIPH_CBC_MODE, and EVP_CIPHER.

Referenced by main().

◆ EVP_hcrypto_camellia_192_cbc()

const EVP_CIPHER* EVP_hcrypto_camellia_192_cbc ( void  )

The Camellia-198 cipher type - hcrypto

Returns
the Camellia-198 EVP_CIPHER pointer.

Definition at line 742 of file evp-hcrypto.c.

References camellia_do_cipher(), camellia_init(), cipher, EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_camellia_256_cbc()

const EVP_CIPHER* EVP_hcrypto_camellia_256_cbc ( void  )

The Camellia-256 cipher type - hcrypto

Returns
the Camellia-256 EVP_CIPHER pointer.

Definition at line 771 of file evp-hcrypto.c.

References camellia_do_cipher(), camellia_init(), cipher, EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_des_cbc()

const EVP_CIPHER* EVP_hcrypto_des_cbc ( void  )

The DES cipher type

Returns
the DES-CBC EVP_CIPHER pointer.

Definition at line 465 of file evp-hcrypto.c.

References des_cbc_do_cipher(), des_cbc_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

◆ EVP_hcrypto_des_ede3_cbc()

const EVP_CIPHER* EVP_hcrypto_des_ede3_cbc ( void  )

The triple DES cipher type - hcrypto

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 539 of file evp-hcrypto.c.

References des_ede3_cbc_do_cipher(), des_ede3_cbc_init(), EVP_CIPH_CBC_MODE, and EVP_CIPHER.

Referenced by main().

◆ EVP_hcrypto_md2()

const EVP_MD* EVP_hcrypto_md2 ( void  )

The message digest MD2 - hcrypto

Returns
the message digest type.

Definition at line 413 of file evp-hcrypto.c.

References md2, MD2_Final, MD2_Init, and MD2_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_md4()

const EVP_MD* EVP_hcrypto_md4 ( void  )

The message digest MD4 - hcrypto

Returns
the message digest type.

Definition at line 390 of file evp-hcrypto.c.

References md4, MD4_Final, MD4_Init, and MD4_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_md5()

const EVP_MD* EVP_hcrypto_md5 ( void  )

The message digest MD5 - hcrypto

Returns
the message digest type.

Definition at line 367 of file evp-hcrypto.c.

References md5, MD5_Final, MD5_Init, and MD5_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_rc2_40_cbc()

const EVP_CIPHER* EVP_hcrypto_rc2_40_cbc ( void  )

The RC2-40 cipher type

Returns
the RC2-40 EVP_CIPHER pointer.

Definition at line 632 of file evp-hcrypto.c.

References EVP_CIPH_CBC_MODE, EVP_CIPHER, RC2_BLOCK_SIZE, rc2_do_cipher(), and rc2_init().

Referenced by main().

◆ EVP_hcrypto_rc2_64_cbc()

const EVP_CIPHER* EVP_hcrypto_rc2_64_cbc ( void  )

The RC2-64 cipher type

Returns
the RC2-64 EVP_CIPHER pointer.

Definition at line 661 of file evp-hcrypto.c.

References EVP_CIPH_CBC_MODE, EVP_CIPHER, RC2_BLOCK_SIZE, rc2_do_cipher(), and rc2_init().

◆ EVP_hcrypto_rc2_cbc()

const EVP_CIPHER* EVP_hcrypto_rc2_cbc ( void  )

The RC2 cipher type - hcrypto

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 603 of file evp-hcrypto.c.

References EVP_CIPH_CBC_MODE, EVP_CIPH_VARIABLE_LENGTH, EVP_CIPHER, RC2_BLOCK_SIZE, rc2_do_cipher(), rc2_init(), and RC2_KEY_LENGTH.

Referenced by main().

◆ EVP_hcrypto_sha1()

const EVP_MD* EVP_hcrypto_sha1 ( void  )

The message digest SHA1 - hcrypto

Returns
the message digest type.

Definition at line 344 of file evp-hcrypto.c.

References sha1, SHA1_Final, SHA1_Init, and SHA1_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_sha256()

const EVP_MD* EVP_hcrypto_sha256 ( void  )

The message digest SHA256 - hcrypto

Returns
the message digest type.

Definition at line 275 of file evp-hcrypto.c.

References sha256, SHA256_Final, SHA256_Init, and SHA256_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_sha384()

const EVP_MD* EVP_hcrypto_sha384 ( void  )

The message digest SHA384 - hcrypto

Returns
the message digest type.

Definition at line 298 of file evp-hcrypto.c.

References sha384, SHA384_Final, SHA384_Init, and SHA384_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_hcrypto_sha512()

const EVP_MD* EVP_hcrypto_sha512 ( void  )

The message digest SHA512 - hcrypto

Returns
the message digest type.

Definition at line 321 of file evp-hcrypto.c.

References sha512, SHA512_Final, SHA512_Init, and SHA512_Update.

Referenced by test_bulk_provider_hcrypto().

◆ EVP_md2()

const EVP_MD* EVP_md2 ( void  )

The message digest MD2

Returns
the message digest type.

Definition at line 478 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

◆ EVP_md4()

const EVP_MD* EVP_md4 ( void  )

The message digest MD4

Returns
the message digest type.

Definition at line 463 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by ARCFOUR_string_to_key(), client_mschapv2(), heim_ntlm_nt_key(), heim_ntlm_v1_base_session(), ntlm_service(), otp_md4_hash(), otp_md4_init(), and otp_md4_next().

◆ EVP_md5()

◆ EVP_MD_block_size()

size_t EVP_MD_block_size ( const EVP_MD md)

Return the blocksize of the message digest function.

Parameters
mdthe evp message
Returns
size size of the message digest block size

Definition at line 124 of file evp.c.

Referenced by EVP_MD_CTX_block_size(), HMAC_CTX_cleanup(), HMAC_Final(), HMAC_Init_ex(), and PKCS12_key_gen().

◆ EVP_MD_CTX_block_size()

size_t EVP_MD_CTX_block_size ( EVP_MD_CTX ctx)

Return the blocksize of the message digest function.

Parameters
ctxthe evp message digest context
Returns
size size of the message digest block size

Definition at line 244 of file evp.c.

References EVP_MD_block_size().

◆ EVP_MD_CTX_cleanup()

int EVP_MD_CTX_cleanup ( EVP_MD_CTX ctx)

Free the resources used by the EVP_MD context.

Parameters
ctxthe context to free the resources from.
Returns
1 on success.

Definition at line 185 of file evp.c.

References ret.

Referenced by EVP_BytesToKey(), EVP_DigestInit_ex(), and EVP_MD_CTX_destroy().

◆ EVP_MD_CTX_create()

◆ EVP_MD_CTX_destroy()

◆ EVP_MD_CTX_init()

void EVP_MD_CTX_init ( EVP_MD_CTX ctx)

Initiate a messsage digest context object. Deallocate with EVP_MD_CTX_cleanup(). Please use EVP_MD_CTX_create() instead.

Parameters
ctxvariable to initiate.

Definition at line 154 of file evp.c.

Referenced by EVP_BytesToKey().

◆ EVP_MD_CTX_md()

const EVP_MD* EVP_MD_CTX_md ( EVP_MD_CTX ctx)

Get the EVP_MD use for a specified context.

Parameters
ctxthe EVP_MD context to get the EVP_MD for.
Returns
the EVP_MD used for the context.

Definition at line 212 of file evp.c.

◆ EVP_MD_CTX_size()

size_t EVP_MD_CTX_size ( EVP_MD_CTX ctx)

Return the output size of the message digest function.

Parameters
ctxthe evp message digest context
Returns
size output size of the message digest function.

Definition at line 228 of file evp.c.

References EVP_MD_size().

Referenced by _krb5_pk_kdf().

◆ EVP_md_null()

const EVP_MD* EVP_md_null ( void  )

The null message digest

Returns
the message digest type.

Definition at line 510 of file evp.c.

References null_Final(), null_Init(), and null_Update().

◆ EVP_MD_size()

size_t EVP_MD_size ( const EVP_MD md)

Return the output size of the message digest function.

Parameters
mdthe evp message
Returns
size output size of the message digest function.

Definition at line 108 of file evp.c.

Referenced by _krb5_SP800_108_HMAC_KDF(), AES_SHA2_PRF(), EVP_BytesToKey(), evp_md_create_signature(), EVP_MD_CTX_size(), evp_md_verify_signature(), hc_PKCS5_PBKDF2_HMAC(), HMAC_Init_ex(), and HMAC_size().

◆ EVP_rc2_40_cbc()

const EVP_CIPHER* EVP_rc2_40_cbc ( void  )

The RC2 cipher type

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 1075 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by CMSRC2CBCParam_set(), and find_string2key().

◆ EVP_rc2_64_cbc()

const EVP_CIPHER* EVP_rc2_64_cbc ( void  )

The RC2 cipher type

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 1090 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by CMSRC2CBCParam_set().

◆ EVP_rc2_cbc()

const EVP_CIPHER* EVP_rc2_cbc ( void  )

The RC2 cipher type

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 1060 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by CMSRC2CBCParam_set(), and find_string2key().

◆ EVP_rc4()

◆ EVP_rc4_40()

const EVP_CIPHER* EVP_rc4_40 ( void  )

The RC4-40 cipher type

Returns
the RC4-40 EVP_CIPHER pointer.

Definition at line 1120 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, and hcrypto_validate.

Referenced by find_string2key().

◆ EVP_sha()

const EVP_MD* EVP_sha ( void  )

The message digest SHA1

Returns
the message digest type.

Definition at line 432 of file evp.c.

References EVP_sha1(), and hcrypto_validate.

◆ EVP_sha1()

◆ EVP_sha256()

const EVP_MD* EVP_sha256 ( void  )

The message digest SHA256

Returns
the message digest type.

Definition at line 372 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, hcrypto_validate, and sha256.

Referenced by _krb5_aes_sha2_md_for_enctype(), and _krb5_pk_kdf().

◆ EVP_sha384()

const EVP_MD* EVP_sha384 ( void  )

The message digest SHA384

Returns
the message digest type.

Definition at line 387 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, hcrypto_validate, and sha384.

Referenced by _krb5_aes_sha2_md_for_enctype().

◆ EVP_sha512()

const EVP_MD* EVP_sha512 ( void  )

The message digest SHA512

Returns
the message digest type.

Definition at line 402 of file evp.c.

References EVP_DEF_OP, HCRYPTO_DEF_PROVIDER, hcrypto_validate, and sha512.

Referenced by _krb5_pk_kdf().

◆ EVP_wincrypt_des_ede3_cbc()

const EVP_CIPHER* EVP_wincrypt_des_ede3_cbc ( void  )

The triple DES cipher type (Micrsoft crypt provider)

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 144 of file evp-crypt.c.

References crypto_des_ede3_cbc_init(), EVP_CIPH_CBC_MODE, EVP_CIPHER, generic_cbc_do_cipher(), and generic_cleanup().

◆ hc_EVP_ossl_aes_128_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_128_cbc ( void  )

The AES-128 cipher type (OpenSSL provider)

Returns
the AES-128-CBC EVP_CIPHER pointer.

Definition at line 450 of file evp-openssl.c.

◆ hc_EVP_ossl_aes_128_cfb8()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_128_cfb8 ( void  )

The AES-128 CFB8 cipher type (OpenSSL provider)

Returns
the AES-128-CFB8 EVP_CIPHER pointer.

Definition at line 477 of file evp-openssl.c.

◆ hc_EVP_ossl_aes_192_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_192_cbc ( void  )

The AES-192 cipher type (OpenSSL provider)

Returns
the AES-192-CBC EVP_CIPHER pointer.

Definition at line 459 of file evp-openssl.c.

◆ hc_EVP_ossl_aes_192_cfb8()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_192_cfb8 ( void  )

The AES-192 CFB8 cipher type (OpenSSL provider)

Returns
the AES-192-CFB8 EVP_CIPHER pointer.

Definition at line 486 of file evp-openssl.c.

◆ hc_EVP_ossl_aes_256_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_256_cbc ( void  )

The AES-256 cipher type (OpenSSL provider)

Returns
the AES-256-CBC EVP_CIPHER pointer.

Definition at line 468 of file evp-openssl.c.

◆ hc_EVP_ossl_aes_256_cfb8()

const hc_EVP_CIPHER * hc_EVP_ossl_aes_256_cfb8 ( void  )

The AES-256 CFB8 cipher type (OpenSSL provider)

Returns
the AES-256-CFB8 EVP_CIPHER pointer.

Definition at line 495 of file evp-openssl.c.

◆ hc_EVP_ossl_camellia_128_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_camellia_128_cbc ( void  )

The Camellia-128 cipher type - OpenSSL

Returns
the Camellia-128 EVP_CIPHER pointer.

Definition at line 541 of file evp-openssl.c.

◆ hc_EVP_ossl_camellia_192_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_camellia_192_cbc ( void  )

The Camellia-198 cipher type - OpenSSL

Returns
the Camellia-198 EVP_CIPHER pointer.

Definition at line 550 of file evp-openssl.c.

◆ hc_EVP_ossl_camellia_256_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_camellia_256_cbc ( void  )

The Camellia-256 cipher type - OpenSSL

Returns
the Camellia-256 EVP_CIPHER pointer.

Definition at line 559 of file evp-openssl.c.

◆ hc_EVP_ossl_des_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_des_cbc ( void  )

The DES cipher type (OpenSSL provider)

Returns
the DES-CBC EVP_CIPHER pointer.

Definition at line 441 of file evp-openssl.c.

◆ hc_EVP_ossl_des_ede3_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_des_ede3_cbc ( void  )

The triple DES cipher type (OpenSSL provider)

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 432 of file evp-openssl.c.

◆ hc_EVP_ossl_md2()

const hc_EVP_MD * hc_EVP_ossl_md2 ( void  )

The MD2 hash algorithm (OpenSSL provider)

Returns
the MD2 EVP_MD pointer.

Definition at line 590 of file evp-openssl.c.

◆ hc_EVP_ossl_md4()

const hc_EVP_MD * hc_EVP_ossl_md4 ( void  )

The MD4 hash algorithm (OpenSSL provider)

Returns
the MD4 EVP_MD pointer.

Definition at line 599 of file evp-openssl.c.

◆ hc_EVP_ossl_md5()

const hc_EVP_MD * hc_EVP_ossl_md5 ( void  )

The MD5 hash algorithm (OpenSSL provider)

Returns
the MD5 EVP_MD pointer.

Definition at line 608 of file evp-openssl.c.

◆ hc_EVP_ossl_rc2_40_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_rc2_40_cbc ( void  )

The RC2-40 cipher type - OpenSSL

Returns
the RC2-40 EVP_CIPHER pointer.

Definition at line 521 of file evp-openssl.c.

◆ hc_EVP_ossl_rc2_64_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_rc2_64_cbc ( void  )

The RC2-64 cipher type - OpenSSL

Returns
the RC2-64 EVP_CIPHER pointer.

Definition at line 532 of file evp-openssl.c.

◆ hc_EVP_ossl_rc2_cbc()

const hc_EVP_CIPHER * hc_EVP_ossl_rc2_cbc ( void  )

The RC2 cipher type - OpenSSL

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 511 of file evp-openssl.c.

◆ hc_EVP_ossl_rc4()

const hc_EVP_CIPHER * hc_EVP_ossl_rc4 ( void  )

The RC4 cipher type (OpenSSL provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 570 of file evp-openssl.c.

◆ hc_EVP_ossl_rc4_40()

const hc_EVP_CIPHER * hc_EVP_ossl_rc4_40 ( void  )

The RC4-40 cipher type (OpenSSL provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 581 of file evp-openssl.c.

◆ hc_EVP_ossl_sha1()

const hc_EVP_MD * hc_EVP_ossl_sha1 ( void  )

The SHA-1 hash algorithm (OpenSSL provider)

Returns
the SHA-1 EVP_MD pointer.

Definition at line 617 of file evp-openssl.c.

◆ hc_EVP_ossl_sha256()

const hc_EVP_MD * hc_EVP_ossl_sha256 ( void  )

The SHA-256 hash algorithm (OpenSSL provider)

Returns
the SHA-256 EVP_MD pointer.

Definition at line 626 of file evp-openssl.c.

◆ hc_EVP_ossl_sha384()

const hc_EVP_MD * hc_EVP_ossl_sha384 ( void  )

The SHA-384 hash algorithm (OpenSSL provider)

Returns
the SHA-384 EVP_MD pointer.

Definition at line 635 of file evp-openssl.c.

◆ hc_EVP_ossl_sha512()

const hc_EVP_MD * hc_EVP_ossl_sha512 ( void  )

The SHA-512 hash algorithm (OpenSSL provider)

Returns
the SHA-512 EVP_MD pointer.

Definition at line 644 of file evp-openssl.c.

◆ hc_EVP_wincng_camellia_128_cbc()

const EVP_CIPHER* hc_EVP_wincng_camellia_128_cbc ( void  )

The Camellia-128 cipher type - CommonCrypto

Returns
the Camellia-128 EVP_CIPHER pointer.

Definition at line 434 of file evp-wincng.c.

◆ hc_EVP_wincng_camellia_192_cbc()

const EVP_CIPHER* hc_EVP_wincng_camellia_192_cbc ( void  )

The Camellia-198 cipher type - CommonCrypto

Returns
the Camellia-198 EVP_CIPHER pointer.

Definition at line 444 of file evp-wincng.c.

◆ hc_EVP_wincng_camellia_256_cbc()

const EVP_CIPHER* hc_EVP_wincng_camellia_256_cbc ( void  )

The Camellia-256 cipher type - CommonCrypto

Returns
the Camellia-256 EVP_CIPHER pointer.

Definition at line 454 of file evp-wincng.c.

Variable Documentation

◆ pkcs11_aes_128_cbc

EVP_CIPHER pkcs11_aes_128_cbc = { 0, 16 , 16 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
static

The AES-128 cipher type (PKCS#11 provider)

Returns
the AES-128-CBC EVP_CIPHER pointer.

Definition at line 640 of file evp-pkcs11.c.

◆ pkcs11_aes_128_cfb8

EVP_CIPHER pkcs11_aes_128_cfb8 = { 0, 16 , 16 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
static

The AES-128 CFB8 cipher type (PKCS#11 provider)

Returns
the AES-128-CFB8 EVP_CIPHER pointer.

Definition at line 685 of file evp-pkcs11.c.

◆ pkcs11_aes_192_cbc

EVP_CIPHER pkcs11_aes_192_cbc = { 0, 16 , 24 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
static

The AES-192 cipher type (PKCS#11 provider)

Returns
the AES-192-CBC EVP_CIPHER pointer.

Definition at line 655 of file evp-pkcs11.c.

◆ pkcs11_aes_192_cfb8

EVP_CIPHER pkcs11_aes_192_cfb8 = { 0, 16 , 24 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
static

The AES-192 CFB8 cipher type (PKCS#11 provider)

Returns
the AES-192-CFB8 EVP_CIPHER pointer.

Definition at line 700 of file evp-pkcs11.c.

◆ pkcs11_aes_256_cbc

EVP_CIPHER pkcs11_aes_256_cbc = { 0, 16 , 32 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CBC }
static

The AES-256 cipher type (PKCS#11 provider)

Returns
the AES-256-CBC EVP_CIPHER pointer.

Definition at line 670 of file evp-pkcs11.c.

◆ pkcs11_aes_256_cfb8

EVP_CIPHER pkcs11_aes_256_cfb8 = { 0, 16 , 32 , 16 , ( EVP_CIPH_CFB8_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_AES_CFB8 }
static

The AES-256 CFB8 cipher type (PKCS#11 provider)

Returns
the AES-256-CFB8 EVP_CIPHER pointer.

Definition at line 715 of file evp-pkcs11.c.

◆ pkcs11_camellia_128_cbc

EVP_CIPHER pkcs11_camellia_128_cbc = { 0, 16 , 16 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
static

The Camellia-128 cipher type - PKCS#11

Returns
the Camellia-128 EVP_CIPHER pointer.

Definition at line 775 of file evp-pkcs11.c.

◆ pkcs11_camellia_192_cbc

EVP_CIPHER pkcs11_camellia_192_cbc = { 0, 16 , 24 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
static

The Camellia-198 cipher type - PKCS#11

Returns
the Camellia-198 EVP_CIPHER pointer.

Definition at line 790 of file evp-pkcs11.c.

◆ pkcs11_camellia_256_cbc

EVP_CIPHER pkcs11_camellia_256_cbc = { 0, 16 , 32 , 16 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_CAMELLIA_CBC }
static

The Camellia-256 cipher type - PKCS#11

Returns
the Camellia-256 EVP_CIPHER pointer.

Definition at line 805 of file evp-pkcs11.c.

◆ pkcs11_des_cbc

EVP_CIPHER pkcs11_des_cbc = { 0, 8 , 8 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_DES_CBC }
static

The DES cipher type (PKCS#11 provider)

Returns
the DES-CBC EVP_CIPHER pointer.

Definition at line 625 of file evp-pkcs11.c.

◆ pkcs11_des_ede3_cbc

EVP_CIPHER pkcs11_des_ede3_cbc = { 0, 8 , 24 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_DES3_CBC }
static

The triple DES cipher type (PKCS#11 provider)

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 610 of file evp-pkcs11.c.

◆ pkcs11_rc2_40_cbc

EVP_CIPHER pkcs11_rc2_40_cbc = { 0, 8 , 5 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
static

The RC2-40 cipher type - PKCS#11

Returns
the RC2-40 EVP_CIPHER pointer.

Definition at line 745 of file evp-pkcs11.c.

◆ pkcs11_rc2_64_cbc

EVP_CIPHER pkcs11_rc2_64_cbc = { 0, 8 , 8 , 8 , ( EVP_CIPH_CBC_MODE ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
static

The RC2-64 cipher type - PKCS#11

Returns
the RC2-64 EVP_CIPHER pointer.

Definition at line 760 of file evp-pkcs11.c.

◆ pkcs11_rc2_cbc

EVP_CIPHER pkcs11_rc2_cbc = { 0, 8 , 16 , 8 , ( EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC2_CBC }
static

The RC2 cipher type - PKCS#11

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 730 of file evp-pkcs11.c.

◆ pkcs11_rc4

EVP_CIPHER pkcs11_rc4 = { 0, 1 , 16 , 0 , ( EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC4 }
static

The RC4 cipher type (PKCS#11 provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 820 of file evp-pkcs11.c.

◆ pkcs11_rc4_40

EVP_CIPHER pkcs11_rc4_40 = { 0, 1 , 5 , 0 , ( EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH ) | EVP_CIPH_ALWAYS_CALL_INIT, p11_key_init, p11_do_cipher, p11_cleanup, sizeof(struct pkcs11_cipher_ctx), NULL, NULL, NULL, (void *) CKM_RC4 }
static

The RC4-40 cipher type (PKCS#11 provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 835 of file evp-pkcs11.c.

◆ wincng_aes_128_cbc

EVP_CIPHER wincng_aes_128_cbc = { 0, 16 , 16 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-128 cipher type (Windows CNG provider)

Returns
the AES-128-CBC EVP_CIPHER pointer.

Definition at line 304 of file evp-wincng.c.

◆ wincng_aes_128_cfb8

EVP_CIPHER wincng_aes_128_cfb8 = { 0, 16 , 16 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-128 CFB8 cipher type (Windows CNG provider)

Returns
the AES-128-CFB8 EVP_CIPHER pointer.

Definition at line 349 of file evp-wincng.c.

◆ wincng_aes_192_cbc

EVP_CIPHER wincng_aes_192_cbc = { 0, 16 , 24 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-192 cipher type (Windows CNG provider)

Returns
the AES-192-CBC EVP_CIPHER pointer.

Definition at line 319 of file evp-wincng.c.

◆ wincng_aes_192_cfb8

EVP_CIPHER wincng_aes_192_cfb8 = { 0, 16 , 24 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-192 CFB8 cipher type (Windows CNG provider)

Returns
the AES-192-CFB8 EVP_CIPHER pointer.

Definition at line 364 of file evp-wincng.c.

◆ wincng_aes_256_cbc

EVP_CIPHER wincng_aes_256_cbc = { 0, 16 , 32 , 16 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-256 cipher type (Windows CNG provider)

Returns
the AES-256-CBC EVP_CIPHER pointer.

Definition at line 334 of file evp-wincng.c.

◆ wincng_aes_256_cfb8

EVP_CIPHER wincng_aes_256_cfb8 = { 0, 16 , 32 , 16 , EVP_CIPH_CFB8_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The AES-256 CFB8 cipher type (Windows CNG provider)

Returns
the AES-256-CFB8 EVP_CIPHER pointer.

Definition at line 379 of file evp-wincng.c.

◆ wincng_des_cbc

EVP_CIPHER wincng_des_cbc = { 0, 8 , 8 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The DES cipher type (Windows CNG provider)

Returns
the DES-CBC EVP_CIPHER pointer.

Definition at line 289 of file evp-wincng.c.

◆ wincng_des_ede3_cbc

EVP_CIPHER wincng_des_ede3_cbc = { 0, 8 , 24 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The triple DES cipher type (Windows CNG provider)

Returns
the DES-EDE3-CBC EVP_CIPHER pointer.

Definition at line 274 of file evp-wincng.c.

◆ wincng_rc2_40_cbc

EVP_CIPHER wincng_rc2_40_cbc = { 0, 8 , 5 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The RC2-40 cipher type - Windows CNG

Returns
the RC2-40 EVP_CIPHER pointer.

Definition at line 409 of file evp-wincng.c.

◆ wincng_rc2_64_cbc

EVP_CIPHER wincng_rc2_64_cbc = { 0, 8 , 8 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The RC2-64 cipher type - Windows CNG

Returns
the RC2-64 EVP_CIPHER pointer.

Definition at line 424 of file evp-wincng.c.

◆ wincng_rc2_cbc

EVP_CIPHER wincng_rc2_cbc = { 0, 8 , 16 , 8 , EVP_CIPH_CBC_MODE , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The RC2 cipher type - Windows CNG

Returns
the RC2 EVP_CIPHER pointer.

Definition at line 394 of file evp-wincng.c.

◆ wincng_rc4

EVP_CIPHER wincng_rc4 = { 0, 1 , 16 , 0 , EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The RC4 cipher type (Windows CNG provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 469 of file evp-wincng.c.

◆ wincng_rc4_40

EVP_CIPHER wincng_rc4_40 = { 0, 1 , 5 , 0 , EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH , wincng_key_init, wincng_do_cipher, wincng_cleanup, 0, NULL, NULL, NULL, NULL }
static

The RC4-40 cipher type (Windows CNG provider)

Returns
the RC4 EVP_CIPHER pointer.

Definition at line 484 of file evp-wincng.c.