Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 41) sorted by relevance

12

/crypto/asymmetric_keys/
Dpkcs7_verify.c204 struct x509_certificate *x509 = sinfo->signer, *p; in pkcs7_verify_sig_chain() local
210 for (p = pkcs7->certs; p; p = p->next) in pkcs7_verify_sig_chain()
211 p->seen = false; in pkcs7_verify_sig_chain()
224 for (p = sinfo->signer; p != x509; p = p->signer) in pkcs7_verify_sig_chain()
225 p->blacklisted = true; in pkcs7_verify_sig_chain()
261 for (p = pkcs7->certs; p; p = p->next) { in pkcs7_verify_sig_chain()
263 p->index, p->id->len, p->id->data); in pkcs7_verify_sig_chain()
264 if (asymmetric_key_id_same(p->id, auth)) in pkcs7_verify_sig_chain()
270 for (p = pkcs7->certs; p; p = p->next) { in pkcs7_verify_sig_chain()
271 if (!p->skid) in pkcs7_verify_sig_chain()
[all …]
Dpkcs7_trust.c27 struct x509_certificate *x509, *last = NULL, *p; in pkcs7_validate_trust_one() local
127 for (p = sinfo->signer; p != x509; p = p->signer) in pkcs7_validate_trust_one()
128 p->verified = true; in pkcs7_validate_trust_one()
162 struct x509_certificate *p; in pkcs7_validate_trust() local
166 for (p = pkcs7->certs; p; p = p->next) in pkcs7_validate_trust()
167 p->seen = false; in pkcs7_validate_trust()
Dasymmetric_type.c54 char *req, *p; in find_asymmetric_key() local
68 p = req = kmalloc(2 + 1 + len * 2 + 1, GFP_KERNEL); in find_asymmetric_key()
73 *p++ = 'i'; in find_asymmetric_key()
74 *p++ = 'd'; in find_asymmetric_key()
76 *p++ = 'e'; in find_asymmetric_key()
77 *p++ = 'x'; in find_asymmetric_key()
79 *p++ = ':'; in find_asymmetric_key()
80 p = bin2hex(p, lookup, len); in find_asymmetric_key()
81 *p = 0; in find_asymmetric_key()
335 const unsigned char *p; in asymmetric_key_describe() local
[all …]
Dx509_public_key.c162 char *desc = NULL, *p; in x509_key_preparse() local
209 p = memcpy(desc, cert->subject, sulen); in x509_key_preparse()
210 p += sulen; in x509_key_preparse()
211 *p++ = ':'; in x509_key_preparse()
212 *p++ = ' '; in x509_key_preparse()
213 p = bin2hex(p, q, srlen); in x509_key_preparse()
214 *p = 0; in x509_key_preparse()
Dx509_cert_parser.c539 const unsigned char *p = value; in x509_decode_time() local
549 year = DD2bin(p); in x509_decode_time()
558 year = DD2bin(p) * 100 + DD2bin(p); in x509_decode_time()
565 mon = DD2bin(p); in x509_decode_time()
566 day = DD2bin(p); in x509_decode_time()
567 hour = DD2bin(p); in x509_decode_time()
568 min = DD2bin(p); in x509_decode_time()
569 sec = DD2bin(p); in x509_decode_time()
571 if (*p != 'Z') in x509_decode_time()
Drestrict.c30 struct asymmetric_key_id *p = &cakey.id; in ca_keys_setup() local
39 ret = __asymmetric_key_hex_to_key_id(str + 3, p, hexlen); in ca_keys_setup()
43 ca_keyid = p; /* owner key 'id:xxxxxx' */ in ca_keys_setup()
/crypto/
Dalgboss.c95 const char *p; in cryptomgr_schedule_probe() local
106 for (p = name; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe()
109 len = p - name; in cryptomgr_schedule_probe()
110 if (!len || *p != '(') in cryptomgr_schedule_probe()
119 name = ++p; in cryptomgr_schedule_probe()
121 for (; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe()
122 notnum |= !isdigit(*p); in cryptomgr_schedule_probe()
124 if (*p == '(') { in cryptomgr_schedule_probe()
128 if (!*++p) in cryptomgr_schedule_probe()
130 if (*p == '(') in cryptomgr_schedule_probe()
[all …]
Dcrypto_user_base.c36 struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact) in crypto_alg_match() argument
48 if ((q->cra_flags ^ p->cru_type) & p->cru_mask) in crypto_alg_match()
51 if (strlen(p->cru_driver_name)) in crypto_alg_match()
53 p->cru_driver_name); in crypto_alg_match()
55 match = !strcmp(q->cra_name, p->cru_name); in crypto_alg_match()
188 struct crypto_user_alg *p = nlmsg_data(in_nlh); in crypto_report() local
194 if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name)) in crypto_report()
197 alg = crypto_alg_match(p, 0); in crypto_report()
264 struct crypto_user_alg *p = nlmsg_data(nlh); in crypto_update_alg() local
271 if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name)) in crypto_update_alg()
[all …]
Dgf128mul.c172 be128 p[8]; in gf128mul_lle() local
175 p[0] = *r; in gf128mul_lle()
177 gf128mul_x_lle(&p[i + 1], &p[i]); in gf128mul_lle()
184 be128_xor(r, r, &p[0]); in gf128mul_lle()
186 be128_xor(r, r, &p[1]); in gf128mul_lle()
188 be128_xor(r, r, &p[2]); in gf128mul_lle()
190 be128_xor(r, r, &p[3]); in gf128mul_lle()
192 be128_xor(r, r, &p[4]); in gf128mul_lle()
194 be128_xor(r, r, &p[5]); in gf128mul_lle()
196 be128_xor(r, r, &p[6]); in gf128mul_lle()
[all …]
Ddh_helper.c29 static inline unsigned int dh_data_size(const struct dh *p) in dh_data_size() argument
31 return p->key_size + p->p_size + p->q_size + p->g_size; in dh_data_size()
34 unsigned int crypto_dh_key_len(const struct dh *p) in crypto_dh_key_len() argument
36 return DH_KPP_SECRET_MIN_SIZE + dh_data_size(p); in crypto_dh_key_len()
59 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
99 params->p = (void *)(ptr + params->key_size); in crypto_dh_decode_key()
109 if (memchr_inv(params->p, 0, params->p_size) == NULL) in crypto_dh_decode_key()
Dvmac.c286 u64 p, q, t; in poly_step_func() local
289 p = MUL32(a3, k3); in poly_step_func()
290 p += p; in poly_step_func()
291 p += *(u64 *)mh; in poly_step_func()
292 p += MUL32(a0, k2); in poly_step_func()
293 p += MUL32(a1, k1); in poly_step_func()
294 p += MUL32(a2, k0); in poly_step_func()
295 t = (u32)(p); in poly_step_func()
296 p >>= 32; in poly_step_func()
297 p += MUL32(a0, k3); in poly_step_func()
[all …]
Dablkcipher.c35 static inline void ablkcipher_buffer_write(struct ablkcipher_buffer *p) in ablkcipher_buffer_write() argument
37 scatterwalk_copychunks(p->data, &p->dst, p->len, 1); in ablkcipher_buffer_write()
42 struct ablkcipher_buffer *p, *tmp; in __ablkcipher_walk_complete() local
44 list_for_each_entry_safe(p, tmp, &walk->buffers, entry) { in __ablkcipher_walk_complete()
45 ablkcipher_buffer_write(p); in __ablkcipher_walk_complete()
46 list_del(&p->entry); in __ablkcipher_walk_complete()
47 kfree(p); in __ablkcipher_walk_complete()
53 struct ablkcipher_buffer *p) in ablkcipher_queue_write() argument
55 p->dst = walk->out; in ablkcipher_queue_write()
56 list_add_tail(&p->entry, &walk->buffers); in ablkcipher_queue_write()
[all …]
Ddh.c15 MPI p; /* Value is guaranteed to be set. */ member
23 mpi_free(ctx->p); in dh_clear_ctx()
39 return mpi_powm(val, base, ctx->xa, ctx->p); in _compute_val()
57 ctx->p = mpi_read_raw_data(params->p, params->p_size); in dh_set_params()
58 if (!ctx->p) in dh_set_params()
111 if (unlikely(!ctx->p)) in dh_is_pubkey_valid()
120 if (mpi_cmp_ui(y, 1) < 1 || mpi_cmp(y, ctx->p) >= 0) in dh_is_pubkey_valid()
131 ret = mpi_powm(val, y, ctx->q, ctx->p); in dh_is_pubkey_valid()
200 return mpi_get_size(ctx->p); in dh_max_size()
Dxcbc.c84 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update() argument
98 memcpy(odds + ctx->len, p, len); in crypto_xcbc_digest_update()
104 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update()
106 p += bs - ctx->len; in crypto_xcbc_digest_update()
116 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update()
118 p += bs; in crypto_xcbc_digest_update()
124 memcpy(odds, p, len); in crypto_xcbc_digest_update()
146 u8 *p = odds + ctx->len; in crypto_xcbc_digest_final() local
148 *p = 0x80; in crypto_xcbc_digest_final()
149 p++; in crypto_xcbc_digest_final()
[all …]
Dcmac.c117 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update() argument
131 memcpy(odds + ctx->len, p, len); in crypto_cmac_digest_update()
137 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update()
139 p += bs - ctx->len; in crypto_cmac_digest_update()
149 crypto_xor(prev, p, bs); in crypto_cmac_digest_update()
151 p += bs; in crypto_cmac_digest_update()
157 memcpy(odds, p, len); in crypto_cmac_digest_update()
180 u8 *p = odds + ctx->len; in crypto_cmac_digest_final() local
182 *p = 0x80; in crypto_cmac_digest_final()
183 p++; in crypto_cmac_digest_final()
[all …]
Decc.c75 struct ecc_point *p = kmalloc(sizeof(*p), GFP_KERNEL); in ecc_alloc_point() local
77 if (!p) in ecc_alloc_point()
80 p->x = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
81 if (!p->x) in ecc_alloc_point()
84 p->y = ecc_alloc_digits_space(ndigits); in ecc_alloc_point()
85 if (!p->y) in ecc_alloc_point()
88 p->ndigits = ndigits; in ecc_alloc_point()
90 return p; in ecc_alloc_point()
93 ecc_free_digits_space(p->x); in ecc_alloc_point()
95 kfree(p); in ecc_alloc_point()
[all …]
Dproc.c26 static void *c_next(struct seq_file *m, void *p, loff_t *pos) in c_next() argument
28 return seq_list_next(p, &crypto_alg_list, pos); in c_next()
31 static void c_stop(struct seq_file *m, void *p) in c_stop() argument
36 static int c_show(struct seq_file *m, void *p) in c_show() argument
38 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); in c_show()
Decrdsa_defs.h55 .p = cp256a_p,
88 .p = cp256b_p,
125 .p = cp256c_p,
174 .p = tc512a_p,
219 .p = tc512b_p,
Dskcipher.c183 struct skcipher_walk_buffer *p, *tmp; in skcipher_walk_complete() local
185 list_for_each_entry_safe(p, tmp, &walk->buffers, entry) { in skcipher_walk_complete()
191 data = p->data; in skcipher_walk_complete()
193 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); in skcipher_walk_complete()
197 scatterwalk_copychunks(data, &p->dst, p->len, 1); in skcipher_walk_complete()
199 if (offset_in_page(p->data) + p->len + walk->stride > in skcipher_walk_complete()
201 free_page((unsigned long)p->data); in skcipher_walk_complete()
204 list_del(&p->entry); in skcipher_walk_complete()
205 kfree(p); in skcipher_walk_complete()
218 struct skcipher_walk_buffer *p) in skcipher_queue_write() argument
[all …]
Decc_curve_defs.h25 .p = nist_p192_p,
51 .p = nist_p256_p,
Dmd4.c188 char *p = (char *)mctx->block + offset; in md4_final() local
191 *p++ = 0x80; in md4_final()
193 memset(p, 0x00, padding + sizeof (u64)); in md4_final()
195 p = (char *)mctx->block; in md4_final()
199 memset(p, 0, padding); in md4_final()
Dtestmgr.c830 size_t max_divs, char *p, char *end, in generate_random_sgl_divisions() argument
891 p += scnprintf(p, end - p, "%s%u.%u%%@%s+%u%s", flushtype_str, in generate_random_sgl_divisions()
900 return p; in generate_random_sgl_divisions()
907 char *p = name; in generate_random_testvec_config() local
914 p += scnprintf(p, end - p, "random:"); in generate_random_testvec_config()
918 p += scnprintf(p, end - p, " inplace"); in generate_random_testvec_config()
923 p += scnprintf(p, end - p, " may_sleep"); in generate_random_testvec_config()
929 p += scnprintf(p, end - p, " use_final"); in generate_random_testvec_config()
933 p += scnprintf(p, end - p, " use_finup"); in generate_random_testvec_config()
937 p += scnprintf(p, end - p, " use_digest"); in generate_random_testvec_config()
[all …]
Decc.h67 u64 *p; member
242 const u64 *x, const struct ecc_point *p,
Daegis.h25 #define AEGIS_ALIGNED(p) IS_ALIGNED((uintptr_t)p, AEGIS_BLOCK_ALIGN) argument
/crypto/async_tx/
Dasync_raid6_recov.c150 struct page *p, *q, *a, *b; in __2data_recov_4() local
158 p = blocks[disks-2]; in __2data_recov_4()
166 srcs[0] = p; in __2data_recov_4()
174 srcs[0] = p; in __2data_recov_4()
189 struct page *p, *q, *g, *dp, *dq; in __2data_recov_5() local
210 p = blocks[disks-2]; in __2data_recov_5()
228 srcs[1] = p; in __2data_recov_5()
263 struct page *p, *q, *dp, *dq; in __2data_recov_n() local
271 p = blocks[disks-2]; in __2data_recov_n()
291 blocks[disks-2] = p; in __2data_recov_n()
[all …]

12