Home
last modified time | relevance | path

Searched refs:sigbuf (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-12.1/crypto/openssh/
H A Dssh-ecdsa.c124 struct sshbuf *b = NULL, *sigbuf = NULL; in ssh_ecdsa_verify() local
140 sshbuf_froms(b, &sigbuf) != 0) { in ssh_ecdsa_verify()
160 if (sshbuf_get_bignum2(sigbuf, sig_r) != 0 || in ssh_ecdsa_verify()
161 sshbuf_get_bignum2(sigbuf, sig_s) != 0) { in ssh_ecdsa_verify()
171 if (sshbuf_len(sigbuf) != 0) { in ssh_ecdsa_verify()
193 sshbuf_free(sigbuf); in ssh_ecdsa_verify()
H A Dserverloop.c680 struct sshbuf *sigbuf = NULL; in server_input_hostkeys_prove() local
687 if ((resp = sshbuf_new()) == NULL || (sigbuf = sshbuf_new()) == NULL) in server_input_hostkeys_prove()
719 sshbuf_reset(sigbuf); in server_input_hostkeys_prove()
728 if ((r = sshbuf_put_cstring(sigbuf, in server_input_hostkeys_prove()
730 (r = sshbuf_put_string(sigbuf, in server_input_hostkeys_prove()
732 (r = sshkey_puts(key, sigbuf)) != 0 || in server_input_hostkeys_prove()
734 sshbuf_ptr(sigbuf), sshbuf_len(sigbuf), in server_input_hostkeys_prove()
749 sshbuf_free(sigbuf); in server_input_hostkeys_prove()
H A Dmonitor.c621 struct sshbuf *sigbuf = NULL; in mm_answer_sign() local
659 if ((sigbuf = sshbuf_new()) == NULL) in mm_answer_sign()
661 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign()
662 (r = sshbuf_put_string(sigbuf, session_id2, in mm_answer_sign()
664 (r = sshkey_puts(key, sigbuf)) != 0) in mm_answer_sign()
667 if (datlen != sshbuf_len(sigbuf) || in mm_answer_sign()
668 memcmp(p, sshbuf_ptr(sigbuf), sshbuf_len(sigbuf)) != 0) in mm_answer_sign()
670 __func__, datlen, sshbuf_len(sigbuf)); in mm_answer_sign()
671 sshbuf_free(sigbuf); in mm_answer_sign()
H A Dssh-rsa.c404 u_char *sigbuf, size_t siglen, RSA *rsa) in openssh_RSA_verify() argument
429 if ((len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa, in openssh_RSA_verify()
/freebsd-12.1/usr.bin/tip/tip/
H A Dtipout.c54 static jmp_buf sigbuf; variable
71 longjmp(sigbuf, 1); in intIOT()
106 longjmp(sigbuf, 1); in intEMT()
124 longjmp(sigbuf, 1); in intSYS()
146 (void) setjmp(sigbuf); in tipout()
/freebsd-12.1/crypto/openssl/crypto/rsa/
H A Drsa_sign.c126 const unsigned char *sigbuf, size_t siglen, RSA *rsa) in int_rsa_verify() argument
143 decrypt_len = RSA_public_decrypt((int)siglen, sigbuf, decrypt_buf, rsa, in int_rsa_verify()
240 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) in RSA_verify() argument
244 return rsa->meth->rsa_verify(type, m, m_len, sigbuf, siglen, rsa); in RSA_verify()
247 return int_rsa_verify(type, m, m_len, NULL, NULL, sigbuf, siglen, rsa); in RSA_verify()
H A Drsa_saos.c56 unsigned int m_len, unsigned char *sigbuf, in RSA_verify_ASN1_OCTET_STRING() argument
75 i = RSA_public_decrypt((int)siglen, sigbuf, s, rsa, RSA_PKCS1_PADDING); in RSA_verify_ASN1_OCTET_STRING()
H A Drsa_locl.h102 unsigned int m_length, const unsigned char *sigbuf,
117 size_t *prm_len, const unsigned char *sigbuf,
H A Drsa_meth.c244 unsigned int m_length, const unsigned char *sigbuf, in RSA_meth_get_verify()
253 const unsigned char *sigbuf, in RSA_meth_set_verify() argument
/freebsd-12.1/crypto/openssl/crypto/ec/
H A Decdsa_vrf.c36 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify() argument
39 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify()
H A Decdsa_ossl.c293 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify() argument
296 const unsigned char *p = sigbuf; in ossl_ecdsa_verify()
308 if (derlen != sig_len || memcmp(sigbuf, der, derlen) != 0) in ossl_ecdsa_verify()
H A Dec_kmeth.c228 const unsigned char *sigbuf, in EC_KEY_METHOD_set_verify() argument
306 const unsigned char *sigbuf, in EC_KEY_METHOD_get_verify() argument
/freebsd-12.1/crypto/openssl/apps/
H A Ddgst.c92 unsigned char *buf = NULL, *sigbuf = NULL; in dgst_main() local
352 sigbuf = app_malloc(siglen, "signature buffer"); in dgst_main()
353 siglen = BIO_read(sigbio, sigbuf, siglen); in dgst_main()
371 ret = do_fp(out, buf, inp, separator, out_bin, sigkey, sigbuf, in dgst_main()
394 r = do_fp(out, buf, inp, separator, out_bin, sigkey, sigbuf, in dgst_main()
410 OPENSSL_free(sigbuf); in dgst_main()
/freebsd-12.1/crypto/openssl/crypto/evp/
H A Dp_verify.c17 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, in EVP_VerifyFinal() argument
51 i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); in EVP_VerifyFinal()
/freebsd-12.1/sys/netsmb/
H A Dsmb_crypt.c272 u_char sigbuf[8]; in smb_rq_verify() local
296 *(u_int32_t *)sigbuf = htole32(rqp->sr_rseqno); in smb_rq_verify()
297 *(u_int32_t *)(sigbuf + 4) = 0; in smb_rq_verify()
298 MD5Update(&md5, sigbuf, 8); in smb_rq_verify()
/freebsd-12.1/crypto/openssl/crypto/dsa/
H A Ddsa_asn1.c133 const unsigned char *sigbuf, int siglen, DSA *dsa) in DSA_verify() argument
136 const unsigned char *p = sigbuf; in DSA_verify()
148 if (derlen != siglen || memcmp(sigbuf, der, derlen)) in DSA_verify()
/freebsd-12.1/contrib/dma/
H A Dutil.c233 static sigjmp_buf sigbuf; variable
241 siglongjmp(sigbuf, 1); in sigalrm_handler()
258 ret = sigsetjmp(sigbuf, 1); in do_timeout()
/freebsd-12.1/crypto/openssl/doc/man3/
H A DRSA_sign_ASN1_OCTET_STRING.pod16 unsigned int m_len, unsigned char *sigbuf,
34 RSA_verify_ASN1_OCTET_STRING() verifies that the signature B<sigbuf>
H A DRSA_sign.pod15 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
34 RSA_verify() verifies that the signature B<sigbuf> of size B<siglen>
H A DDSA_sign.pod17 unsigned char *sigbuf, int siglen, DSA *dsa);
33 DSA_verify() verifies that the signature B<sigbuf> of size B<siglen>
H A DEVP_VerifyInit.pod15 int EVP_VerifyFinal(EVP_MD_CTX *ctx, unsigned char *sigbuf, unsigned int siglen,
34 and against the B<siglen> bytes at B<sigbuf>.
H A DRSA_meth_new.pod101 const unsigned char *sigbuf,
106 const unsigned char *sigbuf,
/freebsd-12.1/crypto/openssl/include/openssl/
H A Drsa.h316 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
327 unsigned int m_length, unsigned char *sigbuf,
489 unsigned int m_length, const unsigned char *sigbuf,
494 const unsigned char *sigbuf,
H A Ddsa.h106 const unsigned char *sigbuf, int siglen, DSA *dsa);
/freebsd-12.1/contrib/libucl/src/
H A Ducl_util.c880 unsigned char *sigbuf = NULL; local
884 if (!ucl_fetch_url (urlbuf, &sigbuf, &siglen, &parser->err, true)) {
887 if (!ucl_sig_check (buf, buflen, sigbuf, siglen, parser)) {
892 ucl_munmap (sigbuf, siglen);
897 ucl_munmap (sigbuf, siglen);
985 unsigned char *sigbuf = NULL; local
992 if (!ucl_sig_check (buf, buflen, sigbuf, siglen, parser)) {
996 if (sigbuf) {
997 ucl_munmap (sigbuf, siglen);
1001 if (sigbuf) {
[all …]

12