Home
last modified time | relevance | path

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

1234

/openssl/providers/implementations/ciphers/
H A 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,
H A 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 …]
H A Dciphercommon.c115 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
180 void ossl_cipher_generic_reset_ctx(PROV_CIPHER_CTX *ctx) in ossl_cipher_generic_reset_ctx()
189 static int cipher_generic_init_internal(PROV_CIPHER_CTX *ctx, in cipher_generic_init_internal()
253 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_update()
397 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_final()
472 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_stream_update()
533 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_stream_final()
551 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_cipher()
577 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_get_ctx_params()
625 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_set_ctx_params()
[all …]
H A 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()
164 static int cipher_hw_aes_xts_rv64i_zknd_zkne_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_rv64i_zknd_zkne_initkey()
179 PROV_CIPHER_CTX *ctx, const unsigned char *key, size_t keylen) in cipher_hw_aes_xts_rv64i_zvbb_zvkg_zvkned_initkey()
200 static int cipher_hw_aes_xts_rv64i_zvkned_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_rv64i_zvkned_initkey()
250 static int cipher_hw_aes_xts_rv32i_zknd_zkne_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_rv32i_zknd_zkne_initkey()
262 static int cipher_hw_aes_xts_rv32i_zbkb_zknd_zkne_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_aes_xts_rv32i_zbkb_zknd_zkne_initkey()
H A 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()
163 static int cipher_hw_des_cfb8_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_des_cfb8_cipher()
H A 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()
109 static int cipher_hw_aes_ocb_rv64i_zknd_zkne_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_rv64i_zknd_zkne_initkey()
120 static int cipher_hw_aes_ocb_rv64i_zvkned_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_rv64i_zvkned_initkey()
157 static int cipher_hw_aes_ocb_rv32i_zknd_zkne_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_rv32i_zknd_zkne_initkey()
168 static int cipher_hw_aes_ocb_rv32i_zbkb_zknd_zkne_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_rv32i_zbkb_zknd_zkne_initkey()
H A Dcipher_tdes.h20 PROV_CIPHER_CTX base; /* Must be first */
100 int ossl_cipher_hw_tdes_ede3_initkey(PROV_CIPHER_CTX *ctx,
102 void ossl_cipher_hw_tdes_copyctx(PROV_CIPHER_CTX *dst,
103 const PROV_CIPHER_CTX *src);
104 int ossl_cipher_hw_tdes_cbc(PROV_CIPHER_CTX *ctx, unsigned char *out,
106 int ossl_cipher_hw_tdes_ecb(PROV_CIPHER_CTX *ctx, unsigned char *out,
H A 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()
96 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_wrap_freectx()
104 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_init()
168 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_cipher_internal()
265 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_set_ctx_params()
H A 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()
H A 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()
H A Dcipher_chacha20_poly1305.c86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
274 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_dinit()
289 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_cipher()
315 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_final()
H A 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,
H A Dcipher_tdes_common.c61 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
82 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
139 static int tdes_generatekey(PROV_CIPHER_CTX *ctx, void *ptr)
157 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_tdes_get_ctx_params()
H A Dcipher_des.c67 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx()
75 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init()
118 static int des_generatekey(PROV_CIPHER_CTX *ctx, void *ptr) in des_generatekey()
136 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
H A Dcipher_cts.c99 static size_t cts128_cs1_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs1_encrypt()
133 static size_t cts128_cs1_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs1_decrypt()
195 static size_t cts128_cs3_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs3_encrypt()
235 static size_t cts128_cs3_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs3_decrypt()
301 static size_t cts128_cs2_encrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs2_encrypt()
314 static size_t cts128_cs2_decrypt(PROV_CIPHER_CTX *ctx, const unsigned char *in, in cts128_cs2_decrypt()
331 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_cbc_cts_block_update()
H A 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()
119 static int ossl_cipher_hw_tdes_cfb8(PROV_CIPHER_CTX *ctx, unsigned char *out, in ossl_cipher_hw_tdes_cfb8()
H A Dcipher_tdes_wrap.c34 static int des_ede3_unwrap(PROV_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_unwrap()
80 static int des_ede3_wrap(PROV_CIPHER_CTX *ctx, unsigned char *out, in des_ede3_wrap()
110 static int tdes_wrap_cipher_internal(PROV_CIPHER_CTX *ctx, unsigned char *out, in tdes_wrap_cipher_internal()
130 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_wrap_cipher()
H A Dcipher_chacha20.c63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
196 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_dinit()
H A 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,
64 static int s390x_aes_ofb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
108 static int s390x_aes_cfb128_initkey(PROV_CIPHER_CTX *dat,
119 static int s390x_aes_cfb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
169 static int s390x_aes_cfb8_initkey(PROV_CIPHER_CTX *dat,
180 static int s390x_aes_cfb8_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out,
H A Dcipher_chacha20.h14 PROV_CIPHER_CTX base; /* must be first */
26 int (*initiv)(PROV_CIPHER_CTX *ctx);
H A Dcipher_sm4_xts_hw.c32 static int cipher_hw_sm4_xts_generic_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_sm4_xts_generic_initkey()
74 static void cipher_hw_sm4_xts_copyctx(PROV_CIPHER_CTX *dst, in cipher_hw_sm4_xts_copyctx()
75 const PROV_CIPHER_CTX *src) in cipher_hw_sm4_xts_copyctx()
H A Dcipher_camellia_cts.inc48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
H A Dcipher_aes_cts.inc48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
H A Dcipher_rc4_hw.c18 static int cipher_hw_rc4_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_rc4_initkey()
27 static int cipher_hw_rc4_cipher(PROV_CIPHER_CTX *ctx, unsigned char *out, in cipher_hw_rc4_cipher()
/openssl/providers/implementations/include/prov/
H A Dciphercommon.h33 typedef struct prov_cipher_ctx_st PROV_CIPHER_CTX; typedef
35 typedef int (PROV_CIPHER_HW_FN)(PROV_CIPHER_CTX *dat, unsigned char *out,
103 int (*init)(PROV_CIPHER_CTX *dat, const uint8_t *key, size_t keylen);
105 void (*copyctx)(PROV_CIPHER_CTX *dst, const PROV_CIPHER_CTX *src);
108 void ossl_cipher_generic_reset_ctx(PROV_CIPHER_CTX *ctx);
241 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
262 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
277 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
295 static int cipher_hw_##NAME##_##MODE##_cipher(PROV_CIPHER_CTX *ctx, \
319 static void name(PROV_CIPHER_CTX *dst, const PROV_CIPHER_CTX *src) \
[all …]

Completed in 61 milliseconds

1234