/third_party/openssl/test/ |
D | dsatest.c | 335 unsigned int signature_len; in test_dsa_sig_infinite_loop() local 378 if (!TEST_true(DSA_sign(0, msg, sizeof(msg), NULL, &signature_len, dsa))) in test_dsa_sig_infinite_loop() 381 if (!TEST_true(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_infinite_loop() 388 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_infinite_loop() 398 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_infinite_loop() 421 unsigned int signature_len; in test_dsa_sig_neg_param() local 456 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_neg_param() 461 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_neg_param() 466 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_neg_param() 472 if (!TEST_false(DSA_sign(0, msg, sizeof(msg), signature, &signature_len, dsa))) in test_dsa_sig_neg_param()
|
/third_party/mbedtls/library/ |
D | ssl_tls13_generic.c | 171 size_t signature_len; in ssl_tls13_parse_certificate_verify() local 237 signature_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_certificate_verify() 239 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, signature_len); in ssl_tls13_parse_certificate_verify() 265 p, signature_len)) == 0) { in ssl_tls13_parse_certificate_verify() 955 size_t signature_len = 0; in ssl_tls13_write_certificate_verify_body() local 1033 p + 4, (size_t) (end - (p + 4)), &signature_len, in ssl_tls13_write_certificate_verify_body() 1061 MBEDTLS_PUT_UINT16_BE(signature_len, p, 2); in ssl_tls13_write_certificate_verify_body() 1063 *out_len = 4 + signature_len; in ssl_tls13_write_certificate_verify_body()
|
D | ssl_tls12_server.c | 2692 size_t *signature_len) in ssl_resume_server_key_exchange() argument 2703 sig_start, signature_len, sig_max_len); in ssl_resume_server_key_exchange() 2719 size_t *signature_len) in ssl_prepare_server_key_exchange() argument 2732 (void) signature_len; in ssl_prepare_server_key_exchange() 3127 return ssl_resume_server_key_exchange(ssl, signature_len); in ssl_prepare_server_key_exchange() 3152 signature_len, in ssl_prepare_server_key_exchange() 3172 size_t signature_len = 0; in ssl_write_server_key_exchange() local 3210 ret = ssl_resume_server_key_exchange(ssl, &signature_len); in ssl_write_server_key_exchange() 3216 ret = ssl_prepare_server_key_exchange(ssl, &signature_len); in ssl_write_server_key_exchange() 3236 if (signature_len != 0) { in ssl_write_server_key_exchange() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | dpp_crypto.c | 707 size_t prot_hdr_len = 0, signature_len = 0, signed_len; in dpp_process_signed_connector() local 768 signature = base64_url_decode(pos, os_strlen(pos), &signature_len); in dpp_process_signed_connector() 776 signature, signature_len); in dpp_process_signed_connector() 783 if (signature_len & 0x01) { in dpp_process_signed_connector() 786 (int) signature_len); in dpp_process_signed_connector() 813 signature, signature_len / 2, in dpp_process_signed_connector() 814 signature + signature_len / 2, in dpp_process_signed_connector() 815 signature_len / 2); in dpp_process_signed_connector() 2411 size_t signature_len = 0, signed3_len; in dpp_corrupt_connector_signature() local 2429 signature = base64_url_decode(pos, os_strlen(pos), &signature_len); in dpp_corrupt_connector_signature() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dpp.c | 4595 size_t signature_len; in dpp_build_conf_obj_dpp() local 4713 if (EVP_DigestSignFinal(md_ctx, NULL, &signature_len) != 1) { in dpp_build_conf_obj_dpp() 4718 signature = os_malloc(signature_len); in dpp_build_conf_obj_dpp() 4721 if (EVP_DigestSignFinal(md_ctx, signature, &signature_len) != 1) { in dpp_build_conf_obj_dpp() 4727 signature, signature_len); in dpp_build_conf_obj_dpp() 4730 sig = d2i_ECDSA_SIG(NULL, &p, signature_len); in dpp_build_conf_obj_dpp() 4738 signature_len = 2 * curve->prime_len; in dpp_build_conf_obj_dpp() 4740 signature, signature_len); in dpp_build_conf_obj_dpp() 4741 signed3 = (char *) base64_url_encode(signature, signature_len, in dpp_build_conf_obj_dpp() 5562 size_t prot_hdr_len = 0, signature_len = 0; in dpp_process_signed_connector() local [all …]
|