Lines Matching refs:os

60     ASN1_OCTET_STRING *os = PKCS7_get_octet_string(p7);  in pkcs7_get1_data()  local
62 if (os != NULL) { in pkcs7_get1_data()
64 ASN1_OCTET_STRING *osdup = ASN1_OCTET_STRING_dup(os); in pkcs7_get1_data()
66 if (osdup != NULL && (os->flags & ASN1_STRING_FLAG_NDEF)) in pkcs7_get1_data()
81 os = ASN1_OCTET_STRING_new(); in pkcs7_get1_data()
82 if (os == NULL) in pkcs7_get1_data()
87 || !ASN1_OCTET_STRING_set(os, data, len)) { in pkcs7_get1_data()
88 ASN1_OCTET_STRING_free(os); in pkcs7_get1_data()
89 os = NULL; in pkcs7_get1_data()
92 return os; in pkcs7_get1_data()
246 ASN1_OCTET_STRING *os = NULL; in PKCS7_dataInit() local
280 os = pkcs7_get1_data(p7->d.sign->contents); in PKCS7_dataInit()
303 os = pkcs7_get1_data(p7->d.digest->contents); in PKCS7_dataInit()
386 } else if (os != NULL && os->length > 0) { in PKCS7_dataInit()
394 if (BIO_write(bio, os->data, os->length) != os->length) { in PKCS7_dataInit()
413 ASN1_OCTET_STRING_free(os); in PKCS7_dataInit()
417 ASN1_OCTET_STRING_free(os); in PKCS7_dataInit()
777 ASN1_OCTET_STRING *os = NULL; in PKCS7_dataFinal() local
803 os = p7->d.data; in PKCS7_dataFinal()
808 os = p7->d.signed_and_enveloped->enc_data->enc_data; in PKCS7_dataFinal()
809 if (os == NULL) { in PKCS7_dataFinal()
810 os = ASN1_OCTET_STRING_new(); in PKCS7_dataFinal()
811 if (os == NULL) { in PKCS7_dataFinal()
815 p7->d.signed_and_enveloped->enc_data->enc_data = os; in PKCS7_dataFinal()
820 os = p7->d.enveloped->enc_data->enc_data; in PKCS7_dataFinal()
821 if (os == NULL) { in PKCS7_dataFinal()
822 os = ASN1_OCTET_STRING_new(); in PKCS7_dataFinal()
823 if (os == NULL) { in PKCS7_dataFinal()
827 p7->d.enveloped->enc_data->enc_data = os; in PKCS7_dataFinal()
832 os = PKCS7_get_octet_string(p7->d.sign->contents); in PKCS7_dataFinal()
835 ASN1_OCTET_STRING_free(os); in PKCS7_dataFinal()
836 os = NULL; in PKCS7_dataFinal()
842 os = PKCS7_get_octet_string(p7->d.digest->contents); in PKCS7_dataFinal()
845 ASN1_OCTET_STRING_free(os); in PKCS7_dataFinal()
846 os = NULL; in PKCS7_dataFinal()
920 if (os == NULL) in PKCS7_dataFinal()
922 if (!(os->flags & ASN1_STRING_FLAG_NDEF)) { in PKCS7_dataFinal()
937 ASN1_STRING_set0(os, (unsigned char *)cont, contlen); in PKCS7_dataFinal()
1063 ASN1_OCTET_STRING *os; in PKCS7_signatureVerify() local
1166 os = si->enc_digest; in PKCS7_signatureVerify()
1173 i = EVP_VerifyFinal_ex(mdc_tmp, os->data, os->length, pkey, libctx, propq); in PKCS7_signatureVerify()