Home
last modified time | relevance | path

Searched refs:dlen (Results 1 – 25 of 36) sorted by relevance

12

/openssl/crypto/ec/
H A Decdsa_sign.c20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument
22 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign()
25 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, in ECDSA_do_sign_ex() argument
30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex()
35 int ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign() argument
38 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign()
41 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, in ECDSA_sign_ex() argument
46 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex()
H A Decdsa_ossl.c35 const unsigned char *dgst, int dlen,
74 int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, in ossl_ecdsa_sign() argument
85 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_sign()
95 int ossl_ecdsa_deterministic_sign(const unsigned char *dgst, int dlen, in ossl_ecdsa_deterministic_sign() argument
115 if (!ecdsa_sign_setup(eckey, NULL, &kinv, &r, dgst, dlen, in ossl_ecdsa_deterministic_sign()
119 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_deterministic_sign()
134 const unsigned char *dgst, int dlen, in ecdsa_sign_setup() argument
204 dgst, dlen, in ecdsa_sign_setup()
210 dgst, dlen, ctx); in ecdsa_sign_setup()
H A Dec_kmeth.c230 int dlen, unsigned char *sig, in EC_KEY_METHOD_set_sign() argument
305 int dlen, unsigned char *sig, in EC_KEY_METHOD_get_sign() argument
/openssl/crypto/cmac/
H A Dcmac.c188 if (dlen == 0) in CMAC_Update()
197 if (dlen < nleft) in CMAC_Update()
198 nleft = dlen; in CMAC_Update()
200 dlen -= nleft; in CMAC_Update()
203 if (dlen == 0) in CMAC_Update()
213 cipher_blocks = (dlen - 1) / bl; in CMAC_Update()
219 while (dlen > (size_t)bl) { in CMAC_Update()
222 dlen -= bl; in CMAC_Update()
236 dlen -= cipher_blocks * bl; in CMAC_Update()
242 memcpy(ctx->last_block, data, dlen); in CMAC_Update()
[all …]
/openssl/crypto/dsa/
H A Ddsa_sign.c22 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument
24 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign()
153 int ossl_dsa_sign_int(int type, const unsigned char *dgst, int dlen, in ossl_dsa_sign_int() argument
167 s = DSA_do_sign(dgst, dlen, dsa); in ossl_dsa_sign_int()
169 s = ossl_dsa_do_sign_int(dgst, dlen, dsa, in ossl_dsa_sign_int()
180 int DSA_sign(int type, const unsigned char *dgst, int dlen, in DSA_sign() argument
183 return ossl_dsa_sign_int(type, dgst, dlen, sig, siglen, dsa, in DSA_sign()
H A Ddsa_ossl.c28 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
32 BIGNUM **rp, const unsigned char *dgst, int dlen,
76 DSA_SIG *ossl_dsa_do_sign_int(const unsigned char *dgst, int dlen, DSA *dsa, in ossl_dsa_do_sign_int() argument
118 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen, in ossl_dsa_do_sign_int()
122 if (dlen > BN_num_bytes(dsa->params.q)) in ossl_dsa_do_sign_int()
128 dlen = BN_num_bytes(dsa->params.q); in ossl_dsa_do_sign_int()
129 if (BN_bin2bn(dgst, dlen, m) == NULL) in ossl_dsa_do_sign_int()
206 return ossl_dsa_do_sign_int(dgst, dlen, dsa, in dsa_do_sign()
219 const unsigned char *dgst, int dlen, in dsa_sign_setup() argument
275 dgst, dlen, in dsa_sign_setup()
[all …]
H A Ddsa_local.h48 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa);
72 DSA_SIG *ossl_dsa_do_sign_int(const unsigned char *dgst, int dlen, DSA *dsa,
/openssl/crypto/bio/
H A Dbio_lib.c285 ret = b->method->bread(b, data, dlen, readbytes); in bio_read_intern()
295 if (ret > 0 && *readbytes > dlen) { in bio_read_intern()
303 int BIO_read(BIO *b, void *data, int dlen) in BIO_read() argument
308 if (dlen < 0) in BIO_read()
311 ret = bio_read_intern(b, data, (size_t)dlen, &readbytes); in BIO_read()
323 return bio_read_intern(b, data, dlen, readbytes) > 0; in BIO_read_ex()
356 ret = b->method->bwrite(b, data, dlen, &local_written); in bio_write_intern()
370 int BIO_write(BIO *b, const void *data, int dlen) in BIO_write() argument
375 if (dlen <= 0) in BIO_write()
378 ret = bio_write_intern(b, data, (size_t)dlen, &written); in BIO_write()
[all …]
H A Dossl_core_bio.c92 int ossl_core_bio_read_ex(OSSL_CORE_BIO *cb, void *data, size_t dlen, in ossl_core_bio_read_ex() argument
95 return BIO_read_ex(cb->bio, data, dlen, readbytes); in ossl_core_bio_read_ex()
98 int ossl_core_bio_write_ex(OSSL_CORE_BIO *cb, const void *data, size_t dlen, in ossl_core_bio_write_ex() argument
101 return BIO_write_ex(cb->bio, data, dlen, written); in ossl_core_bio_write_ex()
/openssl/doc/man3/
H A DBIO_set_callback.pod131 =item B<BIO_read_ex(b, data, dlen, readbytes)>
133 callback_ex(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, NULL)
137 callback(b, BIO_CB_READ, data, dlen, 0L, 1L)
141 callback_ex(b, BIO_CB_READ | BIO_CB_RETURN, data, dlen, 0, 0L, retvalue,
146 callback(b, BIO_CB_READ|BIO_CB_RETURN, data, dlen, 0L, retvalue)
150 =item B<BIO_write(b, data, dlen, written)>
152 callback_ex(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, NULL)
156 callback(b, BIO_CB_WRITE, datat, dlen, 0L, 1L)
160 callback_ex(b, BIO_CB_WRITE | BIO_CB_RETURN, data, dlen, 0, 0L, retvalue,
165 callback(b, BIO_CB_WRITE|BIO_CB_RETURN, data, dlen, 0L, retvalue)
H A DBIO_read.pod13 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);
14 int BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written);
16 int BIO_read(BIO *b, void *data, int dlen);
19 int BIO_write(BIO *b, const void *data, int dlen);
24 BIO_read_ex() attempts to read I<dlen> bytes from BIO I<b> and places the data
28 BIO_write_ex() attempts to write I<dlen> bytes from I<data> to BIO I<b>.
67 This may be 0 if the BIO I<b> is NULL or I<dlen <= 0>.
H A DDSA_do_sign.pod15 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
/openssl/crypto/evp/
H A Dencode.c20 const unsigned char *f, int dlen);
232 const unsigned char *f, int dlen) in evp_encodeblock_int() argument
243 for (i = dlen; i > 0; i -= 3) { in evp_encodeblock_int()
269 int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) in EVP_EncodeBlock() argument
271 return evp_encodeblock_int(NULL, t, f, dlen); in EVP_EncodeBlock()
/openssl/providers/implementations/signature/
H A Dsm2_sig.c296 unsigned int dlen = 0; in sm2sig_digest_sign_final() local
307 && EVP_DigestFinal_ex(psm2ctx->mdctx, digest, &dlen))) in sm2sig_digest_sign_final()
311 return sm2sig_sign(vpsm2ctx, sig, siglen, sigsize, digest, (size_t)dlen); in sm2sig_digest_sign_final()
320 unsigned int dlen = 0; in sm2sig_digest_verify_final() local
331 && EVP_DigestFinal_ex(psm2ctx->mdctx, digest, &dlen))) in sm2sig_digest_verify_final()
334 return sm2sig_verify(vpsm2ctx, sig, siglen, digest, (size_t)dlen); in sm2sig_digest_verify_final()
H A Ddsa_sig.c383 unsigned int dlen = 0; in dsa_sign_message_final() local
398 if (!EVP_DigestFinal_ex(pdsactx->mdctx, digest, &dlen)) in dsa_sign_message_final()
402 return dsa_sign_directly(vpdsactx, sig, siglen, sigsize, digest, dlen); in dsa_sign_message_final()
466 unsigned int dlen = 0; in dsa_verify_message_final() local
478 if (!EVP_DigestFinal_ex(pdsactx->mdctx, digest, &dlen)) in dsa_verify_message_final()
482 digest, dlen); in dsa_verify_message_final()
H A Decdsa_sig.c380 unsigned int dlen = 0; in ecdsa_sign_message_final() local
391 && !EVP_DigestFinal_ex(ctx->mdctx, digest, &dlen)) in ecdsa_sign_message_final()
393 return ecdsa_sign_directly(vctx, sig, siglen, sigsize, digest, dlen); in ecdsa_sign_message_final()
460 unsigned int dlen = 0; in ecdsa_verify_message_final() local
469 if (!EVP_DigestFinal_ex(ctx->mdctx, digest, &dlen)) in ecdsa_verify_message_final()
473 digest, dlen); in ecdsa_verify_message_final()
/openssl/include/internal/
H A Dbio.h88 int ossl_core_bio_read_ex(OSSL_CORE_BIO *cb, void *data, size_t dlen,
90 int ossl_core_bio_write_ex(OSSL_CORE_BIO *cb, const void *data, size_t dlen,
H A Ddane.h48 size_t dlen; member
/openssl/engines/
H A De_capi.c138 static DSA_SIG *capi_dsa_do_sign(const unsigned char *digest, int dlen,
952 DWORD dlen; in capi_rsa_priv_dec() local
993 dlen = flen; in capi_rsa_priv_dec()
994 if (!CryptDecrypt(capi_key->key, 0, TRUE, flags, tmpbuf, &dlen)) { in capi_rsa_priv_dec()
997 OPENSSL_cleanse(tmpbuf, dlen); in capi_rsa_priv_dec()
1001 memcpy(to, tmpbuf, (flen = (int)dlen)); in capi_rsa_priv_dec()
1042 if (dlen != 20) { in capi_dsa_do_sign()
1357 DWORD dlen; in capi_cert_get_fname() local
1361 NULL, &dlen)) in capi_cert_get_fname()
1363 wfname = OPENSSL_malloc(dlen); in capi_cert_get_fname()
[all …]
/openssl/include/openssl/
H A Dcmac.h41 const void *data, size_t dlen);
H A Ddsa.h118 OSSL_DEPRECATEDIN_3_0 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen,
142 int dlen, unsigned char *sig,
/openssl/include/crypto/
H A Ddsa.h33 int ossl_dsa_sign_int(int type, const unsigned char *dgst, int dlen,
H A Dec.h100 int ossl_ecdsa_deterministic_sign(const unsigned char *dgst, int dlen,
/openssl/ssl/
H A Dt1_trce.c1516 size_t dlen; in ssl_print_cert_request() local
1521 dlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1522 if (xlen < dlen + 2) in ssl_print_cert_request()
1526 BIO_printf(bio, "DistinguishedName (len=%d): ", (int)dlen); in ssl_print_cert_request()
1528 nm = d2i_X509_NAME(NULL, &p, dlen); in ssl_print_cert_request()
1536 xlen -= dlen + 2; in ssl_print_cert_request()
1537 msg += dlen; in ssl_print_cert_request()
/openssl/apps/lib/
H A Ds_cb.c1270 size_t dlen = 0; in print_verify_detail() local
1273 mdpth = SSL_get0_dane_tlsa(s, &usage, &selector, &mtype, &data, &dlen); in print_verify_detail()
1283 if (dlen > TLSA_TAIL_SIZE) in print_verify_detail()
1284 hexdata = hexencode(data + dlen - TLSA_TAIL_SIZE, TLSA_TAIL_SIZE); in print_verify_detail()
1286 hexdata = hexencode(data, dlen); in print_verify_detail()
1289 (dlen > TLSA_TAIL_SIZE) ? "..." : "", hexdata); in print_verify_detail()

Completed in 56 milliseconds

12