Home
last modified time | relevance | path

Searched refs:vctx (Results 1 – 25 of 100) sorted by relevance

1234

/freebsd/crypto/openssl/providers/implementations/signature/
H A Decdsa_sig.c131 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_signverify_init()
172 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign()
207 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify()
285 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_signverify_init()
328 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_signverify_update()
339 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_sign_final()
360 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_digest_verify_final()
373 static void ecdsa_freectx(void *vctx) in ecdsa_freectx() argument
375 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_freectx()
390 static void *ecdsa_dupctx(void *vctx) in ecdsa_dupctx() argument
[all …]
/freebsd/sys/crypto/blake2/
H A Dblake2-sw.c33 blake2b_xform_init(void *vctx) in blake2b_xform_init() argument
35 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_init()
46 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_setkey()
58 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_update()
68 blake2b_xform_final(uint8_t *out, void *vctx) in blake2b_xform_final() argument
70 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_final()
96 blake2s_xform_init(void *vctx) in blake2s_xform_init() argument
98 struct blake2s_xform_ctx *ctx = vctx; in blake2s_xform_init()
109 struct blake2s_xform_ctx *ctx = vctx; in blake2s_xform_setkey()
121 struct blake2s_xform_ctx *ctx = vctx; in blake2s_xform_update()
[all …]
/freebsd/crypto/openssl/providers/implementations/digests/
H A Dsha3_prov.c58 ossl_sha3_reset((KECCAK1600_CTX *)vctx); in keccak_init()
64 return keccak_init(vctx, NULL) in keccak_init_params()
65 && shake_set_ctx_params(vctx, params); in keccak_init_params()
70 KECCAK1600_CTX *ctx = vctx; in keccak_update()
109 KECCAK1600_CTX *ctx = vctx; in keccak_final()
125 KECCAK1600_CTX *ctx = vctx; in generic_sha3_absorb()
152 KECCAK1600_CTX *ctx = vctx; in s390x_sha3_absorb()
161 KECCAK1600_CTX *ctx = vctx; in s390x_sha3_final()
172 KECCAK1600_CTX *ctx = vctx; in s390x_shake_final()
254 static void keccak_freectx(void *vctx) in keccak_freectx() argument
[all …]
/freebsd/sys/opencrypto/
H A Dxform_chacha20_poly1305.c50 chacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len) in chacha20_poly1305_setkey() argument
52 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_setkey()
64 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_reinit()
88 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt()
104 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt_multi()
123 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt_last()
139 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_update()
146 chacha20_poly1305_final(uint8_t *digest, void *vctx) in chacha20_poly1305_final() argument
148 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_final()
178 struct xchacha20_poly1305_ctx *ctx = vctx; in xchacha20_poly1305_setkey()
[all …]
H A Dxform_aes_cbc.c87 aes_cbc_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in aes_cbc_encrypt() argument
89 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_encrypt()
98 aes_cbc_decrypt(void *vctx, const uint8_t *in, uint8_t *out) in aes_cbc_decrypt() argument
100 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_decrypt()
112 aes_cbc_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in aes_cbc_encrypt_multi() argument
114 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_encrypt_multi()
131 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_decrypt_multi()
149 aes_cbc_setkey(void *vctx, const uint8_t *key, int len) in aes_cbc_setkey() argument
151 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_setkey()
161 aes_cbc_reinit(void *vctx, const uint8_t *iv, size_t iv_len) in aes_cbc_reinit() argument
[all …]
H A Dxform_cml.c87 cml_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_encrypt() argument
89 struct camellia_cbc_ctx *ctx = vctx; in cml_encrypt()
98 cml_decrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_decrypt() argument
100 struct camellia_cbc_ctx *ctx = vctx; in cml_decrypt()
112 cml_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in cml_encrypt_multi() argument
114 struct camellia_cbc_ctx *ctx = vctx; in cml_encrypt_multi()
132 struct camellia_cbc_ctx *ctx = vctx; in cml_decrypt_multi()
151 cml_setkey(void *vctx, const uint8_t *key, int len) in cml_setkey() argument
153 struct camellia_cbc_ctx *ctx = vctx; in cml_setkey()
163 cml_reinit(void *vctx, const uint8_t *iv, size_t iv_len) in cml_reinit() argument
[all …]
H A Dxform_aes_icm.c159 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_reinit()
175 struct aes_ccm_ctx *ctx = vctx; in aes_ccm_reinit()
260 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_setkey()
274 struct aes_ccm_ctx *ctx = vctx; in aes_ccm_setkey()
286 aes_gcm_update(void *vctx, const void *buf, u_int len) in aes_gcm_update() argument
288 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_update()
296 struct aes_ccm_ctx *ctx = vctx; in aes_ccm_update()
302 aes_gcm_final(uint8_t *tag, void *vctx) in aes_gcm_final() argument
304 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_final()
310 aes_ccm_final(uint8_t *tag, void *vctx) in aes_ccm_final() argument
[all …]
H A Dcbc_mac.c53 AES_CBC_MAC_Init(void *vctx) in AES_CBC_MAC_Init() argument
57 ctx = vctx; in AES_CBC_MAC_Init()
62 AES_CBC_MAC_Setkey(void *vctx, const uint8_t *key, u_int klen) in AES_CBC_MAC_Setkey() argument
66 ctx = vctx; in AES_CBC_MAC_Setkey()
78 AES_CBC_MAC_Reinit(void *vctx, const uint8_t *nonce, u_int nonceLen) in AES_CBC_MAC_Reinit() argument
80 struct aes_cbc_mac_ctx *ctx = vctx; in AES_CBC_MAC_Reinit()
92 AES_CBC_MAC_Update(void *vctx, const void *vdata, u_int length) in AES_CBC_MAC_Update() argument
98 ctx = vctx; in AES_CBC_MAC_Update()
137 AES_CBC_MAC_Final(uint8_t *buf, void *vctx) in AES_CBC_MAC_Final() argument
142 ctx = vctx; in AES_CBC_MAC_Final()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_xts.c72 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_init()
81 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in aes_xts_init()
101 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit()
124 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() argument
126 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_freectx()
128 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_xts_freectx()
132 static void *aes_xts_dupctx(void *vctx) in aes_xts_dupctx() argument
134 PROV_AES_XTS_CTX *in = (PROV_AES_XTS_CTX *)vctx; in aes_xts_dupctx()
160 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_cipher()
196 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_stream_update()
[all …]
H A Dcipher_chacha20.c58 static void chacha20_freectx(void *vctx) in chacha20_freectx() argument
60 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_freectx()
63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
68 static void *chacha20_dupctx(void *vctx) in chacha20_dupctx() argument
70 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_dupctx()
95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() argument
175 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_einit()
177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
182 if (ret && !chacha20_set_ctx_params(vctx, params)) in ossl_chacha20_einit()
196 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_dinit()
[all …]
H A Dcipher_tdes_common.c56 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() argument
58 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx; in ossl_tdes_freectx()
60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() argument
68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
100 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() argument
104 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_tdes_einit()
111 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_tdes_dinit()
135 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params() argument
137 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_tdes_get_ctx_params()
[all …]
H A Dcipher_null.c34 static void null_freectx(void *vctx) in null_freectx() argument
36 OPENSSL_free(vctx); in null_freectx()
40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, in null_einit() argument
44 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_einit()
65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() argument
68 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_cipher()
92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() argument
123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() argument
125 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_get_ctx_params()
161 static int null_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in null_set_ctx_params() argument
[all …]
H A Dcipher_aes_siv.c49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() argument
51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_freectx()
59 static void *siv_dupctx(void *vctx) in siv_dupctx() argument
61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx; in siv_dupctx()
83 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_init()
105 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit()
118 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_cipher()
148 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_stream_final()
153 if (!ctx->hw->cipher(vctx, out, NULL, 0)) in siv_stream_final()
163 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_get_ctx_params()
[all …]
H A Dcipher_chacha20_poly1305.c81 static void chacha20_poly1305_freectx(void *vctx) in chacha20_poly1305_freectx() argument
83 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_freectx()
86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
161 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() argument
254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
260 if (ret && !chacha20_poly1305_set_ctx_params(vctx, params)) in chacha20_poly1305_einit()
274 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_dinit()
280 if (ret && !chacha20_poly1305_set_ctx_params(vctx, params)) in chacha20_poly1305_dinit()
285 static int chacha20_poly1305_cipher(void *vctx, unsigned char *out, in chacha20_poly1305_cipher() argument
289 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_cipher()
[all …]
H A Dcipher_aes_siv_hw.c18 static void aes_siv_cleanup(void *vctx);
20 static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen) in aes_siv_initkey() argument
22 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_initkey()
77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) in aes_siv_settag() argument
79 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_settag()
85 static void aes_siv_setspeed(void *vctx, int speed) in aes_siv_setspeed() argument
87 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_setspeed()
93 static void aes_siv_cleanup(void *vctx) in aes_siv_cleanup() argument
95 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_cleanup()
103 static int aes_siv_cipher(void *vctx, unsigned char *out, in aes_siv_cipher() argument
[all …]
H A Dcipher_des.c65 static void des_freectx(void *vctx) in des_freectx() argument
67 PROV_DES_CTX *ctx = (PROV_DES_CTX *)vctx; in des_freectx()
69 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx()
73 static int des_init(void *vctx, const unsigned char *key, size_t keylen, in des_init() argument
77 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init()
106 static int des_einit(void *vctx, const unsigned char *key, size_t keylen, in des_einit() argument
110 return des_init(vctx, key, keylen, iv, ivlen, params, 1); in des_einit()
117 return des_init(vctx, key, keylen, iv, ivlen, params, 0); in des_dinit()
136 static int des_get_ctx_params(void *vctx, OSSL_PARAM params[])
138 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
[all …]
H A Dcipher_aes_wrp.c89 static void aes_wrap_freectx(void *vctx) in aes_wrap_freectx() argument
91 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_freectx()
93 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_wrap_freectx()
97 static int aes_wrap_init(void *vctx, const unsigned char *key, in aes_wrap_init() argument
101 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_init()
102 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_init()
165 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_cipher_internal()
166 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_cipher_internal()
232 static int aes_wrap_cipher(void *vctx, in aes_wrap_cipher() argument
236 PROV_AES_WRAP_CTX *ctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_cipher()
[all …]
H A Dciphercommon.c115 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
121 if (!ossl_cipher_generic_set_ctx_params(vctx, params))
228 int ossl_cipher_generic_einit(void *vctx, const unsigned char *key, in ossl_cipher_generic_einit() argument
252 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_update()
396 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_final()
471 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_stream_update()
532 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_stream_final()
550 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_cipher()
576 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_get_ctx_params()
624 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_set_ctx_params()
[all …]
H A Dcipher_aes_ocb.c108 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_init()
235 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_block_update()
265 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_block_final()
323 static void aes_ocb_freectx(void *vctx) in aes_ocb_freectx() argument
325 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_freectx()
329 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_ocb_freectx()
334 static void *aes_ocb_dupctx(void *vctx) in aes_ocb_dupctx() argument
336 PROV_AES_OCB_CTX *in = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_dupctx()
357 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_set_ctx_params()
413 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_get_ctx_params()
[all …]
H A Dciphercommon_ccm.c68 int ossl_ccm_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ossl_ccm_set_ctx_params() argument
70 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_set_ctx_params()
147 int ossl_ccm_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_ccm_get_ctx_params() argument
149 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_get_ctx_params()
229 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ccm_init()
255 int ossl_ccm_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_ccm_einit() argument
259 return ccm_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_ccm_einit()
266 return ccm_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_ccm_dinit()
273 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_stream_update()
290 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_stream_final()
[all …]
H A Dcipher_rc5.c33 static void rc5_freectx(void *vctx) in rc5_freectx() argument
35 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in rc5_freectx()
37 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in rc5_freectx()
77 static int rc5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in rc5_set_ctx_params() argument
79 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in rc5_set_ctx_params()
85 if (!ossl_cipher_var_keylen_set_ctx_params(vctx, params)) in rc5_set_ctx_params()
117 static int rc5_get_ctx_params(void *vctx, OSSL_PARAM params[]) in OSSL_PARAM_uint()
119 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in OSSL_PARAM_uint()
122 if (!ossl_cipher_generic_get_ctx_params(vctx, params)) in OSSL_PARAM_uint()
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() argument
36 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_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() argument
68 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_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() argument
91 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in cipher_hw_aes_ocb_t4_initkey()
/freebsd/contrib/ofed/libibverbs/
H A Dverbs.h1577 if (vctx && (vctx->sz >= sizeof(*vctx) - offsetof(struct verbs_context, op))) \
1695 if (!vctx || !vctx->ibv_create_flow) { in ibv_create_flow()
1707 if (!vctx || !vctx->ibv_destroy_flow) in ibv_destroy_flow()
1719 if (!vctx) { in ibv_open_xrcd()
1850 if (!vctx) { in ibv_create_cq_ex()
2000 if (!vctx) in ibv_get_srq_num()
2062 if (!vctx) in ibv_query_rt_values_ex()
2083 if (!vctx) in ibv_query_device_ex()
2192 if (!vctx) in ibv_modify_wq()
2210 if (!vctx) in ibv_destroy_wq()
[all …]
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2ms.c83 static void key2ms_freectx(void *vctx) in key2ms_freectx() argument
85 struct key2ms_ctx_st *ctx = vctx; in key2ms_freectx()
101 static int key2pvk_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in key2pvk_set_ctx_params() argument
103 struct key2ms_ctx_st *ctx = vctx; in key2pvk_set_ctx_params()
112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument
128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument
132 struct key2ms_ctx_st *ctx = vctx; in key2msblob_encode()
150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument
154 struct key2ms_ctx_st *ctx = vctx; in key2pvk_encode()
196 static int impl##2##output##_encode(void *vctx, OSSL_CORE_BIO *cout, \
[all …]
/freebsd/sys/crypto/via/
H A Dpadlock_hash.c74 static void padlock_sha_init(void *vctx);
76 static void padlock_sha1_final(uint8_t *hash, void *vctx);
161 padlock_sha_init(void *vctx) in padlock_sha_init() argument
165 ctx = vctx; in padlock_sha_init()
176 ctx = vctx; in padlock_sha_update()
190 padlock_sha_free(void *vctx) in padlock_sha_free() argument
194 ctx = vctx; in padlock_sha_free()
204 padlock_sha1_final(uint8_t *hash, void *vctx) in padlock_sha1_final() argument
208 ctx = vctx; in padlock_sha1_final()
214 padlock_sha256_final(uint8_t *hash, void *vctx) in padlock_sha256_final() argument
[all …]

1234