Home | History | Annotate | Download | only in rsa

Lines Matching refs:sig

73 	X509_SIG sig;
102 sig.algor= &algor;
103 sig.algor->algorithm=OBJ_nid2obj(type);
104 if (sig.algor->algorithm == NULL)
109 if (sig.algor->algorithm->length == 0)
116 sig.algor->parameter= &parameter;
118 sig.digest= &digest;
119 sig.digest->data=(unsigned char *)m; /* TMP UGLY CAST */
120 sig.digest->length=m_len;
122 i=i2d_X509_SIG(&sig,NULL);
138 i2d_X509_SIG(&sig,&p);
158 static int rsa_check_digestinfo(X509_SIG *sig, const unsigned char *dinfo, int dinfolen)
163 derlen = i2d_X509_SIG(sig, &der);
181 X509_SIG *sig=NULL;
245 sig=d2i_X509_SIG(NULL,&p,(long)i);
247 if (sig == NULL) goto err;
250 if(p != s+i || !rsa_check_digestinfo(sig, s, i))
258 if(sig->algor->parameter
259 && ASN1_TYPE_get(sig->algor->parameter) != V_ASN1_NULL)
265 sigtype=OBJ_obj2nid(sig->algor->algorithm);
296 if (md && (EVP_MD_size(md) != sig->digest->length))
301 memcpy(rm, sig->digest->data,
302 sig->digest->length);
303 *prm_len = sig->digest->length;
307 else if (((unsigned int)sig->digest->length != m_len) ||
308 (memcmp(m,sig->digest->data,m_len) != 0))
316 if (sig != NULL) X509_SIG_free(sig);