Searched refs:vctx (Results 1 - 25 of 98) sorted by relevance

1234

/freebsd-current/sys/crypto/blake2/
H A Dblake2-sw.c33 blake2b_xform_init(void *vctx) argument
35 struct blake2b_xform_ctx *ctx = vctx;
44 blake2b_xform_setkey(void *vctx, const uint8_t *key, u_int klen) argument
46 struct blake2b_xform_ctx *ctx = vctx;
56 blake2b_xform_update(void *vctx, const void *data, u_int len) argument
58 struct blake2b_xform_ctx *ctx = vctx;
68 blake2b_xform_final(uint8_t *out, void *vctx) argument
70 struct blake2b_xform_ctx *ctx = vctx;
96 blake2s_xform_init(void *vctx) argument
98 struct blake2s_xform_ctx *ctx = vctx;
107 blake2s_xform_setkey(void *vctx, const uint8_t *key, u_int klen) argument
119 blake2s_xform_update(void *vctx, const void *data, u_int len) argument
131 blake2s_xform_final(uint8_t *out, void *vctx) argument
[all...]
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
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) argument
22 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) argument
79 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
85 static void aes_siv_setspeed(void *vctx, int speed) argument
87 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
93 static void aes_siv_cleanup(void *vctx) argument
95 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
103 static int aes_siv_cipher(void *vctx, unsigne argument
[all...]
H A Dcipher_aes_xts.c68 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, argument
72 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx;
81 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen))
97 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, argument
101 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1);
104 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, argument
108 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0);
124 static void aes_xts_freectx(void *vctx) argument
126 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx;
128 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
132 aes_xts_dupctx(void *vctx) argument
157 aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) argument
192 aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) argument
211 aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) argument
231 aes_xts_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
[all...]
H A Dcipher_blowfish.c27 static void blowfish_freectx(void *vctx) argument
29 PROV_BLOWFISH_CTX *ctx = (PROV_BLOWFISH_CTX *)vctx;
31 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
H A Dcipher_cast5.c28 static void cast5_freectx(void *vctx) argument
30 PROV_CAST_CTX *ctx = (PROV_CAST_CTX *)vctx;
32 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
H A Dcipher_idea.c26 static void idea_freectx(void *vctx) argument
28 PROV_IDEA_CTX *ctx = (PROV_IDEA_CTX *)vctx;
30 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
H A Dcipher_null.c34 static void null_freectx(void *vctx) argument
36 OPENSSL_free(vctx);
40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, argument
44 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx;
54 static int null_dinit(void *vctx, const unsigned char *key, size_t keylen, argument
65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, argument
68 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx;
92 static int null_final(void *vctx, unsigned char *out, size_t *outl, argument
123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
125 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx;
161 null_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
[all...]
H A Dcipher_seed.c25 static void seed_freectx(void *vctx) argument
27 PROV_SEED_CTX *ctx = (PROV_SEED_CTX *)vctx;
29 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
H A Dcipher_sm4.c19 static void sm4_freectx(void *vctx) argument
21 PROV_SM4_CTX *ctx = (PROV_SM4_CTX *)vctx;
23 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
H A Dcipher_tdes_common.c56 void ossl_tdes_freectx(void *vctx) argument
58 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx;
60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, argument
68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
100 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, argument
104 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1);
107 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, argument
111 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0);
135 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARA argument
[all...]
H A Dcipher_aes_ocb_hw.c32 static int cipher_hw_aes_ocb_generic_initkey(PROV_CIPHER_CTX *vctx, argument
36 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx;
64 static int cipher_hw_aes_ocb_aesni_initkey(PROV_CIPHER_CTX *vctx, argument
68 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx;
87 static int cipher_hw_aes_ocb_t4_initkey(PROV_CIPHER_CTX *vctx, argument
91 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx;
H A Dcipher_chacha20.c58 static void chacha20_freectx(void *vctx) argument
60 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx;
63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
68 static void *chacha20_dupctx(void *vctx) argument
70 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx;
95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
168 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, argument
175 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL);
177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
187 ossl_chacha20_dinit(void *vctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]) argument
[all...]
H A Dcipher_aes_siv.c49 static void aes_siv_freectx(void *vctx) argument
51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
59 static void *siv_dupctx(void *vctx) argument
61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx;
79 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, argument
83 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx;
101 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, argument
105 return siv_init(vctx, key, keylen, iv, ivlen, params, 1);
108 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, argument
112 return siv_init(vctx, ke
115 siv_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) argument
145 siv_stream_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) argument
161 aes_siv_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
201 aes_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
[all...]
H A Dcipher_chacha20_poly1305.c81 static void chacha20_poly1305_freectx(void *vctx) argument
83 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx;
86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx);
99 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
101 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx;
161 static int chacha20_poly1305_set_ctx_params(void *vctx, argument
166 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx;
245 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, argument
252 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL);
254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
265 chacha20_poly1305_dinit(void *vctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]) argument
285 chacha20_poly1305_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl) argument
312 chacha20_poly1305_final(void *vctx, unsigned char *out, size_t *outl, size_t outsize) argument
[all...]
H A Dcipher_aes_cts.inc46 static int aes_cbc_cts_get_ctx_params(void *vctx, OSSL_PARAM params[])
48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
60 return ossl_cipher_generic_get_ctx_params(vctx, params);
67 static int aes_cbc_cts_set_ctx_params(void *vctx, const OSSL_PARAM params[])
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
83 return ossl_cipher_generic_set_ctx_params(vctx, params);
H A Dcipher_camellia_cts.inc46 static int camellia_cbc_cts_get_ctx_params(void *vctx, OSSL_PARAM params[])
48 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
60 return ossl_cipher_generic_get_ctx_params(vctx, params);
67 static int camellia_cbc_cts_set_ctx_params(void *vctx, const OSSL_PARAM params[])
69 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
83 return ossl_cipher_generic_set_ctx_params(vctx, params);
/freebsd-current/sys/opencrypto/
H A Dxform_cml.c87 cml_encrypt(void *vctx, const uint8_t *in, uint8_t *out) argument
89 struct camellia_cbc_ctx *ctx = vctx;
98 cml_decrypt(void *vctx, const uint8_t *in, uint8_t *out) argument
100 struct camellia_cbc_ctx *ctx = vctx;
112 cml_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) argument
114 struct camellia_cbc_ctx *ctx = vctx;
130 cml_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) argument
132 struct camellia_cbc_ctx *ctx = vctx;
151 cml_setkey(void *vctx, const uint8_t *key, int len) argument
153 struct camellia_cbc_ctx *ctx = vctx;
163 cml_reinit(void *vctx, const uint8_t *iv, size_t iv_len) argument
[all...]
H A Dxform_aes_cbc.c87 aes_cbc_encrypt(void *vctx, const uint8_t *in, uint8_t *out) argument
89 struct aes_cbc_ctx *ctx = vctx;
98 aes_cbc_decrypt(void *vctx, const uint8_t *in, uint8_t *out) argument
100 struct aes_cbc_ctx *ctx = vctx;
112 aes_cbc_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) argument
114 struct aes_cbc_ctx *ctx = vctx;
129 aes_cbc_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) argument
131 struct aes_cbc_ctx *ctx = vctx;
149 aes_cbc_setkey(void *vctx, const uint8_t *key, int len) argument
151 struct aes_cbc_ctx *ctx = vctx;
161 aes_cbc_reinit(void *vctx, const uint8_t *iv, size_t iv_len) argument
[all...]
H A Dxform_chacha20_poly1305.c50 chacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len) argument
52 struct chacha20_poly1305_ctx *ctx = vctx;
62 chacha20_poly1305_reinit(void *vctx, const uint8_t *iv, size_t ivlen) argument
64 struct chacha20_poly1305_ctx *ctx = vctx;
86 chacha20_poly1305_crypt(void *vctx, const uint8_t *in, uint8_t *out) argument
88 struct chacha20_poly1305_ctx *ctx = vctx;
102 chacha20_poly1305_crypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) argument
104 struct chacha20_poly1305_ctx *ctx = vctx;
120 chacha20_poly1305_crypt_last(void *vctx, const uint8_t *in, uint8_t *out, argument
123 struct chacha20_poly1305_ctx *ctx = vctx;
137 chacha20_poly1305_update(void *vctx, const void *data, u_int len) argument
146 chacha20_poly1305_final(uint8_t *digest, void *vctx) argument
176 xchacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len) argument
189 xchacha20_poly1305_reinit(void *vctx, const uint8_t *iv, size_t ivlen) argument
[all...]
H A Dxform_aes_icm.c157 aes_gcm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) argument
159 struct aes_gcm_ctx *ctx = vctx;
173 aes_ccm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) argument
175 struct aes_ccm_ctx *ctx = vctx;
258 aes_gcm_setkey(void *vctx, const uint8_t *key, int len) argument
260 struct aes_gcm_ctx *ctx = vctx;
272 aes_ccm_setkey(void *vctx, const uint8_t *key, int len) argument
274 struct aes_ccm_ctx *ctx = vctx;
286 aes_gcm_update(void *vctx, const void *buf, u_int len) argument
288 struct aes_gcm_ctx *ctx = vctx;
294 aes_ccm_update(void *vctx, const void *buf, u_int len) argument
302 aes_gcm_final(uint8_t *tag, void *vctx) argument
310 aes_ccm_final(uint8_t *tag, void *vctx) argument
[all...]
H A Dcbc_mac.c53 AES_CBC_MAC_Init(void *vctx) argument
57 ctx = vctx;
62 AES_CBC_MAC_Setkey(void *vctx, const uint8_t *key, u_int klen) argument
66 ctx = vctx;
78 AES_CBC_MAC_Reinit(void *vctx, const uint8_t *nonce, u_int nonceLen) argument
80 struct aes_cbc_mac_ctx *ctx = vctx;
92 AES_CBC_MAC_Update(void *vctx, const void *vdata, u_int length) argument
98 ctx = vctx;
137 AES_CBC_MAC_Final(uint8_t *buf, void *vctx) argument
142 ctx = vctx;
[all...]
/freebsd-current/crypto/openssl/providers/implementations/digests/
H A Dsha3_prov.c53 static int keccak_init(void *vctx, ossl_unused const OSSL_PARAM params[]) argument
58 ossl_sha3_reset((KECCAK1600_CTX *)vctx);
62 static int keccak_init_params(void *vctx, const OSSL_PARAM params[]) argument
64 return keccak_init(vctx, NULL)
65 && shake_set_ctx_params(vctx, params);
68 static int keccak_update(void *vctx, const unsigned char *inp, size_t len) argument
70 KECCAK1600_CTX *ctx = vctx;
105 static int keccak_final(void *vctx, unsigned char *out, size_t *outl, argument
109 KECCAK1600_CTX *ctx = vctx;
123 static size_t generic_sha3_absorb(void *vctx, cons argument
130 generic_sha3_final(unsigned char *md, void *vctx) argument
150 s390x_sha3_absorb(void *vctx, const void *inp, size_t len) argument
159 s390x_sha3_final(unsigned char *md, void *vctx) argument
170 s390x_shake_final(unsigned char *md, void *vctx) argument
254 keccak_freectx(void *vctx) argument
282 shake_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
[all...]
H A Dmd5_sha1_prov.c40 static int md5_sha1_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
43 MD5_SHA1_CTX *ctx = (MD5_SHA1_CTX *)vctx;
/freebsd-current/crypto/openssl/providers/implementations/signature/
H A Decdsa_sig.c128 static int ecdsa_signverify_init(void *vctx, void *ec, argument
131 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx;
159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) argument
161 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_SIGN);
164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) argument
166 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_VERIFY);
169 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, argument
172 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx;
204 static int ecdsa_verify(void *vctx, const unsigned char *sig, size_t siglen, argument
207 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx;
281 ecdsa_digest_signverify_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[], int operation) argument
311 ecdsa_digest_sign_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[]) argument
318 ecdsa_digest_verify_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[]) argument
325 ecdsa_digest_signverify_update(void *vctx, const unsigned char *data, size_t datalen) argument
336 ecdsa_digest_sign_final(void *vctx, unsigned char *sig, size_t *siglen, size_t sigsize) argument
357 ecdsa_digest_verify_final(void *vctx, const unsigned char *sig, size_t siglen) argument
373 ecdsa_freectx(void *vctx) argument
390 ecdsa_dupctx(void *vctx) argument
438 ecdsa_get_ctx_params(void *vctx, OSSL_PARAM *params) argument
470 ecdsa_gettable_ctx_params(ossl_unused void *vctx, ossl_unused void *provctx) argument
476 ecdsa_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
534 ecdsa_settable_ctx_params(void *vctx, ossl_unused void *provctx) argument
544 ecdsa_get_ctx_md_params(void *vctx, OSSL_PARAM *params) argument
554 ecdsa_gettable_ctx_md_params(void *vctx) argument
564 ecdsa_set_ctx_md_params(void *vctx, const OSSL_PARAM params[]) argument
574 ecdsa_settable_ctx_md_params(void *vctx) argument
[all...]
/freebsd-current/stand/i386/loader/
H A Dchain.c44 #define VECTX_HANDLE(x) vctx
66 struct vectx *vctx; local
86 vctx = vectx_open(fd, argv[1], 0L, NULL, &verror, __func__);
90 free(vctx);
130 verror = vectx_close(vctx, VE_MUST, __func__);
132 free(vctx);

Completed in 133 milliseconds

1234