Searched refs:sigblob (Results 1 – 4 of 4) 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() 135 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 | 171 u_char digest[SSH_DIGEST_MAX_LENGTH], *osigblob, *sigblob = NULL; in ssh_rsa_verify() local 189 if (sshbuf_get_string(b, &sigblob, &len) != 0) { in ssh_rsa_verify() 204 osigblob = sigblob; in ssh_rsa_verify() 205 if ((sigblob = realloc(sigblob, modlen)) == NULL) { in ssh_rsa_verify() 206 sigblob = osigblob; /* put it back for clear/free */ in ssh_rsa_verify() 210 memmove(sigblob + diff, sigblob, len); in ssh_rsa_verify() 211 explicit_bzero(sigblob, diff); in ssh_rsa_verify() 222 ret = openssh_RSA_verify(hash_alg, digest, dlen, sigblob, len, in ssh_rsa_verify() 225 if (sigblob != NULL) { in ssh_rsa_verify() 226 explicit_bzero(sigblob, len); in ssh_rsa_verify() [all …]
|
D | ssh-ed25519.c | 101 const u_char *sigblob; in ssh_ed25519_verify() local 117 (r = sshbuf_get_string_direct(b, &sigblob, &len)) != 0) in ssh_ed25519_verify() 141 memcpy(sm, sigblob, len); in ssh_ed25519_verify()
|
/external/openssh/regress/unittests/sshkey/ |
D | test_sshkey.c | 59 u_char *sigblob; in build_cert() local 102 ASSERT_INT_EQ(sshkey_sign(sign_key, &sigblob, &siglen, in build_cert() 104 ASSERT_INT_EQ(sshbuf_put_string(b, sigblob, siglen), 0); /* signature */ in build_cert() 106 free(sigblob); in build_cert()
|