Home
last modified time | relevance | path

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

12

/external/boringssl/src/include/openssl/
Dcipher.h118 OPENSSL_EXPORT void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx);
122 OPENSSL_EXPORT EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
126 OPENSSL_EXPORT int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *ctx);
130 OPENSSL_EXPORT void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
134 OPENSSL_EXPORT int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out,
135 const EVP_CIPHER_CTX *in);
147 OPENSSL_EXPORT int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,
153 OPENSSL_EXPORT int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,
158 OPENSSL_EXPORT int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,
169 OPENSSL_EXPORT int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, uint8_t *out,
[all …]
Dbase.h214 typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; typedef
/external/boringssl/src/crypto/cipher/
Dcipher.c90 void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) { in EVP_CIPHER_CTX_init()
91 memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_init()
94 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) { in EVP_CIPHER_CTX_new()
95 EVP_CIPHER_CTX *ctx = OPENSSL_malloc(sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_new()
102 int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) { in EVP_CIPHER_CTX_cleanup()
111 memset(c, 0, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_cleanup()
115 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) { in EVP_CIPHER_CTX_free()
122 int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) { in EVP_CIPHER_CTX_copy()
129 memcpy(out, in, sizeof(EVP_CIPHER_CTX)); in EVP_CIPHER_CTX_copy()
141 return in->cipher->ctrl((EVP_CIPHER_CTX *)in, EVP_CTRL_COPY, 0, out); in EVP_CIPHER_CTX_copy()
[all …]
De_des.c71 static int des_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_init_key()
80 static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in des_cbc_cipher()
99 static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in des_ecb_cipher()
132 static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_ede3_init_key()
144 static int des_ede3_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in des_ede3_cbc_cipher()
163 static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in des_ede_init_key()
184 static int des_ede_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, in des_ede_ecb_cipher()
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_aes.c290 static int aes_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in aes_init_key()
353 static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_cbc_cipher()
368 static int aes_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ecb_cipher()
385 static int aes_ctr_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ctr_cipher()
401 static int aes_ofb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_ofb_cipher()
469 static int aes_gcm_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in aes_gcm_init_key()
500 static void aes_gcm_cleanup(EVP_CIPHER_CTX *c) { in aes_gcm_cleanup()
524 static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) { in aes_gcm_ctrl()
616 EVP_CIPHER_CTX *out = ptr; in aes_gcm_ctrl()
635 static int aes_gcm_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in aes_gcm_cipher()
[all …]
De_rc2.c366 static int rc2_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, in rc2_init_key()
374 static int rc2_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, in rc2_cbc_cipher()
391 static int rc2_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) { in rc2_ctrl()
De_ssl3.c31 EVP_CIPHER_CTX cipher_ctx;
De_tls.c33 EVP_CIPHER_CTX cipher_ctx;
/external/conscrypt/src/main/java/org/conscrypt/
DNativeRef.java93 public static class EVP_CIPHER_CTX extends NativeRef { class in NativeRef
94 public EVP_CIPHER_CTX(long ctx) { in EVP_CIPHER_CTX() method in NativeRef.EVP_CIPHER_CTX
DNativeCrypto.java282 public static native void EVP_CipherInit_ex(NativeRef.EVP_CIPHER_CTX ctx, long evpCipher, in EVP_CipherInit_ex()
285 public static native int EVP_CipherUpdate(NativeRef.EVP_CIPHER_CTX ctx, byte[] out, in EVP_CipherUpdate()
288 public static native int EVP_CipherFinal_ex(NativeRef.EVP_CIPHER_CTX ctx, byte[] out, in EVP_CipherFinal_ex()
295 public static native int EVP_CIPHER_CTX_block_size(NativeRef.EVP_CIPHER_CTX ctx); in EVP_CIPHER_CTX_block_size()
297 public static native int get_EVP_CIPHER_CTX_buf_len(NativeRef.EVP_CIPHER_CTX ctx); in get_EVP_CIPHER_CTX_buf_len()
299 public static native boolean get_EVP_CIPHER_CTX_final_used(NativeRef.EVP_CIPHER_CTX ctx); in get_EVP_CIPHER_CTX_final_used()
301 public static native void EVP_CIPHER_CTX_set_padding(NativeRef.EVP_CIPHER_CTX ctx, in EVP_CIPHER_CTX_set_padding()
304 public static native void EVP_CIPHER_CTX_set_key_length(NativeRef.EVP_CIPHER_CTX ctx, in EVP_CIPHER_CTX_set_key_length()
DOpenSSLCipher.java51 import org.conscrypt.NativeRef.EVP_CIPHER_CTX;
455 private final EVP_CIPHER_CTX cipherCtx = new EVP_CIPHER_CTX(
/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/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c103 static int param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) in param_to_asn1()
122 EVP_CIPHER_CTX ctx; in PKCS5_pbe2_set_iv()
306 static int PKCS5_v2_PBKDF2_keyivgen(EVP_CIPHER_CTX *ctx, in PKCS5_v2_PBKDF2_keyivgen()
391 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw, in PKCS5_v2_PBE_keyivgen()
Dinternal.h74 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw,
Dpkcs8.c218 static int pkcs12_pbe_keyivgen(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw, in pkcs12_pbe_keyivgen()
268 typedef int (*keygen_func)(EVP_CIPHER_CTX *ctx, const uint8_t *pass_raw,
357 EVP_CIPHER_CTX *ctx, int is_encrypt) { in pbe_cipher_init()
410 EVP_CIPHER_CTX ctx; in pbe_crypt()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c180 EVP_CIPHER_CTX *ctx; in rc4_skip()
256 EVP_CIPHER_CTX *ctx; in aes_encrypt_init()
280 EVP_CIPHER_CTX *c = ctx; in aes_encrypt()
291 EVP_CIPHER_CTX *c = ctx; in aes_encrypt_deinit()
308 EVP_CIPHER_CTX *ctx; in aes_decrypt_init()
332 EVP_CIPHER_CTX *c = ctx; in aes_decrypt()
343 EVP_CIPHER_CTX *c = ctx; in aes_decrypt_deinit()
393 EVP_CIPHER_CTX *ctx; in aes_128_cbc_encrypt()
420 EVP_CIPHER_CTX *ctx; in aes_128_cbc_decrypt()
485 EVP_CIPHER_CTX *enc;
[all …]
/external/boringssl/src/crypto/test/
Dscoped_types.h124 using ScopedEVP_CIPHER_CTX = ScopedOpenSSLContext<EVP_CIPHER_CTX, int,
/external/boringssl/src/crypto/cmac/
Dcmac.c60 EVP_CIPHER_CTX cipher_ctx;
/external/tcpdump/
Dprint-esp.c134 EVP_CIPHER_CTX ctx; in esp_print_decrypt_buffer_by_ikev2()
578 EVP_CIPHER_CTX ctx; in esp_print()
/external/boringssl/src/crypto/pem/
Dpem_lib.c288 EVP_CIPHER_CTX ctx; in PEM_ASN1_write_bio()
394 EVP_CIPHER_CTX ctx; in PEM_do_header()
Dpem_info.c315 EVP_CIPHER_CTX ctx; in PEM_X509_INFO_write_bio()
/external/boringssl/src/ssl/
Ds3_lib.c444 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx, in SSL_CTX_set_tlsext_ticket_key_cb()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp237 void operator()(EVP_CIPHER_CTX* p) const { in operator ()()
241 typedef UniquePtr<EVP_CIPHER_CTX, EVP_CIPHER_CTX_Delete> Unique_EVP_CIPHER_CTX;
4653 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4704 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4750 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4810 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4824 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4838 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4853 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
4868 EVP_CIPHER_CTX* ctx = fromContextObject<EVP_CIPHER_CTX>(env, ctxRef);
[all …]

12