Home
last modified time | relevance | path

Searched refs:EVP_MD_CTX (Results 1 – 25 of 92) sorted by relevance

1234

/openbsd/src/lib/libcrypto/evp/
Devp_digest.c124 EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) in EVP_DigestInit()
132 EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) in EVP_DigestInit_ex()
168 EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t count) in EVP_DigestUpdate()
176 EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) in EVP_DigestFinal()
188 EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) in EVP_DigestFinal_ex()
212 EVP_MD_CTX ctx; in EVP_Digest()
226 EVP_MD_CTX *
229 return calloc(1, sizeof(EVP_MD_CTX)); in EVP_MD_CTX_new()
234 EVP_MD_CTX_free(EVP_MD_CTX *ctx) in EVP_MD_CTX_free()
245 EVP_MD_CTX *
[all …]
Dm_sha1.c77 sha1_init(EVP_MD_CTX *ctx) in sha1_init()
83 sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha1_update()
89 sha1_final(EVP_MD_CTX *ctx, unsigned char *md) in sha1_final()
118 sha224_init(EVP_MD_CTX *ctx) in sha224_init()
124 sha224_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha224_update()
135 sha224_final(EVP_MD_CTX *ctx, unsigned char *md) in sha224_final()
162 sha256_init(EVP_MD_CTX *ctx) in sha256_init()
168 sha256_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha256_update()
174 sha256_final(EVP_MD_CTX *ctx, unsigned char *md) in sha256_final()
203 sha384_init(EVP_MD_CTX *ctx) in sha384_init()
[all …]
Dm_sha3.c24 sha3_224_init(EVP_MD_CTX *ctx) in sha3_224_init()
30 sha3_224_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha3_224_update()
36 sha3_224_final(EVP_MD_CTX *ctx, unsigned char *md) in sha3_224_final()
63 sha3_256_init(EVP_MD_CTX *ctx) in sha3_256_init()
69 sha3_256_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha3_256_update()
75 sha3_256_final(EVP_MD_CTX *ctx, unsigned char *md) in sha3_256_final()
102 sha3_384_init(EVP_MD_CTX *ctx) in sha3_384_init()
108 sha3_384_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sha3_384_update()
114 sha3_384_final(EVP_MD_CTX *ctx, unsigned char *md) in sha3_384_final()
141 sha3_512_init(EVP_MD_CTX *ctx) in sha3_512_init()
[all …]
Devp_local.h138 int (*item_verify)(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn,
140 int (*item_sign)(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn,
184 int (*init)(EVP_MD_CTX *ctx);
185 int (*update)(EVP_MD_CTX *ctx, const void *data, size_t count);
186 int (*final)(EVP_MD_CTX *ctx, unsigned char *md);
187 int (*copy)(EVP_MD_CTX *to, const EVP_MD_CTX *from);
188 int (*cleanup)(EVP_MD_CTX *ctx);
193 int (*md_ctrl)(EVP_MD_CTX *ctx, int cmd, int p1, void *p2);
203 int (*update)(EVP_MD_CTX *ctx, const void *data, size_t count);
301 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx);
[all …]
Dm_sigver.c69 update_oneshot_only(EVP_MD_CTX *ctx, const void *data, size_t datalen) in update_oneshot_only()
76 do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in do_sigver_init()
126 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestSignInit()
134 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestVerifyInit()
142 evp_digestsignfinal_sigctx_custom(EVP_MD_CTX *ctx, unsigned char *sigret, in evp_digestsignfinal_sigctx_custom()
168 EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) in EVP_DigestSignFinal()
171 EVP_MD_CTX *md_ctx = NULL; in EVP_DigestSignFinal()
223 EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen, in EVP_DigestSign()
240 EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) in EVP_DigestVerifyFinal()
242 EVP_MD_CTX tmp_ctx; in EVP_DigestVerifyFinal()
[all …]
Devp.h348 const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx);
349 void *EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx);
350 EVP_PKEY_CTX *EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx);
351 void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx);
439 EVP_MD_CTX *EVP_MD_CTX_new(void);
440 void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
441 int EVP_MD_CTX_init(EVP_MD_CTX *ctx);
442 int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
443 EVP_MD_CTX *EVP_MD_CTX_create(void);
444 void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
[all …]
Dm_null.c68 init(EVP_MD_CTX *ctx) in init()
74 update(EVP_MD_CTX *ctx, const void *data, size_t count) in update()
80 final(EVP_MD_CTX *ctx, unsigned char *md) in final()
Dm_ripemd.c77 init(EVP_MD_CTX *ctx) in init()
83 update(EVP_MD_CTX *ctx, const void *data, size_t count) in update()
89 final(EVP_MD_CTX *ctx, unsigned char *md) in final()
Dm_md5.c77 init(EVP_MD_CTX *ctx) in init()
83 update(EVP_MD_CTX *ctx, const void *data, size_t count) in update()
89 final(EVP_MD_CTX *ctx, unsigned char *md) in final()
Dm_md4.c77 init(EVP_MD_CTX *ctx) in init()
83 update(EVP_MD_CTX *ctx, const void *data, size_t count) in update()
89 final(EVP_MD_CTX *ctx, unsigned char *md) in final()
Dm_sm3.c31 sm3_init(EVP_MD_CTX *ctx) in sm3_init()
37 sm3_update(EVP_MD_CTX *ctx, const void *data, size_t count) in sm3_update()
43 sm3_final(EVP_MD_CTX *ctx, unsigned char *md) in sm3_final()
Dbio_md.c102 EVP_MD_CTX *ctx; in md_new()
130 EVP_MD_CTX *ctx; in md_read()
156 EVP_MD_CTX *ctx; in md_write()
183 EVP_MD_CTX *ctx, *dctx, **pctx; in md_ctrl()
262 EVP_MD_CTX *ctx; in md_gets()
Dm_md5_sha1.c35 md5_sha1_init(EVP_MD_CTX *ctx) in md5_sha1_init()
48 md5_sha1_update(EVP_MD_CTX *ctx, const void *data, size_t count) in md5_sha1_update()
61 md5_sha1_final(EVP_MD_CTX *ctx, unsigned char *out) in md5_sha1_final()
Dp_verify.c69 EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, in EVP_VerifyFinal()
74 EVP_MD_CTX *md_ctx; in EVP_VerifyFinal()
Dp_sign.c69 EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, in EVP_SignFinal()
74 EVP_MD_CTX *md_ctx; in EVP_SignFinal()
/openbsd/src/usr.bin/dig/lib/isc/
Dsha2.c82 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha224_update()
93 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha224_final()
124 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha256_update()
135 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha256_final()
165 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha512_update()
175 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha512_final()
206 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha384_update()
217 REQUIRE(context->ctx != (EVP_MD_CTX *)0); in isc_sha384_final()
/openbsd/src/lib/libcrypto/hmac/
Dhmac_local.h71 EVP_MD_CTX md_ctx;
72 EVP_MD_CTX i_ctx;
73 EVP_MD_CTX o_ctx;
Dhm_pmeth.c153 int_update(EVP_MD_CTX *ctx, const void *data, size_t count) in int_update()
163 hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in hmac_signctx_init()
175 EVP_MD_CTX *mctx) in hmac_signctx()
/openbsd/src/lib/libcrypto/pem/
Dpem_sign.c68 PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type) in PEM_SignInit()
75 PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *data, in PEM_SignUpdate()
83 PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, in PEM_SignFinal()
/openbsd/src/usr.sbin/radiusctl/
Dchap_ms.c137 EVP_MD_CTX *ctx; in mschap_ntpassword_hash()
151 EVP_MD_CTX *ctx; in mschap_challenge_hash()
192 EVP_MD_CTX *ctx; in mschap_auth_response()
256 EVP_MD_CTX *ctx; in mschap_masterkey()
278 EVP_MD_CTX *ctx; in mschap_asymetric_startkey()
349 EVP_MD_CTX *ctx; in mschap_radiuskey()
/openbsd/src/sbin/iked/
Dchap_ms.c140 EVP_MD_CTX *ctx; in mschap_ntpassword_hash()
156 EVP_MD_CTX *ctx; in mschap_challenge_hash()
199 EVP_MD_CTX *ctx; in mschap_auth_response()
265 EVP_MD_CTX *ctx; in mschap_masterkey()
289 EVP_MD_CTX *ctx; in mschap_asymetric_startkey()
362 EVP_MD_CTX *ctx; in mschap_radiuskey()
/openbsd/src/usr.sbin/npppd/npppd/
Dchap_ms.c137 EVP_MD_CTX *ctx; in mschap_ntpassword_hash()
151 EVP_MD_CTX *ctx; in mschap_challenge_hash()
192 EVP_MD_CTX *ctx; in mschap_auth_response()
256 EVP_MD_CTX *ctx; in mschap_masterkey()
278 EVP_MD_CTX *ctx; in mschap_asymetric_startkey()
349 EVP_MD_CTX *ctx; in mschap_radiuskey()
/openbsd/src/usr.sbin/radiusd/
Dchap_ms.c137 EVP_MD_CTX *ctx; in mschap_ntpassword_hash()
151 EVP_MD_CTX *ctx; in mschap_challenge_hash()
192 EVP_MD_CTX *ctx; in mschap_auth_response()
256 EVP_MD_CTX *ctx; in mschap_masterkey()
278 EVP_MD_CTX *ctx; in mschap_asymetric_startkey()
349 EVP_MD_CTX *ctx; in mschap_radiuskey()
/openbsd/src/lib/libcrypto/cmac/
Dcm_pmeth.c115 int_update(EVP_MD_CTX *ctx, const void *data, size_t count) in int_update()
123 cmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in cmac_signctx_init()
132 EVP_MD_CTX *mctx) in cmac_signctx()
/openbsd/src/regress/lib/libcrypto/sm2/
Dsm2evptest.c68 EVP_MD_CTX *md_ctx_verify = NULL; in test_EVP_SM2_verify()
112 EVP_MD_CTX *md_ctx = NULL; in test_EVP_SM2()
113 EVP_MD_CTX *md_ctx_verify = NULL; in test_EVP_SM2()

1234