Searched refs:key_size (Results 1 – 9 of 9) sorted by relevance
/crypto/ |
D | rsa-pkcs1pad.c | 92 unsigned int key_size; member 112 ctx->key_size = 0; in pkcs1pad_set_pub_key() 123 ctx->key_size = err; in pkcs1pad_set_pub_key() 133 ctx->key_size = 0; in pkcs1pad_set_priv_key() 144 ctx->key_size = err; in pkcs1pad_set_priv_key() 158 return ctx->key_size; in pkcs1pad_get_max_size() 186 pad_len = ctx->key_size - len; in pkcs1pad_encrypt_sign_complete() 192 out_buf = kzalloc(ctx->key_size, GFP_KERNEL); in pkcs1pad_encrypt_sign_complete() 200 sg_nents_for_len(req->dst, ctx->key_size), in pkcs1pad_encrypt_sign_complete() 201 out_buf, ctx->key_size); in pkcs1pad_encrypt_sign_complete() [all …]
|
D | dh_helper.c | 31 return p->key_size + p->p_size + p->q_size + p->g_size; in dh_data_size() 53 ptr = dh_pack_data(ptr, end, ¶ms->key_size, in crypto_dh_encode_key() 54 sizeof(params->key_size)); in crypto_dh_encode_key() 58 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key() 80 ptr = dh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_dh_decode_key() 91 if (params->key_size > params->p_size || in crypto_dh_decode_key() 99 params->p = (void *)(ptr + params->key_size); in crypto_dh_decode_key() 100 params->q = (void *)(ptr + params->key_size + params->p_size); in crypto_dh_decode_key() 101 params->g = (void *)(ptr + params->key_size + params->p_size + in crypto_dh_decode_key()
|
D | ecdh_helper.c | 29 return ECDH_KPP_SECRET_MIN_SIZE + params->key_size; in crypto_ecdh_key_len() 50 ptr = ecdh_pack_data(ptr, ¶ms->key_size, sizeof(params->key_size)); in crypto_ecdh_encode_key() 51 ecdh_pack_data(ptr, params->key, params->key_size); in crypto_ecdh_encode_key() 74 ptr = ecdh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key()
|
D | ecdh.c | 43 params.key_size > sizeof(ctx->private_key)) in ecdh_set_secret() 53 if (!params.key || !params.key_size) in ecdh_set_secret() 57 memcpy(ctx->private_key, params.key, params.key_size); in ecdh_set_secret() 60 ctx->private_key, params.key_size) < 0) { in ecdh_set_secret() 61 memzero_explicit(ctx->private_key, params.key_size); in ecdh_set_secret()
|
D | dh.c | 89 ctx->xa = mpi_read_raw_data(params.key, params.key_size); in dh_set_secret()
|
/crypto/asymmetric_keys/ |
D | pkcs8_parser.c | 25 u32 key_size; member 90 ctx->key_size = vlen; in pkcs8_note_key() 119 pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); in pkcs8_parse() 123 pub->keylen = ctx.key_size; in pkcs8_parse()
|
D | x509_cert_parser.c | 24 size_t key_size; /* Size of key data */ member 105 cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL); in x509_cert_parse() 109 cert->pub->keylen = ctx->key_size; in x509_cert_parse() 466 ctx->key_size = vlen - 1; in x509_extract_key_data()
|
D | public_key.c | 141 info->key_size = len * 8; in software_key_query()
|
D | asym_tpm.c | 437 info->key_size = tk->key_len; in tpm_key_query()
|