Home
last modified time | relevance | path

Searched refs:prep (Results 1 – 5 of 5) sorted by relevance

/crypto/asymmetric_keys/
Dpkcs7_key_type.c31 struct key_preparsed_payload *prep = ctx; in pkcs7_view_content() local
36 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() argument
61 prep->data, prep->datalen, in pkcs7_preparse()
[all …]
Dtpm_parser.c56 static int tpm_key_preparse(struct key_preparsed_payload *prep) in tpm_key_preparse() argument
64 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()
Dpkcs8_parser.c136 static int pkcs8_key_preparse(struct key_preparsed_payload *prep) in pkcs8_key_preparse() argument
140 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()
Dx509_public_key.c164 static int x509_key_preparse(struct key_preparsed_payload *prep) in x509_key_preparse() argument
173 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()
Dasymmetric_type.c369 static int asymmetric_key_preparse(struct key_preparsed_payload *prep) in asymmetric_key_preparse() argument
376 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() argument
417 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()