/external/openssh/ |
ssh-dss.c | 52 u_char digest[EVP_MAX_MD_SIZE], sigblob[SIGBLOB_LEN]; local 80 memset(sigblob, 0, SIGBLOB_LEN); 81 BN_bn2bin(sig->r, sigblob+ SIGBLOB_LEN - INTBLOB_LEN - rlen); 82 BN_bn2bin(sig->s, sigblob+ SIGBLOB_LEN - slen); 90 memcpy(*sigp, sigblob, SIGBLOB_LEN); 96 buffer_put_string(&b, sigblob, SIGBLOB_LEN); 115 u_char digest[EVP_MAX_MD_SIZE], *sigblob; local 128 sigblob = xmalloc(signaturelen); 129 memcpy(sigblob, signature, signaturelen); 144 sigblob = buffer_get_string(&b, &len) [all...] |
ssh-rsa.c | 114 u_char digest[EVP_MAX_MD_SIZE], *sigblob; local 138 sigblob = buffer_get_string(&b, &len); 143 xfree(sigblob); 150 xfree(sigblob); 156 sigblob = xrealloc(sigblob, 1, modlen); 157 memmove(sigblob + diff, sigblob, len); 158 memset(sigblob, 0, diff); 164 xfree(sigblob); [all...] |
ssh-ecdsa.c | 102 u_char digest[EVP_MAX_MD_SIZE], *sigblob; local 126 sigblob = buffer_get_string(&b, &len); 131 xfree(sigblob); 143 buffer_append(&bb, sigblob, len); 147 fatal("%s: remaining bytes in inner sigblob", __func__); 150 memset(sigblob, 0, len); 151 xfree(sigblob);
|
/external/dropbear/ |
signkey.c | 360 buffer *sigblob; local 362 sigblob = buf_new(MAX_PUBKEY_SIZE); 366 buf_put_dss_sign(sigblob, key->dsskey, data, len); 371 buf_put_rsa_sign(sigblob, key->rsakey, data, len); 374 if (sigblob->len == 0) { 378 buf_setpos(sigblob, 0); 379 buf_putstring(buf, buf_getptr(sigblob, sigblob->len), 380 sigblob->len); 382 buf_free(sigblob); [all...] |