Home
last modified time | relevance | path

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

12

/freebsd-11-stable/crypto/openssh/
HDssh-ecdsa.c120 struct sshbuf *b = NULL, *sigbuf = NULL; in ssh_ecdsa_verify() local
136 sshbuf_froms(b, &sigbuf) != 0) { in ssh_ecdsa_verify()
154 if (sshbuf_get_bignum2(sigbuf, sig->r) != 0 || in ssh_ecdsa_verify()
155 sshbuf_get_bignum2(sigbuf, sig->s) != 0) { in ssh_ecdsa_verify()
159 if (sshbuf_len(sigbuf) != 0) { in ssh_ecdsa_verify()
181 sshbuf_free(sigbuf); in ssh_ecdsa_verify()
HDserverloop.c640 struct sshbuf *sigbuf = NULL; in server_input_hostkeys_prove() local
647 if ((resp = sshbuf_new()) == NULL || (sigbuf = sshbuf_new()) == NULL) in server_input_hostkeys_prove()
677 sshbuf_reset(sigbuf); in server_input_hostkeys_prove()
680 if ((r = sshbuf_put_cstring(sigbuf, in server_input_hostkeys_prove()
682 (r = sshbuf_put_string(sigbuf, in server_input_hostkeys_prove()
684 (r = sshkey_puts(key, sigbuf)) != 0 || in server_input_hostkeys_prove()
686 sshbuf_ptr(sigbuf), sshbuf_len(sigbuf), NULL, 0)) != 0 || in server_input_hostkeys_prove()
700 sshbuf_free(sigbuf); in server_input_hostkeys_prove()
HDmonitor.c601 struct sshbuf *sigbuf = NULL; in mm_answer_sign() local
638 if ((sigbuf = sshbuf_new()) == NULL) in mm_answer_sign()
640 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || in mm_answer_sign()
641 (r = sshbuf_put_string(sigbuf, session_id2, in mm_answer_sign()
643 (r = sshkey_puts(key, sigbuf)) != 0) in mm_answer_sign()
646 if (datlen != sshbuf_len(sigbuf) || in mm_answer_sign()
647 memcmp(p, sshbuf_ptr(sigbuf), sshbuf_len(sigbuf)) != 0) in mm_answer_sign()
649 __func__, datlen, sshbuf_len(sigbuf)); in mm_answer_sign()
650 sshbuf_free(sigbuf); in mm_answer_sign()
HDssh-rsa.c308 u_char *sigbuf, size_t siglen, RSA *rsa) in openssh_RSA_verify() argument
333 if ((len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa, in openssh_RSA_verify()
/freebsd-11-stable/usr.bin/tip/tip/
HDtipout.c52 static jmp_buf sigbuf; variable
69 longjmp(sigbuf, 1); in intIOT()
104 longjmp(sigbuf, 1); in intEMT()
122 longjmp(sigbuf, 1); in intSYS()
144 (void) setjmp(sigbuf); in tipout()
/freebsd-11-stable/crypto/openssl/crypto/rsa/
HDrsa_sign.c171 const unsigned char *sigbuf, size_t siglen, RSA *rsa) in int_rsa_verify() argument
192 sigbuf, rm, rsa, RSA_PKCS1_PADDING); in int_rsa_verify()
208 i = RSA_public_decrypt((int)siglen, sigbuf, s, rsa, RSA_PKCS1_PADDING); in int_rsa_verify()
293 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) in RSA_verify() argument
297 return rsa->meth->rsa_verify(dtype, m, m_len, sigbuf, siglen, rsa); in RSA_verify()
300 return int_rsa_verify(dtype, m, m_len, NULL, NULL, sigbuf, siglen, rsa); in RSA_verify()
HDrsa_saos.c106 unsigned int m_len, unsigned char *sigbuf, in RSA_verify_ASN1_OCTET_STRING() argument
125 i = RSA_public_decrypt((int)siglen, sigbuf, s, rsa, RSA_PKCS1_PADDING); in RSA_verify_ASN1_OCTET_STRING()
HDrsa_locl.h3 size_t *prm_len, const unsigned char *sigbuf,
HDrsa.h121 unsigned int m_length, const unsigned char *sigbuf,
413 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
424 unsigned int m_length, unsigned char *sigbuf,
/freebsd-11-stable/crypto/openssl/crypto/ecdsa/
HDecs_vrf.c87 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ECDSA_verify() argument
90 const unsigned char *p = sigbuf; in ECDSA_verify()
102 if (derlen != sig_len || memcmp(sigbuf, der, derlen)) in ECDSA_verify()
/freebsd-11-stable/crypto/openssl/crypto/evp/
HDp_verify.c65 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, in EVP_VerifyFinal() argument
90 i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); in EVP_VerifyFinal()
115 sigbuf, siglen, pkey->pkey.ptr)); in EVP_VerifyFinal()
HDevp.h174 const unsigned char *sigbuf, unsigned int siglen,
188 const unsigned char *sigbuf,
654 int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
/freebsd-11-stable/crypto/openssl/apps/
HDdgst.c122 unsigned char *sigbuf = NULL; in MAIN() local
462 sigbuf = OPENSSL_malloc(siglen); in MAIN()
468 if (!sigbuf) { in MAIN()
473 siglen = BIO_read(sigbio, sigbuf, siglen); in MAIN()
491 err = do_fp(out, buf, inp, separator, out_bin, sigkey, sigbuf, in MAIN()
514 r = do_fp(out, buf, inp, separator, out_bin, sigkey, sigbuf, in MAIN()
536 if (sigbuf) in MAIN()
537 OPENSSL_free(sigbuf); in MAIN()
/freebsd-11-stable/crypto/openssl/crypto/dsa/
HDdsa_asn1.c177 const unsigned char *sigbuf, int siglen, DSA *dsa) in DSA_verify() argument
180 const unsigned char *p = sigbuf; in DSA_verify()
192 if (derlen != siglen || memcmp(sigbuf, der, derlen)) in DSA_verify()
HDdsa.h214 const unsigned char *sigbuf, int siglen, DSA *dsa);
/freebsd-11-stable/sys/netsmb/
HDsmb_crypt.c270 u_char sigbuf[8]; in smb_rq_verify() local
294 *(u_int32_t *)sigbuf = htole32(rqp->sr_rseqno); in smb_rq_verify()
295 *(u_int32_t *)(sigbuf + 4) = 0; in smb_rq_verify()
296 MD5Update(&md5, sigbuf, 8); in smb_rq_verify()
/freebsd-11-stable/contrib/dma/
HDutil.c232 static sigjmp_buf sigbuf; variable
240 siglongjmp(sigbuf, 1); in sigalrm_handler()
257 ret = sigsetjmp(sigbuf, 1); in do_timeout()
/freebsd-11-stable/crypto/openssl/doc/crypto/
HDRSA_sign_ASN1_OCTET_STRING.pod16 unsigned int m_len, unsigned char *sigbuf, unsigned int siglen,
31 RSA_verify_ASN1_OCTET_STRING() verifies that the signature B<sigbuf>
HDRSA_sign.pod15 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
34 RSA_verify() verifies that the signature B<sigbuf> of size B<siglen>
HDDSA_sign.pod18 unsigned char *sigbuf, int siglen, DSA *dsa);
39 DSA_verify() verifies that the signature B<sigbuf> of size B<siglen>
HDEVP_VerifyInit.pod13 int EVP_VerifyFinal(EVP_MD_CTX *ctx,unsigned char *sigbuf, unsigned int siglen,EVP_PKEY *pkey);
31 and against the B<siglen> bytes at B<sigbuf>.
HDrsa.pod27 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
60 unsigned int m_len, unsigned char *sigbuf, unsigned int siglen,
HDdsa.pod30 const unsigned char *sigbuf, int siglen, DSA *dsa);
/freebsd-11-stable/contrib/libucl/src/
HDucl_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
989 if (!ucl_fetch_file (filebuf, &sigbuf, &siglen, &parser->err, true)) {
992 if (!ucl_sig_check (buf, buflen, sigbuf, siglen, parser)) {
996 if (sigbuf) {
997 ucl_munmap (sigbuf, siglen);
[all …]
/freebsd-11-stable/crypto/openssl/engines/
HDe_4758cca.c97 unsigned int m_len, const unsigned char *sigbuf,
619 unsigned int m_len, const unsigned char *sigbuf, in cca_rsa_verify() argument
718 &lsiglen, (unsigned char *)sigbuf); in cca_rsa_verify()

12