Lines Matching defs:sig
48 DSA_SIG *sig;
63 sig = DSA_do_sign(digest, dlen, key->dsa);
66 if (sig == NULL) {
71 rlen = BN_num_bytes(sig->r);
72 slen = BN_num_bytes(sig->s);
74 error("bad sig size %u %u", rlen, slen);
75 DSA_SIG_free(sig);
79 BN_bn2bin(sig->r, sigblob+ SIGBLOB_LEN - INTBLOB_LEN - rlen);
80 BN_bn2bin(sig->s, sigblob+ SIGBLOB_LEN - slen);
81 DSA_SIG_free(sig);
110 DSA_SIG *sig;
156 if ((sig = DSA_SIG_new()) == NULL)
158 if ((sig->r = BN_new()) == NULL)
160 if ((sig->s = BN_new()) == NULL)
162 BN_bin2bn(sigblob, INTBLOB_LEN, sig->r);
163 BN_bin2bn(sigblob+ INTBLOB_LEN, INTBLOB_LEN, sig->s);
175 ret = DSA_do_verify(digest, dlen, sig, key->dsa);
178 DSA_SIG_free(sig);