Home | History | Annotate | Download | only in dsa

Lines Matching defs:sig

172   DSA_SIG *sig;
173 sig = OPENSSL_malloc(sizeof(DSA_SIG));
174 if (!sig) {
177 sig->r = NULL;
178 sig->s = NULL;
179 return sig;
182 void DSA_SIG_free(DSA_SIG *sig) {
183 if (!sig) {
187 BN_free(sig->r);
188 BN_free(sig->s);
189 OPENSSL_free(sig);
199 int DSA_do_verify(const uint8_t *digest, size_t digest_len, DSA_SIG *sig,
202 if (!DSA_do_check_signature(&valid, digest, digest_len, sig, dsa)) {
209 size_t digest_len, DSA_SIG *sig, const DSA *dsa) {
211 return dsa->meth->verify(out_valid, digest, digest_len, sig, dsa);
214 return DSA_default_method.verify(out_valid, digest, digest_len, sig, dsa);
233 const uint8_t *sig, size_t sig_len, const DSA *dsa) {
235 if (!DSA_check_signature(&valid, digest, digest_len, sig, sig_len, dsa)) {
242 size_t digest_len, const uint8_t *sig, size_t sig_len,
253 const uint8_t *sigp = sig;
254 if (d2i_DSA_SIG(&s, &sigp, sig_len) == NULL || sigp != sig + sig_len) {
260 if (der_len < 0 || (size_t)der_len != sig_len || memcmp(sig, der, sig_len)) {