Searched refs:sigblob (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | ssh-dss.c | 54 u_char digest[SSH_DIGEST_MAX_LENGTH], sigblob[SIGBLOB_LEN]; in ssh_dss_sign() local 85 explicit_bzero(sigblob, SIGBLOB_LEN); in ssh_dss_sign() 86 BN_bn2bin(sig->r, sigblob + SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign() 87 BN_bn2bin(sig->s, sigblob + SIGBLOB_LEN - slen); in ssh_dss_sign() 95 memcpy(*sigp, sigblob, SIGBLOB_LEN); in ssh_dss_sign() 107 (ret = sshbuf_put_string(b, sigblob, SIGBLOB_LEN)) != 0) in ssh_dss_sign() 136 u_char digest[SSH_DIGEST_MAX_LENGTH], *sigblob = NULL; in ssh_dss_verify() local 150 if ((sigblob = malloc(signaturelen)) == NULL) in ssh_dss_verify() 152 memcpy(sigblob, signature, signaturelen); in ssh_dss_verify() 159 sshbuf_get_string(b, &sigblob, &len) != 0) { in ssh_dss_verify() [all …]
|
D | ssh-rsa.c | 128 u_char digest[SSH_DIGEST_MAX_LENGTH], *osigblob, *sigblob = NULL; in ssh_rsa_verify() local 145 if (sshbuf_get_string(b, &sigblob, &len) != 0) { in ssh_rsa_verify() 160 osigblob = sigblob; in ssh_rsa_verify() 161 if ((sigblob = realloc(sigblob, modlen)) == NULL) { in ssh_rsa_verify() 162 sigblob = osigblob; /* put it back for clear/free */ in ssh_rsa_verify() 166 memmove(sigblob + diff, sigblob, len); in ssh_rsa_verify() 167 explicit_bzero(sigblob, diff); in ssh_rsa_verify() 179 ret = openssh_RSA_verify(hash_alg, digest, dlen, sigblob, len, in ssh_rsa_verify() 182 if (sigblob != NULL) { in ssh_rsa_verify() 183 explicit_bzero(sigblob, len); in ssh_rsa_verify() [all …]
|
D | ssh-ed25519.c | 101 const u_char *sigblob; in ssh_ed25519_verify() local 116 (r = sshbuf_get_string_direct(b, &sigblob, &len)) != 0) in ssh_ed25519_verify() 140 memcpy(sm, sigblob, len); in ssh_ed25519_verify()
|