Home
last modified time | relevance | path

Searched refs:sigblob (Results 1 – 4 of 4) sorted by relevance

/external/openssh/
Dssh-dss.c52 u_char digest[EVP_MAX_MD_SIZE], sigblob[SIGBLOB_LEN]; in ssh_dss_sign() local
80 memset(sigblob, 0, SIGBLOB_LEN); in ssh_dss_sign()
81 BN_bn2bin(sig->r, sigblob+ SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign()
82 BN_bn2bin(sig->s, sigblob+ SIGBLOB_LEN - slen); in ssh_dss_sign()
90 memcpy(*sigp, sigblob, SIGBLOB_LEN); in ssh_dss_sign()
96 buffer_put_string(&b, sigblob, SIGBLOB_LEN); in ssh_dss_sign()
115 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_dss_verify() local
128 sigblob = xmalloc(signaturelen); in ssh_dss_verify()
129 memcpy(sigblob, signature, signaturelen); in ssh_dss_verify()
144 sigblob = buffer_get_string(&b, &len); in ssh_dss_verify()
[all …]
Dssh-rsa.c114 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_rsa_verify() local
138 sigblob = buffer_get_string(&b, &len); in ssh_rsa_verify()
143 xfree(sigblob); in ssh_rsa_verify()
150 xfree(sigblob); in ssh_rsa_verify()
156 sigblob = xrealloc(sigblob, 1, modlen); in ssh_rsa_verify()
157 memmove(sigblob + diff, sigblob, len); in ssh_rsa_verify()
158 memset(sigblob, 0, diff); in ssh_rsa_verify()
164 xfree(sigblob); in ssh_rsa_verify()
171 ret = openssh_RSA_verify(nid, digest, dlen, sigblob, len, key->rsa); in ssh_rsa_verify()
173 memset(sigblob, 's', len); in ssh_rsa_verify()
[all …]
Dssh-ecdsa.c102 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_ecdsa_verify() local
126 sigblob = buffer_get_string(&b, &len); in ssh_ecdsa_verify()
131 xfree(sigblob); in ssh_ecdsa_verify()
143 buffer_append(&bb, sigblob, len); in ssh_ecdsa_verify()
150 memset(sigblob, 0, len); in ssh_ecdsa_verify()
151 xfree(sigblob); in ssh_ecdsa_verify()
/external/dropbear/
Dsignkey.c360 buffer *sigblob; in buf_put_sign() local
362 sigblob = buf_new(MAX_PUBKEY_SIZE); in buf_put_sign()
366 buf_put_dss_sign(sigblob, key->dsskey, data, len); in buf_put_sign()
371 buf_put_rsa_sign(sigblob, key->rsakey, data, len); in buf_put_sign()
374 if (sigblob->len == 0) { in buf_put_sign()
378 buf_setpos(sigblob, 0); in buf_put_sign()
379 buf_putstring(buf, buf_getptr(sigblob, sigblob->len), in buf_put_sign()
380 sigblob->len); in buf_put_sign()
382 buf_free(sigblob); in buf_put_sign()