Home
last modified time | relevance | path

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

12

/external/boringssl/src/include/openssl/
Dcipher.h119 OPENSSL_EXPORT void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx);
123 OPENSSL_EXPORT EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
127 OPENSSL_EXPORT int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx);
131 OPENSSL_EXPORT void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
135 OPENSSL_EXPORT int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out,
136 const EVP_CIPHER_CTX *in);
148 OPENSSL_EXPORT int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,
154 OPENSSL_EXPORT int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,
159 OPENSSL_EXPORT int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,
170 OPENSSL_EXPORT int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out,
[all …]
/external/boringssl/src/crypto/fipsmodule/cipher/
Dcipher.c70 void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) { in EVP_CIPHER_CTX_init()
71 OPENSSL_memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_init()
74 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) { in EVP_CIPHER_CTX_new()
75 EVP_CIPHER_CTX *ctx = OPENSSL_malloc(sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_new()
82 int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) { in EVP_CIPHER_CTX_cleanup()
91 OPENSSL_memset(c, 0, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_cleanup()
95 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) { in EVP_CIPHER_CTX_free()
102 int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) { in EVP_CIPHER_CTX_copy()
109 OPENSSL_memcpy(out, in, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_copy()
122 if (!in->cipher->ctrl((EVP_CIPHER_CTX *)in, EVP_CTRL_COPY, 0, out)) { in EVP_CIPHER_CTX_copy()
[all …]
De_des.c72 static int des_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_init_key()
81 static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in des_cbc_cipher()
103 static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in des_ecb_cipher()
137 static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_ede3_init_key()
149 static int des_ede3_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in des_ede3_cbc_cipher()
171 static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_ede_init_key()
195 static int des_ede_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in des_ede_ecb_cipher()
De_aes.c223 static int aes_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in aes_init_key()
285 static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_cbc_cipher()
300 static int aes_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ecb_cipher()
317 static int aes_ctr_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ctr_cipher()
331 static int aes_ofb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ofb_cipher()
398 static int aes_gcm_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in aes_gcm_init_key()
429 static void aes_gcm_cleanup(EVP_CIPHER_CTX *c) { in aes_gcm_cleanup()
453 static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) { in aes_gcm_ctrl()
545 EVP_CIPHER_CTX *out = ptr; in aes_gcm_ctrl()
564 static int aes_gcm_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_gcm_cipher()
[all …]
/external/openssh/
Dcipher-3des1.c47 EVP_CIPHER_CTX k1, k2, k3;
51 int ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int);
54 ssh1_3des_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh1_3des_init()
92 ssh1_3des_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, size_t len) in ssh1_3des_cbc()
106 ssh1_3des_cleanup(EVP_CIPHER_CTX *ctx) in ssh1_3des_cleanup()
122 ssh1_3des_iv(EVP_CIPHER_CTX *evp, int doset, u_char *iv, int len) in ssh1_3des_iv()
Dcipher-ctr.c59 ssh_aes_ctr(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, in ssh_aes_ctr()
83 ssh_aes_ctr_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh_aes_ctr_init()
101 ssh_aes_ctr_cleanup(EVP_CIPHER_CTX *ctx) in ssh_aes_ctr_cleanup()
114 ssh_aes_ctr_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, size_t len) in ssh_aes_ctr_iv()
Dcipher-bf1.c62 static void bf_ssh1_init (EVP_CIPHER_CTX * ctx, const unsigned char *key, in bf_ssh1_init()
74 static int (*orig_bf)(EVP_CIPHER_CTX *, u_char *,
78 bf_ssh1_cipher(EVP_CIPHER_CTX *ctx, u_char *out, const u_char *in, in bf_ssh1_cipher()
Dcipher-aes.c50 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()
Dcipher.c57 extern int ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int);
63 EVP_CIPHER_CTX *evp;
/external/boringssl/src/crypto/pkcs8/
Dinternal.h97 int (*decrypt_init)(const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx,
104 int PKCS5_pbe2_decrypt_init(const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx,
110 int PKCS5_pbe2_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx,
Dpkcs8.c230 EVP_CIPHER_CTX *ctx, unsigned iterations, in pkcs12_pbe_cipher_init()
254 EVP_CIPHER_CTX *ctx, const char *pass, in pkcs12_pbe_decrypt_init()
326 static int pkcs12_pbe_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx, int alg, in pkcs12_pbe_encrypt_init()
358 EVP_CIPHER_CTX ctx; in pkcs8_pbe_decrypt()
447 EVP_CIPHER_CTX ctx; in PKCS8_marshal_encrypted_private_key()
Dp5_pbev2.c142 static int pkcs5_pbe2_cipher_init(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in pkcs5_pbe2_cipher_init()
160 int PKCS5_pbe2_encrypt_init(CBB *out, EVP_CIPHER_CTX *ctx, in PKCS5_pbe2_encrypt_init()
209 int PKCS5_pbe2_decrypt_init(const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx, in PKCS5_pbe2_decrypt_init()
/external/boringssl/src/crypto/cipher_extra/
De_null.c66 static int null_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in null_init_key()
71 static int null_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in null_cipher()
De_rc4.c65 static int rc4_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in rc4_init_key()
73 static int rc4_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in rc4_cipher()
De_rc2.c369 static int rc2_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in rc2_init_key()
377 static int rc2_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in rc2_cbc_cipher()
394 static int rc2_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) { in rc2_ctrl()
/external/boringssl/src/decrepit/xts/
Dxts.c178 static int aes_xts_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in aes_xts_init_key()
209 static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in aes_xts_cipher()
223 static int aes_xts_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) { in aes_xts_ctrl()
226 EVP_CIPHER_CTX *out = ptr; in aes_xts_ctrl()
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeRef.java83 static final class EVP_CIPHER_CTX extends NativeRef { class in NativeRef
84 EVP_CIPHER_CTX(long nativePointer) { in EVP_CIPHER_CTX() method in NativeRef.EVP_CIPHER_CTX
DNativeCrypto.java257 static native void EVP_CipherInit_ex(NativeRef.EVP_CIPHER_CTX ctx, long evpCipher, byte[] key, in EVP_CipherInit_ex()
260 static native int EVP_CipherUpdate(NativeRef.EVP_CIPHER_CTX ctx, byte[] out, int outOffset, in EVP_CipherUpdate()
263 static native int EVP_CipherFinal_ex(NativeRef.EVP_CIPHER_CTX ctx, byte[] out, int outOffset) in EVP_CipherFinal_ex()
270 static native int EVP_CIPHER_CTX_block_size(NativeRef.EVP_CIPHER_CTX ctx); in EVP_CIPHER_CTX_block_size()
272 static native int get_EVP_CIPHER_CTX_buf_len(NativeRef.EVP_CIPHER_CTX ctx); in get_EVP_CIPHER_CTX_buf_len()
274 static native boolean get_EVP_CIPHER_CTX_final_used(NativeRef.EVP_CIPHER_CTX ctx); in get_EVP_CIPHER_CTX_final_used()
277 NativeRef.EVP_CIPHER_CTX ctx, boolean enablePadding); in EVP_CIPHER_CTX_set_padding()
279 static native void EVP_CIPHER_CTX_set_key_length(NativeRef.EVP_CIPHER_CTX ctx, int keyBitSize); in EVP_CIPHER_CTX_set_key_length()
DOpenSSLCipher.java46 import org.conscrypt.NativeRef.EVP_CIPHER_CTX;
456 private final EVP_CIPHER_CTX cipherCtx = new EVP_CIPHER_CTX(
/external/tcpdump/
Dprint-esp.c128 static EVP_CIPHER_CTX *
131 EVP_CIPHER_CTX *ctx; in EVP_CIPHER_CTX_new()
141 EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) in EVP_CIPHER_CTX_free()
160 EVP_CIPHER_CTX *ctx; in esp_print_decrypt_buffer_by_ikev2()
608 EVP_CIPHER_CTX *ctx; in esp_print()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c192 EVP_CIPHER_CTX *ctx; in rc4_skip()
276 EVP_CIPHER_CTX *ctx; in aes_encrypt_init()
300 EVP_CIPHER_CTX *c = ctx; in aes_encrypt()
311 EVP_CIPHER_CTX *c = ctx; in aes_encrypt_deinit()
328 EVP_CIPHER_CTX *ctx; in aes_decrypt_init()
352 EVP_CIPHER_CTX *c = ctx; in aes_decrypt()
363 EVP_CIPHER_CTX *c = ctx; in aes_decrypt_deinit()
417 EVP_CIPHER_CTX *ctx; in aes_128_cbc_encrypt()
444 EVP_CIPHER_CTX *ctx; in aes_128_cbc_decrypt()
509 EVP_CIPHER_CTX *enc;
[all …]
/external/openssh/openbsd-compat/
Dopenssl-compat.h52 void ssh_aes_ctr_iv(EVP_CIPHER_CTX *, int, u_char *, size_t);
/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py671 EVP_CIPHER_CTX = evp_cipher_ctx_st variable
678 ('init', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(c_ubyte), POINTER(c_ubyte), c_int)),
679 …('do_cipher', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(c_ubyte), POINTER(c_ubyte), c_uint…
680 ('cleanup', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX))),
682 ('set_asn1_parameters', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(ASN1_TYPE))),
683 ('get_asn1_parameters', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), POINTER(ASN1_TYPE))),
684 ('ctrl', CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), c_int, c_int, c_void_p)),
730 EVP_PBE_KEYGEN = CFUNCTYPE(c_int, POINTER(EVP_CIPHER_CTX), STRING, c_int, POINTER(ASN1_TYPE), POINT…
868 ('cipher', EVP_CIPHER_CTX),
1371 ('enc_read_ctx', POINTER(EVP_CIPHER_CTX)),
[all …]
/external/boringssl/src/crypto/cmac/
Dcmac.c62 EVP_CIPHER_CTX cipher_ctx;
/external/boringssl/src/crypto/pem/
Dpem_lib.c258 EVP_CIPHER_CTX ctx; in PEM_ASN1_write_bio()
358 EVP_CIPHER_CTX ctx; in PEM_do_header()

12