/crypto/asymmetric_keys/ |
D | pkcs7_verify.c | 204 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 …]
|
D | pkcs7_trust.c | 27 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()
|
D | asymmetric_type.c | 54 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 …]
|
D | x509_public_key.c | 170 char *desc = NULL, *p; in x509_key_preparse() local 217 p = memcpy(desc, cert->subject, sulen); in x509_key_preparse() 218 p += sulen; in x509_key_preparse() 219 *p++ = ':'; in x509_key_preparse() 220 *p++ = ' '; in x509_key_preparse() 221 p = bin2hex(p, q, srlen); in x509_key_preparse() 222 *p = 0; in x509_key_preparse()
|
D | x509_cert_parser.c | 556 const unsigned char *p = value; in x509_decode_time() local 566 year = DD2bin(p); in x509_decode_time() 575 year = DD2bin(p) * 100 + DD2bin(p); in x509_decode_time() 582 mon = DD2bin(p); in x509_decode_time() 583 day = DD2bin(p); in x509_decode_time() 584 hour = DD2bin(p); in x509_decode_time() 585 min = DD2bin(p); in x509_decode_time() 586 sec = DD2bin(p); in x509_decode_time() 588 if (*p != 'Z') in x509_decode_time()
|
D | restrict.c | 30 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/ |
D | algboss.c | 85 const char *p; in cryptomgr_schedule_probe() local 96 for (p = name; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe() 99 len = p - name; in cryptomgr_schedule_probe() 100 if (!len || *p != '(') in cryptomgr_schedule_probe() 109 name = ++p; in cryptomgr_schedule_probe() 111 for (; isalnum(*p) || *p == '-' || *p == '_'; p++) in cryptomgr_schedule_probe() 112 notnum |= !isdigit(*p); in cryptomgr_schedule_probe() 114 if (*p == '(') { in cryptomgr_schedule_probe() 118 if (!*++p) in cryptomgr_schedule_probe() 120 if (*p == '(') in cryptomgr_schedule_probe() [all …]
|
D | crypto_user_base.c | 36 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 …]
|
D | gf128mul.c | 172 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 …]
|
D | dh_helper.c | 29 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()
|
D | dh.c | 16 MPI p; /* Value is guaranteed to be set. */ member 24 mpi_free(ctx->p); in dh_clear_ctx() 40 return mpi_powm(val, base, ctx->xa, ctx->p); in _compute_val() 58 ctx->p = mpi_read_raw_data(params->p, params->p_size); in dh_set_params() 59 if (!ctx->p) in dh_set_params() 112 if (unlikely(!ctx->p)) in dh_is_pubkey_valid() 121 if (mpi_cmp_ui(y, 1) < 1 || mpi_cmp(y, ctx->p) >= 0) in dh_is_pubkey_valid() 132 ret = mpi_powm(val, y, ctx->q, ctx->p); in dh_is_pubkey_valid() 202 ret = mpi_sub_ui(pone, ctx->p, 1); in dh_compute_value() 238 return mpi_get_size(ctx->p); in dh_max_size()
|
D | vmac.c | 287 u64 p, q, t; in poly_step_func() local 290 p = MUL32(a3, k3); in poly_step_func() 291 p += p; in poly_step_func() 292 p += *(u64 *)mh; in poly_step_func() 293 p += MUL32(a0, k2); in poly_step_func() 294 p += MUL32(a1, k1); in poly_step_func() 295 p += MUL32(a2, k0); in poly_step_func() 296 t = (u32)(p); in poly_step_func() 297 p >>= 32; in poly_step_func() 298 p += MUL32(a0, k3); in poly_step_func() [all …]
|
D | xcbc.c | 85 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update() argument 99 memcpy(odds + ctx->len, p, len); in crypto_xcbc_digest_update() 105 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_xcbc_digest_update() 107 p += bs - ctx->len; in crypto_xcbc_digest_update() 117 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update() 119 p += bs; in crypto_xcbc_digest_update() 125 memcpy(odds, p, len); in crypto_xcbc_digest_update() 147 u8 *p = odds + ctx->len; in crypto_xcbc_digest_final() local 149 *p = 0x80; in crypto_xcbc_digest_final() 150 p++; in crypto_xcbc_digest_final() [all …]
|
D | skcipher.c | 184 struct skcipher_walk_buffer *p, *tmp; in skcipher_walk_complete() local 186 list_for_each_entry_safe(p, tmp, &walk->buffers, entry) { in skcipher_walk_complete() 192 data = p->data; in skcipher_walk_complete() 194 data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); in skcipher_walk_complete() 198 scatterwalk_copychunks(data, &p->dst, p->len, 1); in skcipher_walk_complete() 200 if (offset_in_page(p->data) + p->len + walk->stride > in skcipher_walk_complete() 202 free_page((unsigned long)p->data); in skcipher_walk_complete() 205 list_del(&p->entry); in skcipher_walk_complete() 206 kfree(p); in skcipher_walk_complete() 219 struct skcipher_walk_buffer *p) in skcipher_queue_write() argument [all …]
|
D | cmac.c | 118 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update() argument 132 memcpy(odds + ctx->len, p, len); in crypto_cmac_digest_update() 138 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update() 140 p += bs - ctx->len; in crypto_cmac_digest_update() 150 crypto_xor(prev, p, bs); in crypto_cmac_digest_update() 152 p += bs; in crypto_cmac_digest_update() 158 memcpy(odds, p, len); in crypto_cmac_digest_update() 181 u8 *p = odds + ctx->len; in crypto_cmac_digest_final() local 183 *p = 0x80; in crypto_cmac_digest_final() 184 p++; in crypto_cmac_digest_final() [all …]
|
D | proc.c | 26 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()
|
D | ecc.c | 75 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 …]
|
D | ecrdsa_defs.h | 55 .p = cp256a_p, 88 .p = cp256b_p, 125 .p = cp256c_p, 174 .p = tc512a_p, 219 .p = tc512b_p,
|
D | sm2.c | 38 const char *p; /* The prime defining the field. */ member 54 .p = "0xfffffffeffffffffffffffffffffffffffffffff00000000ffffffffffffffff", 66 MPI p, a, b; in sm2_ec_ctx_init() local 70 p = mpi_scanval(ecp->p); in sm2_ec_ctx_init() 73 if (!p || !a || !b) in sm2_ec_ctx_init() 108 mpi_ec_init(ec, ecp->model, ecp->dialect, 0, p, a, b); in sm2_ec_ctx_init() 116 mpi_free(p); in sm2_ec_ctx_init() 278 pbytes = MPI_NBYTES(ec->p); in sm2_compute_z_digest()
|
D | ecc_curve_defs.h | 25 .p = nist_p192_p, 51 .p = nist_p256_p,
|
D | md4.c | 188 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()
|
D | testmgr.c | 915 size_t max_divs, char *p, char *end, in generate_random_sgl_divisions() argument 976 p += scnprintf(p, end - p, "%s%u.%u%%@%s+%u%s", flushtype_str, in generate_random_sgl_divisions() 985 return p; in generate_random_sgl_divisions() 992 char *p = name; in generate_random_testvec_config() local 999 p += scnprintf(p, end - p, "random:"); in generate_random_testvec_config() 1003 p += scnprintf(p, end - p, " inplace"); in generate_random_testvec_config() 1008 p += scnprintf(p, end - p, " may_sleep"); in generate_random_testvec_config() 1014 p += scnprintf(p, end - p, " use_final"); in generate_random_testvec_config() 1018 p += scnprintf(p, end - p, " use_finup"); in generate_random_testvec_config() 1022 p += scnprintf(p, end - p, " use_digest"); in generate_random_testvec_config() [all …]
|
D | ecc.h | 67 u64 *p; member 256 const u64 *x, const struct ecc_point *p,
|
D | aegis.h | 25 #define AEGIS_ALIGNED(p) IS_ALIGNED((uintptr_t)p, AEGIS_BLOCK_ALIGN) argument
|
/crypto/async_tx/ |
D | async_raid6_recov.c | 158 struct page *p, *q, *a, *b; in __2data_recov_4() local 168 p = blocks[disks-2]; in __2data_recov_4() 180 srcs[0] = p; in __2data_recov_4() 190 srcs[0] = p; in __2data_recov_4() 208 struct page *p, *q, *g, *dp, *dq; in __2data_recov_5() local 231 p = blocks[disks-2]; in __2data_recov_5() 256 srcs[1] = p; in __2data_recov_5() 299 struct page *p, *q, *dp, *dq; in __2data_recov_n() local 309 p = blocks[disks-2]; in __2data_recov_n() 337 blocks[disks-2] = p; in __2data_recov_n() [all …]
|