Lines Matching full:content
62 * @param oid type of the content.
64 * optional content field in the ContentInfo is not going be filled
90 ALLOC(ci.content, 1); in hx509_cms_wrap_ContentInfo()
91 if (ci.content == NULL) { in hx509_cms_wrap_ContentInfo()
95 ci.content->data = malloc(buf->length); in hx509_cms_wrap_ContentInfo()
96 if (ci.content->data == NULL) { in hx509_cms_wrap_ContentInfo()
100 memcpy(ci.content->data, buf->data, buf->length); in hx509_cms_wrap_ContentInfo()
101 ci.content->length = buf->length; in hx509_cms_wrap_ContentInfo()
118 * @param oid type of the content.
150 if (ci.content) { in hx509_cms_unwrap_ContentInfo()
151 ret = der_copy_octet_string(ci.content, out); in hx509_cms_unwrap_ContentInfo()
161 *have_data = (ci.content != NULL) ? 1 : 0; in hx509_cms_unwrap_ContentInfo()
341 * @param content the data, free with der_free_octet_string().
355 heim_octet_string *content) in hx509_cms_unenvelope() argument
372 memset(content, 0, sizeof(*content)); in hx509_cms_unenvelope()
397 "Content missing from encrypted data"); in hx509_cms_unenvelope()
458 "Failed to copy EnvelopedData content oid"); in hx509_cms_unenvelope()
501 content); in hx509_cms_unenvelope()
518 der_free_octet_string(content); in hx509_cms_unenvelope()
544 * @param content the output of the function,
558 heim_octet_string *content) in hx509_cms_envelope_1() argument
571 memset(content, 0, sizeof(*content)); in hx509_cms_envelope_1()
592 "Create random key for EnvelopedData content"); in hx509_cms_envelope_1()
610 "Failed to encrypt EnvelopedData content"); in hx509_cms_envelope_1()
690 "Failed to copy content oid for " in hx509_cms_envelope_1()
697 ASN1_MALLOC_ENCODE(EnvelopedData, content->data, content->length, in hx509_cms_envelope_1()
704 if (size != content->length) in hx509_cms_envelope_1()
711 der_free_octet_string(content); in hx509_cms_envelope_1()
770 * @param content the output of the function, free with
787 heim_octet_string *content, in hx509_cms_verify_signed() argument
799 content->data = NULL; in hx509_cms_verify_signed()
800 content->length = 0; in hx509_cms_verify_signed()
816 "No content data in SignedData"); in hx509_cms_verify_signed()
827 ret = der_copy_octet_string(sd.encapContentInfo.eContent, content); in hx509_cms_verify_signed()
829 ret = der_copy_octet_string(signedContent, content); in hx509_cms_verify_signed()
934 content, in hx509_cms_verify_signed()
944 * Fetch content oid inside signedAttrs or set it to in hx509_cms_verify_signed()
986 signed_data.data = content->data; in hx509_cms_verify_signed()
987 signed_data.length = content->length; in hx509_cms_verify_signed()
1077 if (content->data) in hx509_cms_verify_signed()
1078 der_free_octet_string(content); in hx509_cms_verify_signed()
1082 der_free_octet_string(content); in hx509_cms_verify_signed()
1181 heim_octet_string content; member
1274 &sigctx->content, in sig_process()
1342 sigdata.data = sigctx->content.data; in sig_process()
1343 sigdata.length = sigctx->content.length; in sig_process()
1400 if (sigdata.data != sigctx->content.data) in sig_process()
1461 sigctx.content.data = rk_UNCONST(data); in hx509_cms_create_signed()
1462 sigctx.content.length = length; in hx509_cms_create_signed()
1591 heim_octet_string *content) in hx509_cms_decrypt_encrypted() argument
1598 memset(content, 0, sizeof(*content)); in hx509_cms_decrypt_encrypted()
1611 "No content in EncryptedData"); in hx509_cms_decrypt_encrypted()
1636 *content = cont; in hx509_cms_decrypt_encrypted()