Home
last modified time | relevance | path

Searched refs:PROV_CIPHER_CTX (Results 1 – 25 of 72) sorted by relevance

123

/third_party/openssl/providers/implementations/ciphers/
Dciphercommon_hw.c16 int ossl_cipher_hw_generic_cbc(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cbc()
29 int ossl_cipher_hw_generic_ecb(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ecb()
48 int ossl_cipher_hw_generic_ofb128(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ofb128()
59 int ossl_cipher_hw_generic_cfb128(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb128()
71 int ossl_cipher_hw_generic_cfb8(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb8()
83 int ossl_cipher_hw_generic_cfb1(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_cfb1()
111 int ossl_cipher_hw_generic_ctr(PROV_CIPHER_CTX *dat, unsigned char *out, in ossl_cipher_hw_generic_ctr()
132 int ossl_cipher_hw_chunked_cbc(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_chunked_cbc()
146 int ossl_cipher_hw_chunked_cfb8(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_chunked_cfb8()
164 int ossl_cipher_hw_chunked_cfb128(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_chunked_cfb128()
[all …]
Dciphercommon.c115 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
176 void ossl_cipher_generic_reset_ctx(PROV_CIPHER_CTX *ctx) in ossl_cipher_generic_reset_ctx()
185 static int cipher_generic_init_internal(PROV_CIPHER_CTX *ctx, in cipher_generic_init_internal()
228 return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen, in ossl_cipher_generic_einit()
236 return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen, in ossl_cipher_generic_dinit()
248 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_update()
387 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_final()
457 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_stream_update()
524 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_cipher()
545 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_get_ctx_params()
[all …]
Dcipher_chacha20_poly1305.h19 PROV_CIPHER_CTX base; /* must be first */
35 int (*aead_cipher)(PROV_CIPHER_CTX *dat, unsigned char *out, size_t *outl,
37 int (*initiv)(PROV_CIPHER_CTX *ctx);
38 int (*tls_init)(PROV_CIPHER_CTX *ctx, unsigned char *aad, size_t alen);
39 int (*tls_iv_set_fixed)(PROV_CIPHER_CTX *ctx, unsigned char *fixed,
Dcipher_des_hw.c19 static int cipher_hw_des_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_des_initkey()
41 static void cipher_hw_des_copyctx(PROV_CIPHER_CTX *dst, in cipher_hw_des_copyctx()
42 const PROV_CIPHER_CTX *src) in cipher_hw_des_copyctx()
51 static int cipher_hw_des_ecb_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_ecb_cipher()
65 static int cipher_hw_des_cbc_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cbc_cipher()
89 static int cipher_hw_des_ofb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_ofb64_cipher()
108 static int cipher_hw_des_cfb64_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cfb64_cipher()
134 static int cipher_hw_des_cfb1_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cfb1_cipher()
162 static int cipher_hw_des_cfb8_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cfb8_cipher()
Dcipher_aes_wrp.c40 PROV_CIPHER_CTX base;
54 PROV_CIPHER_CTX *ctx; in aes_wrap_newctx()
60 ctx = (PROV_CIPHER_CTX *)wctx; in aes_wrap_newctx()
73 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_wrap_freectx()
81 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_init()
145 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_cipher_internal()
242 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_set_ctx_params()
Dcipher_tdes.h19 PROV_CIPHER_CTX base; /* Must be first */
93 int ossl_cipher_hw_tdes_ede3_initkey(PROV_CIPHER_CTX *ctx,
95 void ossl_cipher_hw_tdes_copyctx(PROV_CIPHER_CTX *dst,
96 const PROV_CIPHER_CTX *src);
97 int ossl_cipher_hw_tdes_cbc(PROV_CIPHER_CTX *ctx, unsigned char *out,
99 int ossl_cipher_hw_tdes_ecb(PROV_CIPHER_CTX *ctx, unsigned char *out,
Dcipher_tdes_common.c60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
117 static int tdes_generatekey(PROV_CIPHER_CTX *ctx, void *ptr)
137 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_tdes_get_ctx_params()
Dcipher_chacha20_poly1305.c68 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
237 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
257 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_dinit()
272 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_cipher()
298 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_final()
Dcipher_tdes_hw.c23 int ossl_cipher_hw_tdes_ede3_initkey(PROV_CIPHER_CTX *ctx, in ossl_cipher_hw_tdes_ede3_initkey()
48 void ossl_cipher_hw_tdes_copyctx(PROV_CIPHER_CTX *dst, in ossl_cipher_hw_tdes_copyctx()
49 const PROV_CIPHER_CTX *src) in ossl_cipher_hw_tdes_copyctx()
58 int ossl_cipher_hw_tdes_cbc(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_cbc()
81 int ossl_cipher_hw_tdes_ecb(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_ecb()
Dcipher_cts.c100 static size_t cts128_cs1_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs1_encrypt()
134 static size_t cts128_cs1_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs1_decrypt()
196 static size_t cts128_cs3_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs3_encrypt()
236 static size_t cts128_cs3_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs3_decrypt()
302 static size_t cts128_cs2_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs2_encrypt()
315 static size_t cts128_cs2_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs2_decrypt()
332 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_cbc_cts_block_update()
Dcipher_desx_hw.c27 static int cipher_hw_desx_cbc_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_desx_cbc_initkey()
40 static void cipher_hw_desx_copyctx(PROV_CIPHER_CTX *dst, in cipher_hw_desx_copyctx()
41 const PROV_CIPHER_CTX *src) in cipher_hw_desx_copyctx()
50 static int cipher_hw_desx_cbc(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_desx_cbc()
Dcipher_aes_xts_hw.c38 static int cipher_hw_aes_xts_generic_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_generic_initkey()
89 static void cipher_hw_aes_xts_copyctx(PROV_CIPHER_CTX *dst, in cipher_hw_aes_xts_copyctx()
90 const PROV_CIPHER_CTX *src) in cipher_hw_aes_xts_copyctx()
102 static int cipher_hw_aesni_xts_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aesni_xts_initkey()
125 static int cipher_hw_aes_xts_t4_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_t4_initkey()
Dcipher_des.c69 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx()
77 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init()
119 static int des_generatekey(PROV_CIPHER_CTX *ctx, void *ptr) in des_generatekey()
137 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
Dcipher_rc4_hmac_md5.h15 PROV_CIPHER_CTX base; /* Must be first */
27 int (*tls_init)(PROV_CIPHER_CTX *ctx, unsigned char *aad, size_t aad_len);
28 void (*init_mackey)(PROV_CIPHER_CTX *ctx, const unsigned char *key,
Dcipher_chacha20.c62 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
157 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
176 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_dinit()
Dcipher_tdes_default_hw.c22 static int ossl_cipher_hw_tdes_ede2_initkey(PROV_CIPHER_CTX *ctx, in ossl_cipher_hw_tdes_ede2_initkey()
48 static int ossl_cipher_hw_tdes_ofb(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_ofb()
69 static int ossl_cipher_hw_tdes_cfb(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_cfb()
97 static int ossl_cipher_hw_tdes_cfb1(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_cfb1()
118 static int ossl_cipher_hw_tdes_cfb8(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_cfb8()
Dcipher_aes_hw_s390x.inc33 static int s390x_aes_ecb_initkey(PROV_CIPHER_CTX *dat,
43 static int s390x_aes_ecb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
54 static int s390x_aes_ofb128_initkey(PROV_CIPHER_CTX *dat,
65 static int s390x_aes_ofb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
109 static int s390x_aes_cfb128_initkey(PROV_CIPHER_CTX *dat,
121 static int s390x_aes_cfb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
171 static int s390x_aes_cfb8_initkey(PROV_CIPHER_CTX *dat,
182 static int s390x_aes_cfb8_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
Dcipher_tdes_wrap.c35 static int des_ede3_unwrap(PROV_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_unwrap()
81 static int des_ede3_wrap(PROV_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_wrap()
111 static int tdes_wrap_cipher_internal(PROV_CIPHER_CTX *ctx, unsigned char *out, in tdes_wrap_cipher_internal()
131 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_wrap_cipher()
Dcipher_aes_cts.inc48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
Dcipher_camellia_cts.inc48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
Dcipher_aes_ocb_hw.c32 static int cipher_hw_aes_ocb_generic_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_generic_initkey()
64 static int cipher_hw_aes_ocb_aesni_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_aesni_initkey()
87 static int cipher_hw_aes_ocb_t4_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_t4_initkey()
Dcipher_chacha20_hw.c14 static int chacha20_initkey(PROV_CIPHER_CTX *bctx, const uint8_t *key, in chacha20_initkey()
28 static int chacha20_initiv(PROV_CIPHER_CTX *bctx) in chacha20_initiv()
41 static int chacha20_cipher(PROV_CIPHER_CTX *bctx, unsigned char *out, in chacha20_cipher()
Dcipher_chacha20.h14 PROV_CIPHER_CTX base; /* must be first */
26 int (*initiv)(PROV_CIPHER_CTX *ctx);
Dcipher_rc4_hmac_md5_hw.c35 static int cipher_hw_rc4_hmac_md5_initkey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_initkey()
49 static int cipher_hw_rc4_hmac_md5_cipher(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_cipher()
165 static int cipher_hw_rc4_hmac_md5_tls_init(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_tls_init()
190 static void cipher_hw_rc4_hmac_md5_init_mackey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_init_mackey()
/third_party/openssl/providers/implementations/include/prov/
Dciphercommon.h29 typedef struct prov_cipher_ctx_st PROV_CIPHER_CTX; typedef
31 typedef int (PROV_CIPHER_HW_FN)(PROV_CIPHER_CTX *dat, unsigned char *out,
97 int (*init)(PROV_CIPHER_CTX *dat, const uint8_t *key, size_t keylen);
99 void (*copyctx)(PROV_CIPHER_CTX *dst, const PROV_CIPHER_CTX *src);
102 void ossl_cipher_generic_reset_ctx(PROV_CIPHER_CTX *ctx);
235 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
256 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
271 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
289 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
313 static void name(PROV_CIPHER_CTX *dst, const PROV_CIPHER_CTX *src) \
[all …]

123