Lines Matching refs:prot
33 ASN1_BIT_STRING *prot = NULL; in ossl_cmp_calc_protection() local
92 if ((prot = ASN1_BIT_STRING_new()) == NULL) in ossl_cmp_calc_protection()
95 prot->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in ossl_cmp_calc_protection()
96 prot->flags |= ASN1_STRING_FLAG_BITS_LEFT; in ossl_cmp_calc_protection()
97 if (!ASN1_BIT_STRING_set(prot, protection, sig_len)) { in ossl_cmp_calc_protection()
98 ASN1_BIT_STRING_free(prot); in ossl_cmp_calc_protection()
99 prot = NULL; in ossl_cmp_calc_protection()
105 return prot; in ossl_cmp_calc_protection()
121 if ((prot = ASN1_BIT_STRING_new()) == NULL) in ossl_cmp_calc_protection()
124 NULL, prot, &prot_part, NULL, ctx->pkey, md, in ossl_cmp_calc_protection()
126 return prot; in ossl_cmp_calc_protection()
127 ASN1_BIT_STRING_free(prot); in ossl_cmp_calc_protection()