/third_party/boringssl/src/crypto/evp/ |
D | p_ed25519.c | 50 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()
|
D | internal.h | 207 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);
|
D | p_ec.c | 120 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()
|
D | p_rsa.c | 173 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/ |
D | dsa_pmeth.c | 73 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/ |
D | rsa_pmeth.c | 126 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/ |
D | m_sigver.c | 164 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()
|
D | pmeth_lib.c | 542 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
|
D | pmeth_fn.c | 54 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/ |
D | EVP_PKEY_meth_new.pod | 61 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 …]
|
D | EVP_PKEY_verify.pod | 14 const unsigned char *tbs, size_t tbslen); 24 signed) is specified using the B<tbs> and B<tbslen> parameters.
|
D | EVP_PKEY_sign.pod | 14 const unsigned char *tbs, size_t tbslen); 23 B<tbslen> parameters. If B<sig> is B<NULL> then the maximum size of the output
|
D | EVP_DigestVerifyInit.pod | 18 size_t siglen, const unsigned char *tbs, size_t tbslen); 46 EVP_DigestVerify() verifies B<tbslen> bytes at B<tbs> against the signature
|
D | EVP_DigestSignInit.pod | 19 size_t tbslen); 99 EVP_DigestSign() signs B<tbslen> bytes of data at B<tbs> and places the
|
/third_party/openssl/crypto/ec/ |
D | ecx_meth.c | 740 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()
|
D | ec_pmeth.c | 101 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/ |
D | sm2_pmeth.c | 89 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/ |
D | evp.h | 625 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/ |
D | evp.h | 55 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/ |
D | enginetest.c | 191 size_t *siglen, const unsigned char *tbs, size_t tbslen) in test_encrypt() argument
|
D | evp_test.c | 1082 const unsigned char *tbs, size_t tbslen); 1101 size_t tbslen)) in pkey_test_init() argument
|
/third_party/openssl/ssl/statem/ |
D | statem_lib.c | 2373 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()
|
D | statem_clnt.c | 2307 size_t tbslen; in tls_process_key_exchange() local 2395 tbslen = construct_key_exchange_tbs(s, &tbs, PACKET_data(¶ms), 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()
|
D | statem_srvr.c | 2772 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()
|