Home
last modified time | relevance | path

Searched refs:EVP_CIPHER_CTX (Results 1 – 25 of 117) sorted by relevance

12345

/openssl/crypto/evp/
H A Dcmeth_lib.c94 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 De_rc2.c27 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 Devp_lib.c34 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()
403 int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in EVP_Cipher()
453 EVP_CIPHER *EVP_CIPHER_CTX_get1_cipher(EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_get1_cipher()
536 ((EVP_CIPHER_CTX *)ctx)->iv_len = len; in EVP_CIPHER_CTX_get_iv_length()
622 int EVP_CIPHER_CTX_get_num(const EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_get_num()
634 int EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num) in EVP_CIPHER_CTX_set_num()
674 ((EVP_CIPHER_CTX *)ctx)->key_len = (int)len; in EVP_CIPHER_CTX_get_key_length()
[all …]
H A De_camellia.c28 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,
220 static int camellia_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in camellia_cbc_cipher()
[all …]
H A De_des.c51 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()
178 static int des_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_cfb8_cipher()
210 static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in des_init_key()
232 static int des_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in des_ctrl()
H A De_null.c16 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 De_des3.c54 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()
279 static int des3_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) in des3_ctrl()
318 static int des_ede3_unwrap(EVP_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_unwrap()
[all …]
H A Devp_enc.c33 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) in OSSL_SAFE_MATH_SIGNED()
72 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) in EVP_CIPHER_CTX_new()
74 EVP_CIPHER_CTX *ctx; in EVP_CIPHER_CTX_new()
76 ctx = OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_new()
84 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_free()
92 static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, in evp_cipher_init_internal()
523 static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, in evp_EncryptDecryptUpdate()
1043 int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *ctx, int pad) in EVP_CIPHER_CTX_set_padding()
1395 EVP_CIPHER_CTX *EVP_CIPHER_CTX_dup(const EVP_CIPHER_CTX *in) in EVP_CIPHER_CTX_dup()
1397 EVP_CIPHER_CTX *out = EVP_CIPHER_CTX_new(); in EVP_CIPHER_CTX_dup()
[all …]
H A De_rc4.c33 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 De_rc5.c27 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 De_xcbc_d.c27 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 De_aes.c1023 static int s390x_aes_ecb_init_key(EVP_CIPHER_CTX *ctx, in s390x_aes_ecb_init_key()
1446 EVP_CIPHER_CTX *out; in s390x_aes_gcm_ctrl()
1770 static int s390x_aes_gcm_cleanup(EVP_CIPHER_CTX *c) in s390x_aes_gcm_cleanup()
2281 static int s390x_aes_ocb_cleanup(EVP_CIPHER_CTX *);
2649 static int aes_gcm_cleanup(EVP_CIPHER_CTX *c) in aes_gcm_cleanup()
2777 EVP_CIPHER_CTX *out = ptr; in aes_gcm_ctrl()
3210 EVP_CIPHER_CTX *out = ptr; in aes_xts_ctrl()
3476 EVP_CIPHER_CTX *out = ptr; in aes_ccm_ctrl()
3864 EVP_CIPHER_CTX *newc; in aes_ocb_ctrl()
3912 newc = (EVP_CIPHER_CTX *)ptr; in aes_ocb_ctrl()
[all …]
H A De_idea.c33 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 De_sm4.c56 static int sm4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, in sm4_init_key()
139 static int sm4_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in sm4_cbc_cipher()
156 static int sm4_cfb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in sm4_cfb_cipher()
169 static int sm4_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in sm4_ecb_cipher()
189 static int sm4_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in sm4_ofb_cipher()
201 static int sm4_ctr_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in sm4_ctr_cipher()
H A De_seed.c25 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 De_aria.c61 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()
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()
541 static int aria_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) in aria_ccm_ctrl()
626 EVP_CIPHER_CTX *out = ptr; in aria_ccm_ctrl()
641 static int aria_ccm_tls_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, in aria_ccm_tls_cipher()
[all …]
H A De_bf.c25 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 De_cast.c26 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()
/openssl/doc/man3/
H A DEVP_CIPHER_CTX_get_original_iv.pod7 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 DEVP_CIPHER_CTX_get_cipher_data.pod6 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 DEVP_CIPHER_meth_new.pod32 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 *,
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 *);
66 int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
147 The destination B<EVP_CIPHER_CTX> is passed to the control with the
[all …]
H A DEVP_EncryptInit.pod111 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
112 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx);
113 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
114 EVP_CIPHER_CTX *EVP_CIPHER_CTX_dup(const EVP_CIPHER_CTX *in);
115 int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
246 int EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx);
817 =head2 Gettable EVP_CIPHER_CTX parameters
886 =head2 Settable EVP_CIPHER_CTX parameters
1535 EVP_CIPHER_CTX *ctx;
1587 EVP_CIPHER_CTX *ctx;
[all …]
/openssl/include/openssl/
H A Devp.h613 int EVP_CIPHER_CTX_get_nid(const EVP_CIPHER_CTX *ctx);
635 int EVP_CIPHER_CTX_get_num(const EVP_CIPHER_CTX *ctx);
638 EVP_CIPHER_CTX *EVP_CIPHER_CTX_dup(const EVP_CIPHER_CTX *in);
639 int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
676 /*__owur*/ int EVP_Cipher(EVP_CIPHER_CTX *c,
754 /*__owur*/ int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,
771 /*__owur*/ int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,
789 /*__owur*/ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,
876 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
877 int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);
[all …]
/openssl/engines/
H A De_dasync.c134 static int dasync_aes128_cbc_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
140 static int dasync_aes128_cbc_cleanup(EVP_CIPHER_CTX *ctx);
144 static int dasync_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ctx,
148 static int dasync_aes128_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx,
152 static int dasync_aes128_cbc_hmac_sha1_cleanup(EVP_CIPHER_CTX *ctx);
669 static int dasync_cipher_init_key_helper(EVP_CIPHER_CTX *ctx, in dasync_cipher_init_key_helper()
742 static int dasync_cipher_cleanup_helper(EVP_CIPHER_CTX *ctx, in dasync_cipher_cleanup_helper()
776 static int dasync_aes128_cbc_cleanup(EVP_CIPHER_CTX *ctx) in dasync_aes128_cbc_cleanup()
792 static int dasync_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ctx, in dasync_aes128_cbc_hmac_sha1_init_key()
805 static int dasync_aes128_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, in dasync_aes128_cbc_hmac_sha1_cipher()
[all …]
H A De_ossltest.c254 static int ossltest_aes128_init_key(EVP_CIPHER_CTX *ctx,
259 static int ossltest_aes128_gcm_init_key(EVP_CIPHER_CTX *ctx,
264 static int ossltest_aes128_gcm_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
266 static int ossltest_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ctx,
270 static int ossltest_aes128_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx,
274 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()
724 static int ossltest_aes128_gcm_init_key(EVP_CIPHER_CTX *ctx, in ossltest_aes128_gcm_init_key()
755 static int ossltest_aes128_gcm_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, in ossltest_aes128_gcm_ctrl()
780 static int ossltest_aes128_cbc_hmac_sha1_init_key(EVP_CIPHER_CTX *ctx, in ossltest_aes128_cbc_hmac_sha1_init_key()
[all …]

Completed in 149 milliseconds

12345