Home
last modified time | relevance | path

Searched refs:sig_s (Results 1 – 9 of 9) sorted by relevance

/openbsd/usr.bin/ssh/
H A Dssh-dss.c259 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 Dssh-ecdsa.c318 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 Dssh-ecdsa-sk.c223 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 Dsk-usbhid.c907 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 Dsk-api.h60 uint8_t *sig_s; member
H A Dssh-sk.c181 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 Dsk-dummy.c295 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 Dsm2sigtest.c106 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 DRenderScriptRuntime.cpp2889 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()