Home
last modified time | relevance | path

Searched refs:tbslen (Results 1 – 24 of 24) sorted by relevance

/third_party/boringssl/src/crypto/evp/
Dp_ed25519.c50 size_t tbslen) { in pkey_ed25519_sign_message() argument
67 if (!ED25519_sign(sig, tbs, tbslen, key->key.priv)) { in pkey_ed25519_sign_message()
77 size_t tbslen) { in pkey_ed25519_verify_message() argument
80 !ED25519_verify(tbs, tbslen, sig, key->key.pub.value)) { in pkey_ed25519_verify_message()
Dinternal.h207 const uint8_t *tbs, size_t tbslen);
210 const uint8_t *tbs, size_t tbslen);
213 const uint8_t *tbs, size_t tbslen);
216 const uint8_t *tbs, size_t tbslen);
Dp_ec.c120 const uint8_t *tbs, size_t tbslen) { in pkey_ec_sign() argument
132 if (!ECDSA_sign(0, tbs, tbslen, sig, &sltmp, ec)) { in pkey_ec_sign()
140 const uint8_t *tbs, size_t tbslen) { in pkey_ec_verify() argument
141 return ECDSA_verify(0, tbs, tbslen, sig, siglen, ctx->pkey->pkey.ec); in pkey_ec_verify()
Dp_rsa.c173 const uint8_t *tbs, size_t tbslen) { in pkey_rsa_sign() argument
192 if (!RSA_sign(EVP_MD_type(rctx->md), tbs, tbslen, sig, &out_len, rsa)) { in pkey_rsa_sign()
199 return RSA_sign_pss_mgf1(rsa, siglen, sig, *siglen, tbs, tbslen, in pkey_rsa_sign()
207 return RSA_sign_raw(rsa, siglen, sig, *siglen, tbs, tbslen, rctx->pad_mode); in pkey_rsa_sign()
212 size_t tbslen) { in pkey_rsa_verify() argument
219 return RSA_verify(EVP_MD_type(rctx->md), tbs, tbslen, sig, siglen, rsa); in pkey_rsa_verify()
222 return RSA_verify_pss_mgf1(rsa, tbs, tbslen, rctx->md, rctx->mgf1md, in pkey_rsa_verify()
235 rslen != tbslen || in pkey_rsa_verify()
/third_party/openssl/crypto/dsa/
Ddsa_pmeth.c73 size_t tbslen) in pkey_dsa_sign() argument
80 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_size(dctx->md)) in pkey_dsa_sign()
83 ret = DSA_sign(0, tbs, tbslen, sig, &sltmp, dsa); in pkey_dsa_sign()
93 const unsigned char *tbs, size_t tbslen) in pkey_dsa_verify() argument
99 if (dctx->md != NULL && tbslen != (size_t)EVP_MD_size(dctx->md)) in pkey_dsa_verify()
102 ret = DSA_verify(0, tbs, tbslen, sig, siglen, dsa); in pkey_dsa_verify()
/third_party/openssl/crypto/rsa/
Drsa_pmeth.c126 size_t tbslen) in pkey_rsa_sign() argument
133 if (tbslen != (size_t)EVP_MD_size(rctx->md)) { in pkey_rsa_sign()
143 tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
149 if ((size_t)EVP_PKEY_size(ctx->pkey) < tbslen + 1) { in pkey_rsa_sign()
157 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
158 rctx->tbuf[tbslen] = RSA_X931_hash_id(EVP_MD_type(rctx->md)); in pkey_rsa_sign()
159 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign()
164 tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
182 ret = RSA_private_encrypt(tbslen, tbs, sig, ctx->pkey->pkey.rsa, in pkey_rsa_sign()
243 const unsigned char *tbs, size_t tbslen) in pkey_rsa_verify() argument
[all …]
/third_party/openssl/crypto/evp/
Dm_sigver.c164 const unsigned char *tbs, size_t tbslen) in EVP_DigestSign() argument
167 return ctx->pctx->pmeth->digestsign(ctx, sigret, siglen, tbs, tbslen); in EVP_DigestSign()
168 if (sigret != NULL && EVP_DigestSignUpdate(ctx, tbs, tbslen) <= 0) in EVP_DigestSign()
211 size_t siglen, const unsigned char *tbs, size_t tbslen) in EVP_DigestVerify() argument
214 return ctx->pctx->pmeth->digestverify(ctx, sigret, siglen, tbs, tbslen); in EVP_DigestVerify()
215 if (EVP_DigestVerifyUpdate(ctx, tbs, tbslen) <= 0) in EVP_DigestVerify()
Dpmeth_lib.c542 size_t tbslen)) in EVP_PKEY_meth_set_sign() argument
554 size_t tbslen)) in EVP_PKEY_meth_set_verify() argument
570 size_t tbslen)) in EVP_PKEY_meth_set_verify_recover() argument
647 const unsigned char *tbs, size_t tbslen)) in EVP_PKEY_meth_set_digestsign() argument
655 size_t tbslen)) in EVP_PKEY_meth_set_digestverify() argument
731 size_t tbslen)) in EVP_PKEY_meth_get_sign() argument
745 size_t tbslen)) in EVP_PKEY_meth_get_verify() argument
763 size_t tbslen)) in EVP_PKEY_meth_get_verify_recover() argument
854 const unsigned char *tbs, size_t tbslen)) in EVP_PKEY_meth_get_digestsign() argument
863 size_t tbslen)) in EVP_PKEY_meth_get_digestverify() argument
Dpmeth_fn.c54 const unsigned char *tbs, size_t tbslen) in EVP_PKEY_sign() argument
66 return ctx->pmeth->sign(ctx, sig, siglen, tbs, tbslen); in EVP_PKEY_sign()
88 const unsigned char *tbs, size_t tbslen) in EVP_PKEY_verify() argument
99 return ctx->pmeth->verify(ctx, sig, siglen, tbs, tbslen); in EVP_PKEY_verify()
/third_party/openssl/doc/man3/
DEVP_PKEY_meth_new.pod61 size_t tbslen));
68 size_t tbslen));
79 size_t tbslen));
124 size_t tbslen));
130 size_t tbslen));
161 size_t tbslen));
168 size_t tbslen));
179 size_t tbslen));
224 size_t tbslen));
230 size_t tbslen));
[all …]
DEVP_PKEY_verify.pod14 const unsigned char *tbs, size_t tbslen);
24 signed) is specified using the B<tbs> and B<tbslen> parameters.
DEVP_PKEY_sign.pod14 const unsigned char *tbs, size_t tbslen);
23 B<tbslen> parameters. If B<sig> is B<NULL> then the maximum size of the output
DEVP_DigestVerifyInit.pod18 size_t siglen, const unsigned char *tbs, size_t tbslen);
46 EVP_DigestVerify() verifies B<tbslen> bytes at B<tbs> against the signature
DEVP_DigestSignInit.pod19 size_t tbslen);
99 EVP_DigestSign() signs B<tbslen> bytes of data at B<tbs> and places the
/third_party/openssl/crypto/ec/
Decx_meth.c740 size_t tbslen) in pkey_ecd_digestsign25519() argument
753 if (ED25519_sign(sig, tbs, tbslen, edkey->pubkey, edkey->privkey) == 0) in pkey_ecd_digestsign25519()
761 size_t tbslen) in pkey_ecd_digestsign448() argument
774 if (ED448_sign(sig, tbs, tbslen, edkey->pubkey, edkey->privkey, NULL, in pkey_ecd_digestsign448()
783 size_t tbslen) in pkey_ecd_digestverify25519() argument
790 return ED25519_verify(tbs, tbslen, sig, edkey->pubkey); in pkey_ecd_digestverify25519()
795 size_t tbslen) in pkey_ecd_digestverify448() argument
802 return ED448_verify(tbs, tbslen, sig, edkey->pubkey, NULL, 0); in pkey_ecd_digestverify448()
Dec_pmeth.c101 const unsigned char *tbs, size_t tbslen) in pkey_ec_sign() argument
125 ret = ECDSA_sign(type, tbs, tbslen, sig, &sltmp, ec); in pkey_ec_sign()
135 const unsigned char *tbs, size_t tbslen) in pkey_ec_verify() argument
146 ret = ECDSA_verify(type, tbs, tbslen, sig, siglen, ec); in pkey_ec_verify()
/third_party/openssl/crypto/sm2/
Dsm2_pmeth.c89 const unsigned char *tbs, size_t tbslen) in pkey_sm2_sign() argument
110 ret = sm2_sign(tbs, tbslen, sig, &sltmp, ec); in pkey_sm2_sign()
120 const unsigned char *tbs, size_t tbslen) in pkey_sm2_verify() argument
124 return sm2_verify(tbs, tbslen, sig, siglen, ec); in pkey_sm2_verify()
/third_party/openssl/include/openssl/
Devp.h625 size_t tbslen);
632 size_t tbslen);
1386 const unsigned char *tbs, size_t tbslen);
1390 const unsigned char *tbs, size_t tbslen);
1448 size_t tbslen));
1456 size_t tbslen));
1468 size_t tbslen));
1520 size_t tbslen));
1527 size_t tbslen));
1567 size_t tbslen));
[all …]
/third_party/openssl/include/crypto/
Devp.h55 const unsigned char *tbs, size_t tbslen);
59 const unsigned char *tbs, size_t tbslen);
81 const unsigned char *tbs, size_t tbslen);
84 size_t tbslen);
/third_party/openssl/test/
Denginetest.c191 size_t *siglen, const unsigned char *tbs, size_t tbslen) in test_encrypt() argument
Devp_test.c1082 const unsigned char *tbs, size_t tbslen);
1101 size_t tbslen)) in pkey_test_init() argument
/third_party/openssl/ssl/statem/
Dstatem_lib.c2373 size_t tbslen = 2 * SSL3_RANDOM_SIZE + paramlen; in construct_key_exchange_tbs() local
2374 unsigned char *tbs = OPENSSL_malloc(tbslen); in construct_key_exchange_tbs()
2387 return tbslen; in construct_key_exchange_tbs()
Dstatem_clnt.c2307 size_t tbslen; in tls_process_key_exchange() local
2395 tbslen = construct_key_exchange_tbs(s, &tbs, PACKET_data(&params), in tls_process_key_exchange()
2397 if (tbslen == 0) { in tls_process_key_exchange()
2403 PACKET_remaining(&signature), tbs, tbslen); in tls_process_key_exchange()
Dstatem_srvr.c2772 size_t siglen, tbslen; in tls_construct_server_key_exchange() local
2819 tbslen = construct_key_exchange_tbs(s, &tbs, in tls_construct_server_key_exchange()
2822 if (tbslen == 0) { in tls_construct_server_key_exchange()
2826 rv = EVP_DigestSign(md_ctx, sigbytes1, &siglen, tbs, tbslen); in tls_construct_server_key_exchange()