Searched refs:sigblob (Results 1 – 2 of 2) sorted by relevance
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | ssh-dss.c | 51 u_char digest[EVP_MAX_MD_SIZE], sigblob[SIGBLOB_LEN]; in ssh_dss_sign() local 78 memset(sigblob, 0, SIGBLOB_LEN); in ssh_dss_sign() 79 BN_bn2bin(sig->r, sigblob+ SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign() 80 BN_bn2bin(sig->s, sigblob+ SIGBLOB_LEN - slen); in ssh_dss_sign() 88 memcpy(*sigp, sigblob, SIGBLOB_LEN); in ssh_dss_sign() 94 buffer_put_string(&b, sigblob, SIGBLOB_LEN); in ssh_dss_sign() 113 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_dss_verify() local 125 sigblob = signature; in ssh_dss_verify() 140 sigblob = buffer_get_string(&b, &len); in ssh_dss_verify() 146 xfree(sigblob); in ssh_dss_verify() [all …]
|
H A D | ssh-rsa.c | 118 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_rsa_verify() local 141 sigblob = buffer_get_string(&b, &len); in ssh_rsa_verify() 146 xfree(sigblob); in ssh_rsa_verify() 153 xfree(sigblob); in ssh_rsa_verify() 159 sigblob = xrealloc(sigblob, modlen); in ssh_rsa_verify() 160 memmove(sigblob + diff, sigblob, len); in ssh_rsa_verify() 161 memset(sigblob, 0, diff); in ssh_rsa_verify() 167 xfree(sigblob); in ssh_rsa_verify() 174 ret = openssh_RSA_verify(nid, digest, dlen, sigblob, len, key->rsa); in ssh_rsa_verify() 176 memset(sigblob, 's', len); in ssh_rsa_verify() [all …]
|