Searched refs:sig_s (Results 1 – 9 of 9) sorted by relevance
/openbsd/usr.bin/ssh/ |
H A D | ssh-dss.c | 259 const BIGNUM *sig_r, *sig_s; in ssh_dss_sign() local 285 DSA_SIG_get0(sig, &sig_r, &sig_s); in ssh_dss_sign() 287 slen = BN_num_bytes(sig_s); in ssh_dss_sign() 294 BN_bn2bin(sig_s, sigblob + SIGBLOB_LEN - slen); in ssh_dss_sign() 329 BIGNUM *sig_r = NULL, *sig_s = NULL; in ssh_dss_verify() local 368 (sig_s = BN_new()) == NULL) { in ssh_dss_verify() 373 (BN_bin2bn(sigblob + INTBLOB_LEN, INTBLOB_LEN, sig_s) == NULL)) { in ssh_dss_verify() 377 if (!DSA_SIG_set0(dsig, sig_r, sig_s)) { in ssh_dss_verify() 381 sig_r = sig_s = NULL; /* transferred */ in ssh_dss_verify() 404 BN_clear_free(sig_s); in ssh_dss_verify()
|
H A D | ssh-ecdsa.c | 318 const BIGNUM *sig_r, *sig_s; in ssh_ecdsa_sign() local 349 ECDSA_SIG_get0(esig, &sig_r, &sig_s); in ssh_ecdsa_sign() 351 (ret = sshbuf_put_bignum2(bb, sig_s)) != 0) in ssh_ecdsa_sign() 382 BIGNUM *sig_r = NULL, *sig_s = NULL; in ssh_ecdsa_verify() local 416 sshbuf_get_bignum2(sigbuf, &sig_s) != 0) { in ssh_ecdsa_verify() 429 if (!ECDSA_SIG_set0(esig, sig_r, sig_s)) { in ssh_ecdsa_verify() 433 sig_r = sig_s = NULL; /* transferred */ in ssh_ecdsa_verify() 459 BN_clear_free(sig_s); in ssh_ecdsa_verify()
|
H A D | ssh-ecdsa-sk.c | 223 BIGNUM *sig_r = NULL, *sig_s = NULL; in ssh_ecdsa_sk_verify() local 285 sshbuf_get_bignum2(sigbuf, &sig_s) != 0) { in ssh_ecdsa_sk_verify() 299 fprintf(stderr, "%s: sig_s: %s\n", __func__, (tmp = BN_bn2hex(sig_s))); in ssh_ecdsa_sk_verify() 314 if (!ECDSA_SIG_set0(esig, sig_r, sig_s)) { in ssh_ecdsa_sk_verify() 318 sig_r = sig_s = NULL; /* transferred */ in ssh_ecdsa_sk_verify() 416 BN_clear_free(sig_s); in ssh_ecdsa_sk_verify()
|
H A D | sk-usbhid.c | 907 const BIGNUM *sig_r, *sig_s; in pack_sig_ecdsa() local 918 ECDSA_SIG_get0(sig, &sig_r, &sig_s); in pack_sig_ecdsa() 920 response->sig_s_len = BN_num_bytes(sig_s); in pack_sig_ecdsa() 922 (response->sig_s = calloc(1, response->sig_s_len)) == NULL) { in pack_sig_ecdsa() 927 BN_bn2bin(sig_s, response->sig_s); in pack_sig_ecdsa() 933 free(response->sig_s); in pack_sig_ecdsa() 935 response->sig_s = NULL; in pack_sig_ecdsa() 1108 free(response->sig_s); in sk_sign()
|
H A D | sk-api.h | 60 uint8_t *sig_s; member
|
H A D | ssh-sk.c | 181 freezero(r->sig_s, r->sig_s_len); in sshsk_free_sign_response() 567 if (resp->sig_r == NULL || resp->sig_s == NULL) { in sshsk_ecdsa_sig() 580 resp->sig_s, resp->sig_s_len)) != 0) { in sshsk_ecdsa_sig() 594 sshbuf_dump_data(resp->sig_s, resp->sig_s_len, stderr); in sshsk_ecdsa_sig()
|
/openbsd/regress/usr.bin/ssh/misc/sk-dummy/ |
H A D | sk-dummy.c | 295 const BIGNUM *sig_r, *sig_s; in sig_ecdsa() local 352 ECDSA_SIG_get0(sig, &sig_r, &sig_s); in sig_ecdsa() 354 response->sig_s_len = BN_num_bytes(sig_s); in sig_ecdsa() 356 (response->sig_s = calloc(1, response->sig_s_len)) == NULL) { in sig_ecdsa() 361 BN_bn2bin(sig_s, response->sig_s); in sig_ecdsa() 370 free(response->sig_s); in sig_ecdsa() 372 response->sig_s = NULL; in sig_ecdsa() 509 free(response->sig_s); in sk_sign()
|
/openbsd/regress/lib/libcrypto/sm2/ |
H A D | sm2sigtest.c | 106 const BIGNUM *sig_s = NULL; in test_sm2() local 124 ECDSA_SIG_get0(sig, &sig_r, &sig_s); in test_sm2()
|
/openbsd/gnu/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/ |
H A D | RenderScriptRuntime.cpp | 2889 const auto sig_s = spec[0]; in ParseExportReduceCount() local 2891 if (sig_s.getAsInteger(10, sig)) { in ParseExportReduceCount() 2895 sig_s.str().c_str()); in ParseExportReduceCount()
|