Lines Matching refs:dd
72 CMS_DigestedData *dd; in cms_DigestedData_create() local
78 dd = (CMS_DigestedData *)ASN1_item_new(&CMS_DigestedData_it); in cms_DigestedData_create()
80 if (dd == NULL) in cms_DigestedData_create()
84 cms->d.digestedData = dd; in cms_DigestedData_create()
86 dd->version = 0; in cms_DigestedData_create()
87 dd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in cms_DigestedData_create()
89 if (!X509_ALGOR_set_evp_md(dd->digestAlgorithm, md)) in cms_DigestedData_create()
103 CMS_DigestedData *dd; in cms_DigestedData_init_bio() local
105 dd = cms->d.digestedData; in cms_DigestedData_init_bio()
107 return cms_DigestAlgorithm_init_bio(dd->digestAlgorithm); in cms_DigestedData_init_bio()
117 CMS_DigestedData *dd; in cms_DigestedData_do_final() local
124 dd = cms->d.digestedData; in cms_DigestedData_do_final()
126 if (!cms_DigestAlgorithm_find_ctx(mctx, chain, dd->digestAlgorithm)) in cms_DigestedData_do_final()
133 if (mdlen != (unsigned int)dd->digest->length) { in cms_DigestedData_do_final()
138 if (memcmp(md, dd->digest->data, mdlen)) in cms_DigestedData_do_final()
143 if (!ASN1_STRING_set(dd->digest, md, mdlen)) in cms_DigestedData_do_final()