/freebsd/crypto/openssl/crypto/evp/ |
H A D | cmeth_lib.c | 94 int (*init) (EVP_CIPHER_CTX *ctx, in EVP_CIPHER_meth_set_init() 107 int (*do_cipher) (EVP_CIPHER_CTX *ctx, in EVP_CIPHER_meth_set_do_cipher() 120 int (*cleanup) (EVP_CIPHER_CTX *)) in EVP_CIPHER_meth_set_cleanup() 130 int (*set_asn1_parameters) (EVP_CIPHER_CTX *, in EVP_CIPHER_meth_set_set_asn1_params() 141 int (*get_asn1_parameters) (EVP_CIPHER_CTX *, in EVP_CIPHER_meth_set_get_asn1_params() 152 int (*ctrl) (EVP_CIPHER_CTX *, int type, in EVP_CIPHER_meth_set_ctrl() 163 int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, in EVP_CIPHER_meth_get_init() 170 int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, in EVP_CIPHER_meth_get_do_cipher() 178 int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *) in EVP_CIPHER_meth_get_cleanup() 183 int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, in EVP_CIPHER_meth_get_set_asn1_params() [all …]
|
H A D | e_rc2.c | 27 static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 29 static int rc2_meth_to_magic(EVP_CIPHER_CTX *ctx); 31 static int rc2_set_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type); 32 static int rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type); 33 static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 92 static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in rc2_init_key() 100 static int rc2_meth_to_magic(EVP_CIPHER_CTX *e) in rc2_meth_to_magic() 130 static int rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in rc2_get_asn1_type_and_iv() 157 static int rc2_set_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in rc2_set_asn1_type_and_iv() 170 static int rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in rc2_ctrl()
|
H A D | evp_lib.c | 34 int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in EVP_CIPHER_param_to_asn1() 39 int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in EVP_CIPHER_asn1_to_param() 44 int EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *ctx, ASN1_TYPE *type) in EVP_CIPHER_get_asn1_iv() 65 int EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in EVP_CIPHER_set_asn1_iv() 80 int evp_cipher_param_to_asn1_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type, in evp_cipher_param_to_asn1_ex() 171 int evp_cipher_asn1_to_param_ex(EVP_CIPHER_CTX *c, ASN1_TYPE *type, in evp_cipher_asn1_to_param_ex() 242 int evp_cipher_get_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type, in evp_cipher_get_asn1_aead_params() 263 int evp_cipher_set_asn1_aead_params(EVP_CIPHER_CTX *c, ASN1_TYPE *type, in evp_cipher_set_asn1_aead_params() 393 int EVP_CIPHER_CTX_get_block_size(const EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_get_block_size() 403 int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in EVP_Cipher() [all …]
|
H A D | e_camellia.c | 28 static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 51 static int cmll_t4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in cmll_t4_init_key() 115 static int cmll_t4_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 119 static int cmll_t4_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 123 static int cmll_t4_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 127 static int cmll_t4_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 131 static int cmll_t4_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 135 static int cmll_t4_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 139 static int cmll_t4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 192 static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in camellia_init_key() [all …]
|
H A D | e_des.c | 51 static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 53 static int des_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 60 static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ecb_cipher() 70 static int des_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ofb_cipher() 93 static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_cbc_cipher() 119 static int des_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_cfb64_cipher() 148 static int des_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_cfb1_cipher() 177 static int des_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_cfb8_cipher() 209 static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in des_init_key() 231 static int des_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in des_ctrl()
|
H A D | e_des3.c | 54 static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 57 static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 60 static int des3_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 69 static int des_ede_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede_ecb_cipher() 80 static int des_ede_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede_ofb_cipher() 107 static int des_ede_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede_cbc_cipher() 135 static int des_ede_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede_cfb64_cipher() 164 static int des_ede3_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_cfb1_cipher() 185 static int des_ede3_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_cfb8_cipher() 224 static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in des_ede_init_key() [all …]
|
H A D | evp_enc.c | 30 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_reset() 69 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) in EVP_CIPHER_CTX_new() 71 return OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_new() 74 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_free() 82 static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, in evp_cipher_init_internal() 434 int EVP_CipherInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in EVP_CipherInit_ex2() 441 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in EVP_CipherInit() 449 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in EVP_CipherInit_ex() 456 int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, in EVP_CipherUpdate() 465 int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_CipherFinal_ex() [all …]
|
H A D | e_null.c | 16 static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 18 static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 39 static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in null_init_key() 45 static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in null_cipher()
|
H A D | e_aes.c | 144 static int aesni_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in aesni_init_key() 180 static int aesni_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aesni_cbc_cipher() 189 static int aesni_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aesni_ecb_cipher() 204 static int aesni_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 208 static int aesni_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 212 static int aesni_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 216 static int aesni_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 220 static int aesni_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 223 static int aesni_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in aesni_gcm_init_key() 257 static int aesni_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, [all …]
|
H A D | e_rc4.c | 33 static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 35 static int rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 77 static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in rc4_init_key() 88 static int rc4_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in rc4_cipher()
|
H A D | e_rc5.c | 27 static int r_32_12_16_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 29 static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr); 43 static int rc5_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in rc5_ctrl() 72 static int r_32_12_16_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in r_32_12_16_init_key()
|
H A D | e_xcbc_d.c | 27 static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 29 static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 60 static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in desx_cbc_init_key() 72 static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in desx_cbc_cipher()
|
H A D | e_idea.c | 33 static int idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 41 static int idea_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in idea_ecb_cipher() 57 static int idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in BLOCK_CIPHER_func_cbc()
|
H A D | e_aria.c | 61 static int aria_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in aria_init_key() 175 static int aria_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aria_ctr_cipher() 215 static int aria_gcm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in aria_gcm_init_key() 256 static int aria_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in aria_gcm_ctrl() 377 EVP_CIPHER_CTX *out = ptr; in aria_gcm_ctrl() 402 static int aria_gcm_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aria_gcm_tls_cipher() 458 static int aria_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aria_gcm_cipher() 502 static int aria_gcm_cleanup(EVP_CIPHER_CTX *ctx) in aria_gcm_cleanup() 512 static int aria_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in aria_ccm_init_key() 541 static int aria_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in aria_ccm_ctrl() [all …]
|
H A D | e_seed.c | 25 static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 36 static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in seed_init_key()
|
H A D | e_bf.c | 25 static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 38 static int bf_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in bf_init_key()
|
H A D | e_cast.c | 26 static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 40 static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in cast_init_key()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | EVP_CIPHER_CTX_get_original_iv.pod | 7 EVP_CIPHER_CTX_iv_noconst - Routines to inspect EVP_CIPHER_CTX IV data 13 int EVP_CIPHER_CTX_get_original_iv(EVP_CIPHER_CTX *ctx, void *buf, size_t len); 14 int EVP_CIPHER_CTX_get_updated_iv(EVP_CIPHER_CTX *ctx, void *buf, size_t len); 20 const unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx); 21 const unsigned char *EVP_CIPHER_CTX_original_iv(const EVP_CIPHER_CTX *ctx); 22 unsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx); 27 initialization vector (IV) information from the B<EVP_CIPHER_CTX> into the 32 supplied when the B<EVP_CIPHER_CTX> was initialized, and 41 B<EVP_CIPHER_CTX>; EVP_CIPHER_CTX_original_iv() returns a pointer to the 42 beginning of the ("original") IV, as maintained by the B<EVP_CIPHER_CTX>, that [all …]
|
H A D | EVP_CIPHER_CTX_get_cipher_data.pod | 6 inspect and modify EVP_CIPHER_CTX objects 12 void *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx); 13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data); 18 data relevant to EVP_CIPHER_CTX. The contents of this data is specific to the 32 cipher data for the EVP_CIPHER_CTX. 35 cipher data for the EVP_CIPHER_CTX.
|
H A D | EVP_CIPHER_meth_new.pod | 32 int (*init)(EVP_CIPHER_CTX *ctx, 37 int (*do_cipher)(EVP_CIPHER_CTX *ctx, 42 int (*cleanup)(EVP_CIPHER_CTX *)); 44 int (*set_asn1_parameters)(EVP_CIPHER_CTX *, 47 int (*get_asn1_parameters)(EVP_CIPHER_CTX *, 50 int (*ctrl)(EVP_CIPHER_CTX *, int type, 53 int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, 57 int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, 61 int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *); 62 int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, [all …]
|
H A D | EVP_EncryptInit.pod | 109 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); 110 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx); 111 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx); 113 int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, 115 int EVP_EncryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, 118 int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, 120 int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); 122 int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, 124 int EVP_DecryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, 127 int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, [all …]
|
/freebsd/crypto/openssl/engines/ |
H A D | e_dasync.c | 134 static int dasync_aes128_cbc_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, 136 static int dasync_aes128_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 138 static int dasync_aes128_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 140 static int dasync_aes128_cbc_cleanup(EVP_CIPHER_CTX *ctx); 142 static int dasync_aes256_ctr_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, 144 static int dasync_aes256_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 146 static int dasync_aes256_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 148 static int dasync_aes256_ctr_cleanup(EVP_CIPHER_CTX *ctx); 150 static int dasync_aes128_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, 152 static int dasync_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ct [all...] |
H A D | e_ossltest.c | 253 static int ossltest_aes128_init_key(EVP_CIPHER_CTX *ctx, 256 static int ossltest_aes128_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 258 static int ossltest_aes128_gcm_init_key(EVP_CIPHER_CTX *ctx, 261 static int ossltest_aes128_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, 263 static int ossltest_aes128_gcm_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, 265 static int ossltest_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ctx, 269 static int ossltest_aes128_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, 273 static int ossltest_aes128_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, 690 static int ossltest_aes128_init_key(EVP_CIPHER_CTX *ctx, in ossltest_aes128_init_key() 697 static int ossltest_aes128_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in ossltest_aes128_cbc_cipher() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | evp.h | 247 int (*init) (EVP_CIPHER_CTX *ctx, 253 int (*do_cipher) (EVP_CIPHER_CTX *ctx, 259 int (*cleanup) (EVP_CIPHER_CTX *)); 262 int (*set_asn1_parameters) (EVP_CIPHER_CTX *, 266 int (*get_asn1_parameters) (EVP_CIPHER_CTX *, 270 int (*ctrl) (EVP_CIPHER_CTX *, int type, 273 (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, 278 (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, 283 (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *); 285 (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, [all …]
|
/freebsd/crypto/openssh/ |
H A D | cipher-aes.c | 50 ssh_rijndael_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh_rijndael_init() 71 ssh_rijndael_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, in ssh_rijndael_cbc() 117 ssh_rijndael_cleanup(EVP_CIPHER_CTX *ctx) in ssh_rijndael_cleanup() 130 ssh_rijndael_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, u_int len) in ssh_rijndael_iv()
|