Lines Matching refs:sigblob
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()
185 if ((BN_bin2bn(sigblob, INTBLOB_LEN, sig->r) == NULL) || in ssh_dss_verify()
186 (BN_bin2bn(sigblob+ INTBLOB_LEN, INTBLOB_LEN, sig->s) == NULL)) { in ssh_dss_verify()
216 if (sigblob != NULL) { in ssh_dss_verify()
217 explicit_bzero(sigblob, len); in ssh_dss_verify()
218 free(sigblob); in ssh_dss_verify()