evp.h File Reference

API published in:
API deprecated in:


#include <openssl/opensslconf.h>
#include <openssl/ossl_typ.h>
#include <openssl/symhacks.h>
#include <openssl/bio.h>
#include <openssl/objects.h>

Go to the source code of this file.


Data Structures

struct   evp_pkey_st
struct   env_md_st
struct   env_md_ctx_st
struct   evp_cipher_st
struct   evp_cipher_info_st
struct   evp_cipher_ctx_st
struct   evp_Encode_Ctx_st

Defines

#define  EVP_MAX_MD_SIZE   64
#define  EVP_MAX_KEY_LENGTH   32
#define  EVP_MAX_IV_LENGTH   16
#define  EVP_MAX_BLOCK_LENGTH   32
#define  PKCS5_SALT_LEN   8
#define  PKCS5_DEFAULT_ITER   2048
#define  EVP_PK_RSA   0x0001
#define  EVP_PK_DSA   0x0002
#define  EVP_PK_DH   0x0004
#define  EVP_PK_EC   0x0008
#define  EVP_PKT_SIGN   0x0010
#define  EVP_PKT_ENC   0x0020
#define  EVP_PKT_EXCH   0x0040
#define  EVP_PKS_RSA   0x0100
#define  EVP_PKS_DSA   0x0200
#define  EVP_PKS_EC   0x0400
#define  EVP_PKT_EXP   0x1000
#define  EVP_PKEY_NONE   NID_undef
#define  EVP_PKEY_RSA   NID_rsaEncryption
#define  EVP_PKEY_RSA2   NID_rsa
#define  EVP_PKEY_DSA   NID_dsa
#define  EVP_PKEY_DSA1   NID_dsa_2
#define  EVP_PKEY_DSA2   NID_dsaWithSHA
#define  EVP_PKEY_DSA3   NID_dsaWithSHA1
#define  EVP_PKEY_DSA4   NID_dsaWithSHA1_2
#define  EVP_PKEY_DH   NID_dhKeyAgreement
#define  EVP_PKEY_EC   NID_X9_62_id_ecPublicKey
#define  EVP_PKEY_MO_SIGN   0x0001
#define  EVP_PKEY_MO_VERIFY   0x0002
#define  EVP_PKEY_MO_ENCRYPT   0x0004
#define  EVP_PKEY_MO_DECRYPT   0x0008
#define  EVP_MD_FLAG_ONESHOT   0x0001
#define  EVP_PKEY_NULL_method   NULL,NULL,{0,0,0,0}
#define  EVP_PKEY_DSA_method
#define  EVP_PKEY_ECDSA_method
#define  EVP_PKEY_RSA_method
#define  EVP_PKEY_RSA_ASN1_OCTET_STRING_method
#define  EVP_MD_CTX_FLAG_ONESHOT   0x0001
#define  EVP_MD_CTX_FLAG_CLEANED   0x0002
#define  EVP_MD_CTX_FLAG_REUSE   0x0004
#define  EVP_CIPH_STREAM_CIPHER   0x0
#define  EVP_CIPH_ECB_MODE   0x1
#define  EVP_CIPH_CBC_MODE   0x2
#define  EVP_CIPH_CFB_MODE   0x3
#define  EVP_CIPH_OFB_MODE   0x4
#define  EVP_CIPH_MODE   0x7
#define  EVP_CIPH_VARIABLE_LENGTH   0x8
#define  EVP_CIPH_CUSTOM_IV   0x10
#define  EVP_CIPH_ALWAYS_CALL_INIT   0x20
#define  EVP_CIPH_CTRL_INIT   0x40
#define  EVP_CIPH_CUSTOM_KEY_LENGTH   0x80
#define  EVP_CIPH_NO_PADDING   0x100
#define  EVP_CIPH_RAND_KEY   0x200
#define  EVP_CTRL_INIT   0x0
#define  EVP_CTRL_SET_KEY_LENGTH   0x1
#define  EVP_CTRL_GET_RC2_KEY_BITS   0x2
#define  EVP_CTRL_SET_RC2_KEY_BITS   0x3
#define  EVP_CTRL_GET_RC5_ROUNDS   0x4
#define  EVP_CTRL_SET_RC5_ROUNDS   0x5
#define  EVP_CTRL_RAND_KEY   0x6
#define  EVP_PKEY_assign_RSA(pkey, rsa)
#define  EVP_PKEY_assign_DSA(pkey, dsa)
#define  EVP_PKEY_assign_DH(pkey, dh)
#define  EVP_PKEY_assign_EC_KEY(pkey, eckey)
#define  EVP_get_digestbynid(a)   EVP_get_digestbyname(OBJ_nid2sn(a))
#define  EVP_get_digestbyobj(a)   EVP_get_digestbynid(OBJ_obj2nid(a))
#define  EVP_get_cipherbynid(a)   EVP_get_cipherbyname(OBJ_nid2sn(a))
#define  EVP_get_cipherbyobj(a)   EVP_get_cipherbynid(OBJ_obj2nid(a))
#define  EVP_MD_type(e)   ((e)->type)
#define  EVP_MD_nid(e)   EVP_MD_type(e)
#define  EVP_MD_name(e)   OBJ_nid2sn(EVP_MD_nid(e))
#define  EVP_MD_pkey_type(e)   ((e)->pkey_type)
#define  EVP_MD_size(e)   ((e)->md_size)
#define  EVP_MD_block_size(e)   ((e)->block_size)
#define  EVP_MD_CTX_md(e)   ((e)->digest)
#define  EVP_MD_CTX_size(e)   EVP_MD_size((e)->digest)
#define  EVP_MD_CTX_block_size(e)   EVP_MD_block_size((e)->digest)
#define  EVP_MD_CTX_type(e)   EVP_MD_type((e)->digest)
#define  EVP_CIPHER_nid(e)   ((e)->nid)
#define  EVP_CIPHER_name(e)   OBJ_nid2sn(EVP_CIPHER_nid(e))
#define  EVP_CIPHER_block_size(e)   ((e)->block_size)
#define  EVP_CIPHER_key_length(e)   ((e)->key_len)
#define  EVP_CIPHER_iv_length(e)   ((e)->iv_len)
#define  EVP_CIPHER_flags(e)   ((e)->flags)
#define  EVP_CIPHER_mode(e)   (((e)->flags) & EVP_CIPH_MODE)
#define  EVP_CIPHER_CTX_cipher(e)   ((e)->cipher)
#define  EVP_CIPHER_CTX_nid(e)   ((e)->cipher->nid)
#define  EVP_CIPHER_CTX_block_size(e)   ((e)->cipher->block_size)
#define  EVP_CIPHER_CTX_key_length(e)   ((e)->key_len)
#define  EVP_CIPHER_CTX_iv_length(e)   ((e)->cipher->iv_len)
#define  EVP_CIPHER_CTX_get_app_data(e)   ((e)->app_data)
#define  EVP_CIPHER_CTX_set_app_data(e, d)   ((e)->app_data=(char *)(d))
#define  EVP_CIPHER_CTX_type(c)   EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))
#define  EVP_CIPHER_CTX_flags(e)   ((e)->cipher->flags)
#define  EVP_CIPHER_CTX_mode(e)   ((e)->cipher->flags & EVP_CIPH_MODE)
#define  EVP_ENCODE_LENGTH(l)   (((l+2)/3*4)+(l/48+1)*2+80)
#define  EVP_DECODE_LENGTH(l)   ((l+3)/4*3+80)
#define  EVP_SignInit_ex(a, b, c)   EVP_DigestInit_ex(a,b,c)
#define  EVP_SignInit(a, b)   EVP_DigestInit(a,b)
#define  EVP_SignUpdate(a, b, c)   EVP_DigestUpdate(a,b,c)
#define  EVP_VerifyInit_ex(a, b, c)   EVP_DigestInit_ex(a,b,c)
#define  EVP_VerifyInit(a, b)   EVP_DigestInit(a,b)
#define  EVP_VerifyUpdate(a, b, c)   EVP_DigestUpdate(a,b,c)
#define  EVP_OpenUpdate(a, b, c, d, e)   EVP_DecryptUpdate(a,b,c,d,e)
#define  EVP_SealUpdate(a, b, c, d, e)   EVP_EncryptUpdate(a,b,c,d,e)
#define  BIO_set_md(b, md)   BIO_ctrl(b,BIO_C_SET_MD,0,(char *)md)
#define  BIO_get_md(b, mdp)   BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp)
#define  BIO_get_md_ctx(b, mdcp)   BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp)
#define  BIO_get_cipher_status(b)   BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
#define  BIO_get_cipher_ctx(b, c_pp)   BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp)
#define  EVP_Cipher(c, o, i, l)   (c)->cipher->do_cipher((c),(o),(i),(l))
#define  EVP_add_cipher_alias(n, alias)   OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))
#define  EVP_add_digest_alias(n, alias)   OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))
#define  EVP_delete_cipher_alias(alias)   OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);
#define  EVP_delete_digest_alias(alias)   OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);
#define  EVP_MD_CTX_set_flags(ctx, flgs)   ((ctx)->flags|=(flgs))
#define  EVP_MD_CTX_clear_flags(ctx, flgs)   ((ctx)->flags&=~(flgs))
#define  EVP_MD_CTX_test_flags(ctx, flgs)   ((ctx)->flags&(flgs))
#define  EVP_des_cfb   EVP_des_cfb64
#define  EVP_des_ede_cfb   EVP_des_ede_cfb64
#define  EVP_des_ede3_cfb   EVP_des_ede3_cfb64
#define  EVP_rc2_cfb   EVP_rc2_cfb64
#define  EVP_aes_128_cfb   EVP_aes_128_cfb128
#define  EVP_aes_192_cfb   EVP_aes_192_cfb128
#define  EVP_aes_256_cfb   EVP_aes_256_cfb128
#define  OpenSSL_add_all_algorithms()   OPENSSL_add_all_algorithms_noconf()
#define  SSLeay_add_all_algorithms()   OpenSSL_add_all_algorithms()
#define  SSLeay_add_all_ciphers()   OpenSSL_add_all_ciphers()
#define  SSLeay_add_all_digests()   OpenSSL_add_all_digests()
#define  EVP_F_AES_INIT_KEY   133
#define  EVP_F_D2I_PKEY   100
#define  EVP_F_DSAPKEY2PKCS8   134
#define  EVP_F_DSA_PKEY2PKCS8   135
#define  EVP_F_ECDSA_PKEY2PKCS8   129
#define  EVP_F_ECKEY_PKEY2PKCS8   132
#define  EVP_F_EVP_CIPHERINIT_EX   123
#define  EVP_F_EVP_CIPHER_CTX_CTRL   124
#define  EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH   122
#define  EVP_F_EVP_DECRYPTFINAL_EX   101
#define  EVP_F_EVP_DIGESTINIT_EX   128
#define  EVP_F_EVP_ENCRYPTFINAL_EX   127
#define  EVP_F_EVP_MD_CTX_COPY_EX   110
#define  EVP_F_EVP_OPENINIT   102
#define  EVP_F_EVP_PBE_ALG_ADD   115
#define  EVP_F_EVP_PBE_CIPHERINIT   116
#define  EVP_F_EVP_PKCS82PKEY   111
#define  EVP_F_EVP_PKEY2PKCS8_BROKEN   113
#define  EVP_F_EVP_PKEY_COPY_PARAMETERS   103
#define  EVP_F_EVP_PKEY_DECRYPT   104
#define  EVP_F_EVP_PKEY_ENCRYPT   105
#define  EVP_F_EVP_PKEY_GET1_DH   119
#define  EVP_F_EVP_PKEY_GET1_DSA   120
#define  EVP_F_EVP_PKEY_GET1_ECDSA   130
#define  EVP_F_EVP_PKEY_GET1_EC_KEY   131
#define  EVP_F_EVP_PKEY_GET1_RSA   121
#define  EVP_F_EVP_PKEY_NEW   106
#define  EVP_F_EVP_RIJNDAEL   126
#define  EVP_F_EVP_SIGNFINAL   107
#define  EVP_F_EVP_VERIFYFINAL   108
#define  EVP_F_PKCS5_PBE_KEYIVGEN   117
#define  EVP_F_PKCS5_V2_PBE_KEYIVGEN   118
#define  EVP_F_PKCS8_SET_BROKEN   112
#define  EVP_F_RC2_MAGIC_TO_METH   109
#define  EVP_F_RC5_CTRL   125
#define  EVP_R_AES_KEY_SETUP_FAILED   143
#define  EVP_R_ASN1_LIB   140
#define  EVP_R_BAD_BLOCK_LENGTH   136
#define  EVP_R_BAD_DECRYPT   100
#define  EVP_R_BAD_KEY_LENGTH   137
#define  EVP_R_BN_DECODE_ERROR   112
#define  EVP_R_BN_PUBKEY_ERROR   113
#define  EVP_R_CIPHER_PARAMETER_ERROR   122
#define  EVP_R_CTRL_NOT_IMPLEMENTED   132
#define  EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED   133
#define  EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH   138
#define  EVP_R_DECODE_ERROR   114
#define  EVP_R_DIFFERENT_KEY_TYPES   101
#define  EVP_R_ENCODE_ERROR   115
#define  EVP_R_EVP_PBE_CIPHERINIT_ERROR   119
#define  EVP_R_EXPECTING_AN_RSA_KEY   127
#define  EVP_R_EXPECTING_A_DH_KEY   128
#define  EVP_R_EXPECTING_A_DSA_KEY   129
#define  EVP_R_EXPECTING_A_ECDSA_KEY   141
#define  EVP_R_EXPECTING_A_EC_KEY   142
#define  EVP_R_INITIALIZATION_ERROR   134
#define  EVP_R_INPUT_NOT_INITIALIZED   111
#define  EVP_R_INVALID_KEY_LENGTH   130
#define  EVP_R_IV_TOO_LARGE   102
#define  EVP_R_KEYGEN_FAILURE   120
#define  EVP_R_MISSING_PARAMETERS   103
#define  EVP_R_NO_CIPHER_SET   131
#define  EVP_R_NO_DIGEST_SET   139
#define  EVP_R_NO_DSA_PARAMETERS   116
#define  EVP_R_NO_SIGN_FUNCTION_CONFIGURED   104
#define  EVP_R_NO_VERIFY_FUNCTION_CONFIGURED   105
#define  EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE   117
#define  EVP_R_PUBLIC_KEY_NOT_RSA   106
#define  EVP_R_UNKNOWN_PBE_ALGORITHM   121
#define  EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS   135
#define  EVP_R_UNSUPPORTED_CIPHER   107
#define  EVP_R_UNSUPPORTED_KEYLENGTH   123
#define  EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION   124
#define  EVP_R_UNSUPPORTED_KEY_SIZE   108
#define  EVP_R_UNSUPPORTED_PRF   125
#define  EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM   118
#define  EVP_R_UNSUPPORTED_SALT_TYPE   126
#define  EVP_R_WRONG_FINAL_BLOCK_LENGTH   109
#define  EVP_R_WRONG_PUBLIC_KEY_TYPE   110

Typedefs

typedef int  evp_sign_method (int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, void *key)
typedef int  evp_verify_method (int type, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, void *key)
typedef evp_cipher_info_st  EVP_CIPHER_INFO
typedef evp_Encode_Ctx_st  EVP_ENCODE_CTX
typedef int(  EVP_PBE_KEYGEN )(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)

Functions

IMPORT_C void  EVP_MD_CTX_init (EVP_MD_CTX *ctx)
IMPORT_C int  EVP_MD_CTX_cleanup (EVP_MD_CTX *ctx)
IMPORT_C EVP_MD_CTX EVP_MD_CTX_create (void)
IMPORT_C void  EVP_MD_CTX_destroy (EVP_MD_CTX *ctx)
IMPORT_C int  EVP_MD_CTX_copy_ex (EVP_MD_CTX *out, const EVP_MD_CTX *in)
IMPORT_C int  EVP_DigestInit_ex (EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
IMPORT_C int  EVP_DigestUpdate (EVP_MD_CTX *ctx, const void *d, size_t cnt)
IMPORT_C int  EVP_DigestFinal_ex (EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s)
IMPORT_C int  EVP_Digest (const void *data, size_t count, unsigned char *md, unsigned int *size, const EVP_MD *type, ENGINE *impl)
IMPORT_C int  EVP_MD_CTX_copy (EVP_MD_CTX *out, const EVP_MD_CTX *in)
IMPORT_C int  EVP_DigestInit (EVP_MD_CTX *ctx, const EVP_MD *type)
IMPORT_C int  EVP_DigestFinal (EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s)
IMPORT_C int  EVP_read_pw_string (char *buf, int length, const char *prompt, int verify)
IMPORT_C void  EVP_set_pw_prompt (const char *prompt)
IMPORT_C char *  EVP_get_pw_prompt (void)
IMPORT_C int  EVP_BytesToKey (const EVP_CIPHER *type, const EVP_MD *md, const unsigned char *salt, const unsigned char *data, int datal, int count, unsigned char *key, unsigned char *iv)
IMPORT_C int  EVP_EncryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv)
IMPORT_C int  EVP_EncryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv)
IMPORT_C int  EVP_EncryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
IMPORT_C int  EVP_EncryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C int  EVP_EncryptFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C int  EVP_DecryptInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv)
IMPORT_C int  EVP_DecryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv)
IMPORT_C int  EVP_DecryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
IMPORT_C int  EVP_DecryptFinal (EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl)
IMPORT_C int  EVP_DecryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl)
IMPORT_C int  EVP_CipherInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc)
IMPORT_C int  EVP_CipherInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc)
IMPORT_C int  EVP_CipherUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
IMPORT_C int  EVP_CipherFinal (EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl)
IMPORT_C int  EVP_CipherFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl)
IMPORT_C int  EVP_SignFinal (EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s, EVP_PKEY *pkey)
IMPORT_C int  EVP_VerifyFinal (EVP_MD_CTX *ctx, const unsigned char *sigbuf, unsigned int siglen, EVP_PKEY *pkey)
IMPORT_C int  EVP_OpenInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv)
IMPORT_C int  EVP_OpenFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C int  EVP_SealInit (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, int *ekl, unsigned char *iv, EVP_PKEY **pubk, int npubk)
IMPORT_C int  EVP_SealFinal (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C void  EVP_EncodeInit (EVP_ENCODE_CTX *ctx)
IMPORT_C void  EVP_EncodeUpdate (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
IMPORT_C void  EVP_EncodeFinal (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C int  EVP_EncodeBlock (unsigned char *t, const unsigned char *f, int n)
IMPORT_C void  EVP_DecodeInit (EVP_ENCODE_CTX *ctx)
IMPORT_C int  EVP_DecodeUpdate (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl)
IMPORT_C int  EVP_DecodeFinal (EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl)
IMPORT_C int  EVP_DecodeBlock (unsigned char *t, const unsigned char *f, int n)
IMPORT_C void  EVP_CIPHER_CTX_init (EVP_CIPHER_CTX *a)
IMPORT_C int  EVP_CIPHER_CTX_cleanup (EVP_CIPHER_CTX *a)
IMPORT_C int  EVP_CIPHER_CTX_set_key_length (EVP_CIPHER_CTX *x, int keylen)
IMPORT_C int  EVP_CIPHER_CTX_set_padding (EVP_CIPHER_CTX *c, int pad)
IMPORT_C int  EVP_CIPHER_CTX_ctrl (EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
IMPORT_C int  EVP_CIPHER_CTX_rand_key (EVP_CIPHER_CTX *ctx, unsigned char *key)
IMPORT_C BIO_METHOD BIO_f_md (void)
IMPORT_C BIO_METHOD BIO_f_base64 (void)
IMPORT_C BIO_METHOD BIO_f_cipher (void)
IMPORT_C BIO_METHOD BIO_f_reliable (void)
IMPORT_C void  BIO_set_cipher (BIO *b, const EVP_CIPHER *c, const unsigned char *k, const unsigned char *i, int enc)
IMPORT_C const EVP_MD EVP_md_null (void)
IMPORT_C const EVP_MD EVP_md2 (void)
IMPORT_C const EVP_MD EVP_md5 (void)
IMPORT_C const EVP_MD EVP_sha (void)
IMPORT_C const EVP_MD EVP_sha1 (void)
IMPORT_C const EVP_MD EVP_dss (void)
IMPORT_C const EVP_MD EVP_dss1 (void)
IMPORT_C const EVP_CIPHER EVP_enc_null (void)
IMPORT_C const EVP_CIPHER EVP_des_ecb (void)
IMPORT_C const EVP_CIPHER EVP_des_ede (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3 (void)
IMPORT_C const EVP_CIPHER EVP_des_ede_ecb (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_ecb (void)
IMPORT_C const EVP_CIPHER EVP_des_cfb64 (void)
IMPORT_C const EVP_CIPHER EVP_des_cfb1 (void)
IMPORT_C const EVP_CIPHER EVP_des_cfb8 (void)
IMPORT_C const EVP_CIPHER EVP_des_ede_cfb64 (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_cfb64 (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_cfb1 (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_cfb8 (void)
IMPORT_C const EVP_CIPHER EVP_des_ofb (void)
IMPORT_C const EVP_CIPHER EVP_des_ede_ofb (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_ofb (void)
IMPORT_C const EVP_CIPHER EVP_des_cbc (void)
IMPORT_C const EVP_CIPHER EVP_des_ede_cbc (void)
IMPORT_C const EVP_CIPHER EVP_des_ede3_cbc (void)
IMPORT_C const EVP_CIPHER EVP_desx_cbc (void)
IMPORT_C const EVP_CIPHER EVP_rc4 (void)
IMPORT_C const EVP_CIPHER EVP_rc4_40 (void)
IMPORT_C const EVP_CIPHER EVP_rc2_ecb (void)
IMPORT_C const EVP_CIPHER EVP_rc2_cbc (void)
IMPORT_C const EVP_CIPHER EVP_rc2_40_cbc (void)
IMPORT_C const EVP_CIPHER EVP_rc2_64_cbc (void)
IMPORT_C const EVP_CIPHER EVP_rc2_cfb64 (void)
IMPORT_C const EVP_CIPHER EVP_rc2_ofb (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_ecb (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_cbc (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_cfb1 (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_cfb8 (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_cfb128 (void)
IMPORT_C const EVP_CIPHER EVP_aes_128_ofb (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_ecb (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_cbc (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_cfb1 (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_cfb8 (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_cfb128 (void)
IMPORT_C const EVP_CIPHER EVP_aes_192_ofb (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_ecb (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_cbc (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_cfb1 (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_cfb8 (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_cfb128 (void)
IMPORT_C const EVP_CIPHER EVP_aes_256_ofb (void)
IMPORT_C void  OPENSSL_add_all_algorithms_noconf (void)
IMPORT_C void  OPENSSL_add_all_algorithms_conf (void)
IMPORT_C void  OpenSSL_add_all_ciphers (void)
IMPORT_C void  OpenSSL_add_all_digests (void)
IMPORT_C int  EVP_add_cipher (const EVP_CIPHER *cipher)
IMPORT_C int  EVP_add_digest (const EVP_MD *digest)
IMPORT_C const EVP_CIPHER EVP_get_cipherbyname (const char *name)
IMPORT_C const EVP_MD EVP_get_digestbyname (const char *name)
IMPORT_C void  EVP_cleanup (void)
IMPORT_C int  EVP_PKEY_decrypt (unsigned char *dec_key, const unsigned char *enc_key, int enc_key_len, EVP_PKEY *private_key)
IMPORT_C int  EVP_PKEY_encrypt (unsigned char *enc_key, const unsigned char *key, int key_len, EVP_PKEY *pub_key)
IMPORT_C int  EVP_PKEY_type (int type)
IMPORT_C int  EVP_PKEY_bits (EVP_PKEY *pkey)
IMPORT_C int  EVP_PKEY_size (EVP_PKEY *pkey)
IMPORT_C int  EVP_PKEY_assign (EVP_PKEY *pkey, int type, char *key)
IMPORT_C int  EVP_PKEY_set1_RSA (EVP_PKEY *pkey, struct rsa_st *key)
IMPORT_C struct rsa_st EVP_PKEY_get1_RSA (EVP_PKEY *pkey)
IMPORT_C int  EVP_PKEY_set1_DSA (EVP_PKEY *pkey, struct dsa_st *key)
IMPORT_C struct dsa_st EVP_PKEY_get1_DSA (EVP_PKEY *pkey)
IMPORT_C int  EVP_PKEY_set1_DH (EVP_PKEY *pkey, struct dh_st *key)
IMPORT_C struct dh_st EVP_PKEY_get1_DH (EVP_PKEY *pkey)
IMPORT_C EVP_PKEY EVP_PKEY_new (void)
IMPORT_C void  EVP_PKEY_free (EVP_PKEY *pkey)
IMPORT_C EVP_PKEY d2i_PublicKey (int type, EVP_PKEY **a, const unsigned char **pp, long length)
IMPORT_C int  i2d_PublicKey (EVP_PKEY *a, unsigned char **pp)
IMPORT_C EVP_PKEY d2i_PrivateKey (int type, EVP_PKEY **a, const unsigned char **pp, long length)
IMPORT_C EVP_PKEY d2i_AutoPrivateKey (EVP_PKEY **a, const unsigned char **pp, long length)
IMPORT_C int  i2d_PrivateKey (EVP_PKEY *a, unsigned char **pp)
IMPORT_C int  EVP_PKEY_copy_parameters (EVP_PKEY *to, const EVP_PKEY *from)
IMPORT_C int  EVP_PKEY_missing_parameters (const EVP_PKEY *pkey)
IMPORT_C int  EVP_PKEY_save_parameters (EVP_PKEY *pkey, int mode)
IMPORT_C int  EVP_PKEY_cmp_parameters (const EVP_PKEY *a, const EVP_PKEY *b)
IMPORT_C int  EVP_PKEY_cmp (const EVP_PKEY *a, const EVP_PKEY *b)
IMPORT_C int  EVP_CIPHER_type (const EVP_CIPHER *ctx)
IMPORT_C int  EVP_CIPHER_param_to_asn1 (EVP_CIPHER_CTX *c, ASN1_TYPE *type)
IMPORT_C int  EVP_CIPHER_asn1_to_param (EVP_CIPHER_CTX *c, ASN1_TYPE *type)
IMPORT_C int  EVP_CIPHER_set_asn1_iv (EVP_CIPHER_CTX *c, ASN1_TYPE *type)
IMPORT_C int  EVP_CIPHER_get_asn1_iv (EVP_CIPHER_CTX *c, ASN1_TYPE *type)
IMPORT_C int  PKCS5_PBE_keyivgen (EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
IMPORT_C int  PKCS5_PBKDF2_HMAC_SHA1 (const char *pass, int passlen, const unsigned char *salt, int saltlen, int iter, int keylen, unsigned char *out)
IMPORT_C int  PKCS5_v2_PBE_keyivgen (EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
IMPORT_C void  PKCS5_PBE_add (void)
IMPORT_C int  EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen, ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de)
IMPORT_C int  EVP_PBE_alg_add (int nid, const EVP_CIPHER *cipher, const EVP_MD *md, EVP_PBE_KEYGEN *keygen)
IMPORT_C void  EVP_PBE_cleanup (void)
IMPORT_C void  ERR_load_EVP_strings (void)

Define Documentation

#define BIO_get_cipher_ctx b,
c_pp   )     BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0,(char *)c_pp)
 
#define BIO_get_cipher_status  )     BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)
 
#define BIO_get_md b,
mdp   )     BIO_ctrl(b,BIO_C_GET_MD,0,(char *)mdp)
 
#define BIO_get_md_ctx b,
mdcp   )     BIO_ctrl(b,BIO_C_GET_MD_CTX,0,(char *)mdcp)
 
#define BIO_set_md b,
md   )     BIO_ctrl(b,BIO_C_SET_MD,0,(char *)md)
 
#define EVP_add_cipher_alias n,
alias   )     OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))
 
#define EVP_add_digest_alias n,
alias   )     OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))
 
#define EVP_aes_128_cfb   EVP_aes_128_cfb128
 
#define EVP_aes_192_cfb   EVP_aes_192_cfb128
 
#define EVP_aes_256_cfb   EVP_aes_256_cfb128
 
#define EVP_CIPH_ALWAYS_CALL_INIT   0x20
 
#define EVP_CIPH_CBC_MODE   0x2
 
#define EVP_CIPH_CFB_MODE   0x3
 
#define EVP_CIPH_CTRL_INIT   0x40
 
#define EVP_CIPH_CUSTOM_IV   0x10
 
#define EVP_CIPH_CUSTOM_KEY_LENGTH   0x80
 
#define EVP_CIPH_ECB_MODE   0x1
 
#define EVP_CIPH_MODE   0x7
 
#define EVP_CIPH_NO_PADDING   0x100
 
#define EVP_CIPH_OFB_MODE   0x4
 
#define EVP_CIPH_RAND_KEY   0x200
 
#define EVP_CIPH_STREAM_CIPHER   0x0
 
#define EVP_CIPH_VARIABLE_LENGTH   0x8
 
#define EVP_Cipher c,
o,
i,
 )     (c)->cipher->do_cipher((c),(o),(i),(l))
 
#define EVP_CIPHER_block_size  )     ((e)->block_size)
 
#define EVP_CIPHER_CTX_block_size  )     ((e)->cipher->block_size)
 
#define EVP_CIPHER_CTX_cipher  )     ((e)->cipher)
 
#define EVP_CIPHER_CTX_flags  )     ((e)->cipher->flags)
 
#define EVP_CIPHER_CTX_get_app_data  )     ((e)->app_data)
 
#define EVP_CIPHER_CTX_iv_length  )     ((e)->cipher->iv_len)
 
#define EVP_CIPHER_CTX_key_length  )     ((e)->key_len)
 
#define EVP_CIPHER_CTX_mode  )     ((e)->cipher->flags & EVP_CIPH_MODE)
 
#define EVP_CIPHER_CTX_nid  )     ((e)->cipher->nid)
 
#define EVP_CIPHER_CTX_set_app_data e,
 )     ((e)->app_data=(char *)(d))
 
#define EVP_CIPHER_CTX_type  )     EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))
 
#define EVP_CIPHER_flags  )     ((e)->flags)
 
#define EVP_CIPHER_iv_length  )     ((e)->iv_len)
 
#define EVP_CIPHER_key_length  )     ((e)->key_len)
 
#define EVP_CIPHER_mode  )     (((e)->flags) & EVP_CIPH_MODE)
 
#define EVP_CIPHER_name  )     OBJ_nid2sn(EVP_CIPHER_nid(e))
 
#define EVP_CIPHER_nid  )     ((e)->nid)
 
#define EVP_CTRL_GET_RC2_KEY_BITS   0x2
 
#define EVP_CTRL_GET_RC5_ROUNDS   0x4
 
#define EVP_CTRL_INIT   0x0
 
#define EVP_CTRL_RAND_KEY   0x6
 
#define EVP_CTRL_SET_KEY_LENGTH   0x1
 
#define EVP_CTRL_SET_RC2_KEY_BITS   0x3
 
#define EVP_CTRL_SET_RC5_ROUNDS   0x5
 
#define EVP_DECODE_LENGTH  )     ((l+3)/4*3+80)
 
#define EVP_delete_cipher_alias alias   )     OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);
 
#define EVP_delete_digest_alias alias   )     OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);
 
#define EVP_des_cfb   EVP_des_cfb64
 
#define EVP_des_ede3_cfb   EVP_des_ede3_cfb64
 
#define EVP_des_ede_cfb   EVP_des_ede_cfb64
 
#define EVP_ENCODE_LENGTH  )     (((l+2)/3*4)+(l/48+1)*2+80)
 
#define EVP_F_AES_INIT_KEY   133
 
#define EVP_F_D2I_PKEY   100
 
#define EVP_F_DSA_PKEY2PKCS8   135
 
#define EVP_F_DSAPKEY2PKCS8   134
 
#define EVP_F_ECDSA_PKEY2PKCS8   129
 
#define EVP_F_ECKEY_PKEY2PKCS8   132
 
#define EVP_F_EVP_CIPHER_CTX_CTRL   124
 
#define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH   122
 
#define EVP_F_EVP_CIPHERINIT_EX   123
 
#define EVP_F_EVP_DECRYPTFINAL_EX   101
 
#define EVP_F_EVP_DIGESTINIT_EX   128
 
#define EVP_F_EVP_ENCRYPTFINAL_EX   127
 
#define EVP_F_EVP_MD_CTX_COPY_EX   110
 
#define EVP_F_EVP_OPENINIT   102
 
#define EVP_F_EVP_PBE_ALG_ADD   115
 
#define EVP_F_EVP_PBE_CIPHERINIT   116
 
#define EVP_F_EVP_PKCS82PKEY   111
 
#define EVP_F_EVP_PKEY2PKCS8_BROKEN   113
 
#define EVP_F_EVP_PKEY_COPY_PARAMETERS   103
 
#define EVP_F_EVP_PKEY_DECRYPT   104
 
#define EVP_F_EVP_PKEY_ENCRYPT   105
 
#define EVP_F_EVP_PKEY_GET1_DH   119
 
#define EVP_F_EVP_PKEY_GET1_DSA   120
 
#define EVP_F_EVP_PKEY_GET1_EC_KEY   131
 
#define EVP_F_EVP_PKEY_GET1_ECDSA   130
 
#define EVP_F_EVP_PKEY_GET1_RSA   121
 
#define EVP_F_EVP_PKEY_NEW   106
 
#define EVP_F_EVP_RIJNDAEL   126
 
#define EVP_F_EVP_SIGNFINAL   107
 
#define EVP_F_EVP_VERIFYFINAL   108
 
#define EVP_F_PKCS5_PBE_KEYIVGEN   117
 
#define EVP_F_PKCS5_V2_PBE_KEYIVGEN   118
 
#define EVP_F_PKCS8_SET_BROKEN   112
 
#define EVP_F_RC2_MAGIC_TO_METH   109
 
#define EVP_F_RC5_CTRL   125
 
#define EVP_get_cipherbynid a   )     EVP_get_cipherbyname(OBJ_nid2sn(a))
 
#define EVP_get_cipherbyobj a   )     EVP_get_cipherbynid(OBJ_obj2nid(a))
 
#define EVP_get_digestbynid a   )     EVP_get_digestbyname(OBJ_nid2sn(a))
 
#define EVP_get_digestbyobj a   )     EVP_get_digestbynid(OBJ_obj2nid(a))
 
#define EVP_MAX_BLOCK_LENGTH   32
 
#define EVP_MAX_IV_LENGTH   16
 
#define EVP_MAX_KEY_LENGTH   32
 
#define EVP_MAX_MD_SIZE   64
 
#define EVP_MD_block_size  )     ((e)->block_size)
 
#define EVP_MD_CTX_block_size  )     EVP_MD_block_size((e)->digest)
 
#define EVP_MD_CTX_clear_flags ctx,
flgs   )     ((ctx)->flags&=~(flgs))
 
#define EVP_MD_CTX_FLAG_CLEANED   0x0002
 
#define EVP_MD_CTX_FLAG_ONESHOT   0x0001
 
#define EVP_MD_CTX_FLAG_REUSE   0x0004
 
#define EVP_MD_CTX_md  )     ((e)->digest)
 
#define EVP_MD_CTX_set_flags ctx,
flgs   )     ((ctx)->flags|=(flgs))
 
#define EVP_MD_CTX_size  )     EVP_MD_size((e)->digest)
 
#define EVP_MD_CTX_test_flags ctx,
flgs   )     ((ctx)->flags&(flgs))
 
#define EVP_MD_CTX_type  )     EVP_MD_type((e)->digest)
 
#define EVP_MD_FLAG_ONESHOT   0x0001
 
#define EVP_MD_name  )     OBJ_nid2sn(EVP_MD_nid(e))
 
#define EVP_MD_nid  )     EVP_MD_type(e)
 
#define EVP_MD_pkey_type  )     ((e)->pkey_type)
 
#define EVP_MD_size  )     ((e)->md_size)
 
#define EVP_MD_type  )     ((e)->type)
 
#define EVP_OpenUpdate a,
b,
c,
d,
 )     EVP_DecryptUpdate(a,b,c,d,e)
 
#define EVP_PK_DH   0x0004
 
#define EVP_PK_DSA   0x0002
 
#define EVP_PK_EC   0x0008
 
#define EVP_PK_RSA   0x0001
 
#define EVP_PKEY_assign_DH pkey,
dh   ) 
 

Value:

EVP_PKEY_assign((pkey),EVP_PKEY_DH,\
                                        (char *)(dh))
#define EVP_PKEY_assign_DSA pkey,
dsa   ) 
 

Value:

EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\
                                        (char *)(dsa))
#define EVP_PKEY_assign_EC_KEY pkey,
eckey   ) 
 

Value:

EVP_PKEY_assign((pkey),EVP_PKEY_EC,\
                                        (char *)(eckey))
#define EVP_PKEY_assign_RSA pkey,
rsa   ) 
 

Value:

EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\
                                        (char *)(rsa))
#define EVP_PKEY_DH   NID_dhKeyAgreement
 
#define EVP_PKEY_DSA   NID_dsa
 
#define EVP_PKEY_DSA1   NID_dsa_2
 
#define EVP_PKEY_DSA2   NID_dsaWithSHA
 
#define EVP_PKEY_DSA3   NID_dsaWithSHA1
 
#define EVP_PKEY_DSA4   NID_dsaWithSHA1_2
 
#define EVP_PKEY_DSA_method
 

Value:

#define EVP_PKEY_EC   NID_X9_62_id_ecPublicKey
 
#define EVP_PKEY_ECDSA_method
 

Value:

(evp_sign_method *)ECDSA_sign, \
                                (evp_verify_method *)ECDSA_verify, \
                                 {EVP_PKEY_EC,0,0,0}
#define EVP_PKEY_MO_DECRYPT   0x0008
 
#define EVP_PKEY_MO_ENCRYPT   0x0004
 
#define EVP_PKEY_MO_SIGN   0x0001
 
#define EVP_PKEY_MO_VERIFY   0x0002
 
#define EVP_PKEY_NONE   NID_undef
 
#define EVP_PKEY_NULL_method   NULL,NULL,{0,0,0,0}
 
#define EVP_PKEY_RSA   NID_rsaEncryption
 
#define EVP_PKEY_RSA2   NID_rsa
 
#define EVP_PKEY_RSA_ASN1_OCTET_STRING_method
 

Value:

#define EVP_PKEY_RSA_method
 

Value:

#define EVP_PKS_DSA   0x0200
 
#define EVP_PKS_EC   0x0400
 
#define EVP_PKS_RSA   0x0100
 
#define EVP_PKT_ENC   0x0020
 
#define EVP_PKT_EXCH   0x0040
 
#define EVP_PKT_EXP   0x1000
 
#define EVP_PKT_SIGN   0x0010
 
#define EVP_R_AES_KEY_SETUP_FAILED   143
 
#define EVP_R_ASN1_LIB   140
 
#define EVP_R_BAD_BLOCK_LENGTH   136
 
#define EVP_R_BAD_DECRYPT   100
 
#define EVP_R_BAD_KEY_LENGTH   137
 
#define EVP_R_BN_DECODE_ERROR   112
 
#define EVP_R_BN_PUBKEY_ERROR   113
 
#define EVP_R_CIPHER_PARAMETER_ERROR   122
 
#define EVP_R_CTRL_NOT_IMPLEMENTED   132
 
#define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED   133
 
#define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH   138
 
#define EVP_R_DECODE_ERROR   114
 
#define EVP_R_DIFFERENT_KEY_TYPES   101
 
#define EVP_R_ENCODE_ERROR   115
 
#define EVP_R_EVP_PBE_CIPHERINIT_ERROR   119
 
#define EVP_R_EXPECTING_A_DH_KEY   128
 
#define EVP_R_EXPECTING_A_DSA_KEY   129
 
#define EVP_R_EXPECTING_A_EC_KEY   142
 
#define EVP_R_EXPECTING_A_ECDSA_KEY   141
 
#define EVP_R_EXPECTING_AN_RSA_KEY   127
 
#define EVP_R_INITIALIZATION_ERROR   134
 
#define EVP_R_INPUT_NOT_INITIALIZED   111
 
#define EVP_R_INVALID_KEY_LENGTH   130
 
#define EVP_R_IV_TOO_LARGE   102
 
#define EVP_R_KEYGEN_FAILURE   120
 
#define EVP_R_MISSING_PARAMETERS   103
 
#define EVP_R_NO_CIPHER_SET   131
 
#define EVP_R_NO_DIGEST_SET   139
 
#define EVP_R_NO_DSA_PARAMETERS   116
 
#define EVP_R_NO_SIGN_FUNCTION_CONFIGURED   104
 
#define EVP_R_NO_VERIFY_FUNCTION_CONFIGURED   105
 
#define EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE   117
 
#define EVP_R_PUBLIC_KEY_NOT_RSA   106
 
#define EVP_R_UNKNOWN_PBE_ALGORITHM   121
 
#define EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS   135
 
#define EVP_R_UNSUPPORTED_CIPHER   107
 
#define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION   124
 
#define EVP_R_UNSUPPORTED_KEY_SIZE   108
 
#define EVP_R_UNSUPPORTED_KEYLENGTH   123
 
#define EVP_R_UNSUPPORTED_PRF   125
 
#define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM   118
 
#define EVP_R_UNSUPPORTED_SALT_TYPE   126
 
#define EVP_R_WRONG_FINAL_BLOCK_LENGTH   109
 
#define EVP_R_WRONG_PUBLIC_KEY_TYPE   110
 
#define EVP_rc2_cfb   EVP_rc2_cfb64
 
#define EVP_SealUpdate a,
b,
c,
d,
 )     EVP_EncryptUpdate(a,b,c,d,e)
 
#define EVP_SignInit a,
 )     EVP_DigestInit(a,b)
 
#define EVP_SignInit_ex a,
b,
 )     EVP_DigestInit_ex(a,b,c)
 
#define EVP_SignUpdate a,
b,
 )     EVP_DigestUpdate(a,b,c)
 
#define EVP_VerifyInit a,
 )     EVP_DigestInit(a,b)
 
#define EVP_VerifyInit_ex a,
b,
 )     EVP_DigestInit_ex(a,b,c)
 
#define EVP_VerifyUpdate a,
b,
 )     EVP_DigestUpdate(a,b,c)
 
#define OpenSSL_add_all_algorithms
 
 )     OPENSSL_add_all_algorithms_noconf()
 
#define PKCS5_DEFAULT_ITER   2048
 
#define PKCS5_SALT_LEN   8
 
#define SSLeay_add_all_algorithms
 
 )     OpenSSL_add_all_algorithms()
 
#define SSLeay_add_all_ciphers
 
 )     OpenSSL_add_all_ciphers()
 
#define SSLeay_add_all_digests
 
 )     OpenSSL_add_all_digests()
 

Typedef Documentation

typedef struct evp_cipher_info_st EVP_CIPHER_INFO
 
typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX
 
typedef int( EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
 
typedef int evp_sign_method(int type, const unsigned char *m, unsigned int m_length, unsigned char *sigret, unsigned int *siglen, void *key)
 
typedef int evp_verify_method(int type, const unsigned char *m, unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, void *key)
 

Function Documentation

IMPORT_C BIO_METHOD* BIO_f_base64 void   ) 
 
IMPORT_C BIO_METHOD* BIO_f_cipher void   ) 
 
IMPORT_C BIO_METHOD* BIO_f_md void   ) 
 
IMPORT_C BIO_METHOD* BIO_f_reliable void   ) 
 
IMPORT_C void BIO_set_cipher BIO b,
const EVP_CIPHER c,
const unsigned char *  k,
const unsigned char *  i,
int  enc
 
IMPORT_C EVP_PKEY* d2i_AutoPrivateKey EVP_PKEY **  a,
const unsigned char **  pp,
long  length
 
IMPORT_C EVP_PKEY* d2i_PrivateKey int  type,
EVP_PKEY **  a,
const unsigned char **  pp,
long  length
 
IMPORT_C EVP_PKEY* d2i_PublicKey int  type,
EVP_PKEY **  a,
const unsigned char **  pp,
long  length
 
IMPORT_C void ERR_load_EVP_strings void   ) 
 
IMPORT_C int EVP_add_cipher const EVP_CIPHER cipher  ) 
 
IMPORT_C int EVP_add_digest const EVP_MD digest  ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_cfb1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_cfb128 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_cfb8 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_128_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_cfb1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_cfb128 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_cfb8 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_192_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_cfb1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_cfb128 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_cfb8 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_aes_256_ofb void   ) 
 
IMPORT_C int EVP_BytesToKey const EVP_CIPHER type,
const EVP_MD md,
const unsigned char *  salt,
const unsigned char *  data,
int  datal,
int  count,
unsigned char *  key,
unsigned char *  iv
 
IMPORT_C int EVP_CIPHER_asn1_to_param EVP_CIPHER_CTX c,
ASN1_TYPE type
 
IMPORT_C int EVP_CIPHER_CTX_cleanup EVP_CIPHER_CTX a  ) 
 
IMPORT_C int EVP_CIPHER_CTX_ctrl EVP_CIPHER_CTX ctx,
int  type,
int  arg,
void *  ptr
 
IMPORT_C void EVP_CIPHER_CTX_init EVP_CIPHER_CTX a  ) 
 
IMPORT_C int EVP_CIPHER_CTX_rand_key EVP_CIPHER_CTX ctx,
unsigned char *  key
 
IMPORT_C int EVP_CIPHER_CTX_set_key_length EVP_CIPHER_CTX x,
int  keylen
 
IMPORT_C int EVP_CIPHER_CTX_set_padding EVP_CIPHER_CTX c,
int  pad
 
IMPORT_C int EVP_CIPHER_get_asn1_iv EVP_CIPHER_CTX c,
ASN1_TYPE type
 
IMPORT_C int EVP_CIPHER_param_to_asn1 EVP_CIPHER_CTX c,
ASN1_TYPE type
 
IMPORT_C int EVP_CIPHER_set_asn1_iv EVP_CIPHER_CTX c,
ASN1_TYPE type
 
IMPORT_C int EVP_CIPHER_type const EVP_CIPHER ctx  ) 
 
IMPORT_C int EVP_CipherFinal EVP_CIPHER_CTX ctx,
unsigned char *  outm,
int *  outl
 
IMPORT_C int EVP_CipherFinal_ex EVP_CIPHER_CTX ctx,
unsigned char *  outm,
int *  outl
 
IMPORT_C int EVP_CipherInit EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv,
int  enc
 
IMPORT_C int EVP_CipherInit_ex EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv,
int  enc
 
IMPORT_C int EVP_CipherUpdate EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl
 
IMPORT_C void EVP_cleanup void   ) 
 
IMPORT_C int EVP_DecodeBlock unsigned char *  t,
const unsigned char *  f,
int  n
 
IMPORT_C int EVP_DecodeFinal EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C void EVP_DecodeInit EVP_ENCODE_CTX ctx  ) 
 
IMPORT_C int EVP_DecodeUpdate EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl
 
IMPORT_C int EVP_DecryptFinal EVP_CIPHER_CTX ctx,
unsigned char *  outm,
int *  outl
 
IMPORT_C int EVP_DecryptFinal_ex EVP_CIPHER_CTX ctx,
unsigned char *  outm,
int *  outl
 
IMPORT_C int EVP_DecryptInit EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv
 
IMPORT_C int EVP_DecryptInit_ex EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv
 
IMPORT_C int EVP_DecryptUpdate EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl
 
IMPORT_C const EVP_CIPHER* EVP_des_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_cfb1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_cfb64 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_cfb8 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_cfb1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_cfb64 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_cfb8 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede3_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede_cfb64 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ede_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_des_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_desx_cbc void   ) 
 
IMPORT_C int EVP_Digest const void *  data,
size_t  count,
unsigned char *  md,
unsigned int *  size,
const EVP_MD type,
ENGINE impl
 
IMPORT_C int EVP_DigestFinal EVP_MD_CTX ctx,
unsigned char *  md,
unsigned int *  s
 
IMPORT_C int EVP_DigestFinal_ex EVP_MD_CTX ctx,
unsigned char *  md,
unsigned int *  s
 
IMPORT_C int EVP_DigestInit EVP_MD_CTX ctx,
const EVP_MD type
 
IMPORT_C int EVP_DigestInit_ex EVP_MD_CTX ctx,
const EVP_MD type,
ENGINE impl
 
IMPORT_C int EVP_DigestUpdate EVP_MD_CTX ctx,
const void *  d,
size_t  cnt
 
IMPORT_C const EVP_MD* EVP_dss void   ) 
 
IMPORT_C const EVP_MD* EVP_dss1 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_enc_null void   ) 
 
IMPORT_C int EVP_EncodeBlock unsigned char *  t,
const unsigned char *  f,
int  n
 
IMPORT_C void EVP_EncodeFinal EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C void EVP_EncodeInit EVP_ENCODE_CTX ctx  ) 
 
IMPORT_C void EVP_EncodeUpdate EVP_ENCODE_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl
 
IMPORT_C int EVP_EncryptFinal EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C int EVP_EncryptFinal_ex EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C int EVP_EncryptInit EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
const unsigned char *  key,
const unsigned char *  iv
 
IMPORT_C int EVP_EncryptInit_ex EVP_CIPHER_CTX ctx,
const EVP_CIPHER cipher,
ENGINE impl,
const unsigned char *  key,
const unsigned char *  iv
 
IMPORT_C int EVP_EncryptUpdate EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl,
const unsigned char *  in,
int  inl
 
IMPORT_C const EVP_CIPHER* EVP_get_cipherbyname const char *  name  ) 
 
IMPORT_C const EVP_MD* EVP_get_digestbyname const char *  name  ) 
 
IMPORT_C char* EVP_get_pw_prompt void   ) 
 
IMPORT_C const EVP_MD* EVP_md2 void   ) 
 
IMPORT_C const EVP_MD* EVP_md5 void   ) 
 
IMPORT_C int EVP_MD_CTX_cleanup EVP_MD_CTX ctx  ) 
 
IMPORT_C int EVP_MD_CTX_copy EVP_MD_CTX out,
const EVP_MD_CTX in
 
IMPORT_C int EVP_MD_CTX_copy_ex EVP_MD_CTX out,
const EVP_MD_CTX in
 
IMPORT_C EVP_MD_CTX* EVP_MD_CTX_create void   ) 
 
IMPORT_C void EVP_MD_CTX_destroy EVP_MD_CTX ctx  ) 
 
IMPORT_C void EVP_MD_CTX_init EVP_MD_CTX ctx  ) 
 
IMPORT_C const EVP_MD* EVP_md_null void   ) 
 
IMPORT_C int EVP_OpenFinal EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C int EVP_OpenInit EVP_CIPHER_CTX ctx,
const EVP_CIPHER type,
const unsigned char *  ek,
int  ekl,
const unsigned char *  iv,
EVP_PKEY priv
 
IMPORT_C int EVP_PBE_alg_add int  nid,
const EVP_CIPHER cipher,
const EVP_MD md,
EVP_PBE_KEYGEN keygen
 
IMPORT_C int EVP_PBE_CipherInit ASN1_OBJECT pbe_obj,
const char *  pass,
int  passlen,
ASN1_TYPE param,
EVP_CIPHER_CTX ctx,
int  en_de
 
IMPORT_C void EVP_PBE_cleanup void   ) 
 
IMPORT_C int EVP_PKEY_assign EVP_PKEY pkey,
int  type,
char *  key
 
IMPORT_C int EVP_PKEY_bits EVP_PKEY pkey  ) 
 
IMPORT_C int EVP_PKEY_cmp const EVP_PKEY a,
const EVP_PKEY b
 
IMPORT_C int EVP_PKEY_cmp_parameters const EVP_PKEY a,
const EVP_PKEY b
 
IMPORT_C int EVP_PKEY_copy_parameters EVP_PKEY to,
const EVP_PKEY from
 
IMPORT_C int EVP_PKEY_decrypt unsigned char *  dec_key,
const unsigned char *  enc_key,
int  enc_key_len,
EVP_PKEY private_key
 
IMPORT_C int EVP_PKEY_encrypt unsigned char *  enc_key,
const unsigned char *  key,
int  key_len,
EVP_PKEY pub_key
 
IMPORT_C void EVP_PKEY_free EVP_PKEY pkey  ) 
 
IMPORT_C struct dh_st* EVP_PKEY_get1_DH EVP_PKEY pkey  ) 
 
IMPORT_C struct dsa_st* EVP_PKEY_get1_DSA EVP_PKEY pkey  ) 
 
IMPORT_C struct rsa_st* EVP_PKEY_get1_RSA EVP_PKEY pkey  ) 
 
IMPORT_C int EVP_PKEY_missing_parameters const EVP_PKEY pkey  ) 
 
IMPORT_C EVP_PKEY* EVP_PKEY_new void   ) 
 
IMPORT_C int EVP_PKEY_save_parameters EVP_PKEY pkey,
int  mode
 
IMPORT_C int EVP_PKEY_set1_DH EVP_PKEY pkey,
struct dh_st key
 
IMPORT_C int EVP_PKEY_set1_DSA EVP_PKEY pkey,
struct dsa_st key
 
IMPORT_C int EVP_PKEY_set1_RSA EVP_PKEY pkey,
struct rsa_st key
 
IMPORT_C int EVP_PKEY_size EVP_PKEY pkey  ) 
 
IMPORT_C int EVP_PKEY_type int  type  ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_40_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_64_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_cbc void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_cfb64 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_ecb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc2_ofb void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc4 void   ) 
 
IMPORT_C const EVP_CIPHER* EVP_rc4_40 void   ) 
 
IMPORT_C int EVP_read_pw_string char *  buf,
int  length,
const char *  prompt,
int  verify
 
IMPORT_C int EVP_SealFinal EVP_CIPHER_CTX ctx,
unsigned char *  out,
int *  outl
 
IMPORT_C int EVP_SealInit EVP_CIPHER_CTX ctx,
const EVP_CIPHER type,
unsigned char **  ek,
int *  ekl,
unsigned char *  iv,
EVP_PKEY **  pubk,
int  npubk
 
IMPORT_C void EVP_set_pw_prompt const char *  prompt  ) 
 
IMPORT_C const EVP_MD* EVP_sha void   ) 
 
IMPORT_C const EVP_MD* EVP_sha1 void   ) 
 
IMPORT_C int EVP_SignFinal EVP_MD_CTX ctx,
unsigned char *  md,
unsigned int *  s,
EVP_PKEY pkey
 
IMPORT_C int EVP_VerifyFinal EVP_MD_CTX ctx,
const unsigned char *  sigbuf,
unsigned int  siglen,
EVP_PKEY pkey
 
IMPORT_C int i2d_PrivateKey EVP_PKEY a,
unsigned char **  pp
 
IMPORT_C int i2d_PublicKey EVP_PKEY a,
unsigned char **  pp
 
IMPORT_C void OPENSSL_add_all_algorithms_conf void   ) 
 
IMPORT_C void OPENSSL_add_all_algorithms_noconf void   ) 
 
IMPORT_C void OpenSSL_add_all_ciphers void   ) 
 
IMPORT_C void OpenSSL_add_all_digests void   ) 
 
IMPORT_C void PKCS5_PBE_add void   ) 
 
IMPORT_C int PKCS5_PBE_keyivgen EVP_CIPHER_CTX ctx,
const char *  pass,
int  passlen,
ASN1_TYPE param,
const EVP_CIPHER cipher,
const EVP_MD md,
int  en_de
 
IMPORT_C int PKCS5_PBKDF2_HMAC_SHA1 const char *  pass,
int  passlen,
const unsigned char *  salt,
int  saltlen,
int  iter,
int  keylen,
unsigned char *  out
 
IMPORT_C int PKCS5_v2_PBE_keyivgen EVP_CIPHER_CTX ctx,
const char *  pass,
int  passlen,
ASN1_TYPE param,
const EVP_CIPHER cipher,
const EVP_MD md,
int  en_de
 

Copyright © Nokia Corporation 2001-2008
Back to top