Lines Matching refs:protection
55 msg->header->protectionAlg, msg->protection,
79 ASN1_BIT_STRING *protection = NULL;
82 /* generate expected protection for the message */
83 if ((protection = ossl_cmp_calc_protection(ctx, msg)) == NULL)
84 return 0; /* failed to generate protection string! */
86 valid = msg->protection != NULL && msg->protection->length >= 0
87 && msg->protection->type == protection->type
88 && msg->protection->length == protection->length
89 && CRYPTO_memcmp(msg->protection->data, protection->data,
90 protection->length) == 0;
91 ASN1_BIT_STRING_free(protection);
535 * Validate the protection of the given PKIMessage using either password-
562 || msg->protection == NULL || msg->protection->data == NULL) {
571 ossl_cmp_info(ctx, "no secret available for verifying PBM-based CMP message protection");
602 "sucessfully validated PBM-based CMP message protection");
605 ossl_cmp_warn(ctx, "verifying PBM-based CMP message protection failed");
623 ossl_cmp_info(ctx, "no trust store nor pinned server cert available for verifying signature-based CMP message protection");
633 "sucessfully validated signature-based CMP message protection");
653 * its protection is valid (or invalid/absent, but only if a callback function
710 /* validate message protection */
712 /* detect explicitly permitted exceptions for invalid protection */
721 /* detect explicitly permitted exceptions for missing protection */