Searched refs:prep (Results 1 – 5 of 5) sorted by relevance
31 struct key_preparsed_payload *prep = ctx; in pkcs7_view_content() local36 saved_prep_data = prep->data; in pkcs7_view_content()37 saved_prep_datalen = prep->datalen; in pkcs7_view_content()38 prep->data = data; in pkcs7_view_content()39 prep->datalen = len; in pkcs7_view_content()41 ret = user_preparse(prep); in pkcs7_view_content()43 prep->data = saved_prep_data; in pkcs7_view_content()44 prep->datalen = saved_prep_datalen; in pkcs7_view_content()51 static int pkcs7_preparse(struct key_preparsed_payload *prep) in pkcs7_preparse() argument61 prep->data, prep->datalen, in pkcs7_preparse()[all …]
56 static int tpm_key_preparse(struct key_preparsed_payload *prep) in tpm_key_preparse() argument64 if (prep->datalen > 256 * 4) in tpm_key_preparse()67 tk = tpm_parse(prep->data, prep->datalen); in tpm_key_preparse()74 prep->payload.data[asym_subtype] = &asym_tpm_subtype; in tpm_key_preparse()75 prep->payload.data[asym_key_ids] = NULL; in tpm_key_preparse()76 prep->payload.data[asym_crypto] = tk; in tpm_key_preparse()77 prep->payload.data[asym_auth] = NULL; in tpm_key_preparse()78 prep->quotalen = 100; in tpm_key_preparse()
136 static int pkcs8_key_preparse(struct key_preparsed_payload *prep) in pkcs8_key_preparse() argument140 pub = pkcs8_parse(prep->data, prep->datalen); in pkcs8_key_preparse()149 prep->payload.data[asym_subtype] = &public_key_subtype; in pkcs8_key_preparse()150 prep->payload.data[asym_key_ids] = NULL; in pkcs8_key_preparse()151 prep->payload.data[asym_crypto] = pub; in pkcs8_key_preparse()152 prep->payload.data[asym_auth] = NULL; in pkcs8_key_preparse()153 prep->quotalen = 100; in pkcs8_key_preparse()
164 static int x509_key_preparse(struct key_preparsed_payload *prep) in x509_key_preparse() argument173 cert = x509_cert_parse(prep->data, prep->datalen); in x509_key_preparse()232 prep->payload.data[asym_subtype] = &public_key_subtype; in x509_key_preparse()233 prep->payload.data[asym_key_ids] = kids; in x509_key_preparse()234 prep->payload.data[asym_crypto] = cert->pub; in x509_key_preparse()235 prep->payload.data[asym_auth] = cert->sig; in x509_key_preparse()236 prep->description = desc; in x509_key_preparse()237 prep->quotalen = 100; in x509_key_preparse()
369 static int asymmetric_key_preparse(struct key_preparsed_payload *prep) in asymmetric_key_preparse() argument376 if (prep->datalen == 0) in asymmetric_key_preparse()385 ret = parser->parse(prep); in asymmetric_key_preparse()415 static void asymmetric_key_free_preparse(struct key_preparsed_payload *prep) in asymmetric_key_free_preparse() argument417 struct asymmetric_key_subtype *subtype = prep->payload.data[asym_subtype]; in asymmetric_key_free_preparse()418 struct asymmetric_key_ids *kids = prep->payload.data[asym_key_ids]; in asymmetric_key_free_preparse()423 subtype->destroy(prep->payload.data[asym_crypto], in asymmetric_key_free_preparse()424 prep->payload.data[asym_auth]); in asymmetric_key_free_preparse()428 kfree(prep->description); in asymmetric_key_free_preparse()