Searched refs:mod_len (Results 1 - 11 of 11) sorted by relevance

/linux-4.1.27/drivers/s390/crypto/
H A Dzcrypt_msgtype50.c190 int mod_len; ICAMEX_msg_to_type50MEX_msg() local
192 mod_len = mex->inputdatalength; ICAMEX_msg_to_type50MEX_msg()
194 if (mod_len <= 128) { ICAMEX_msg_to_type50MEX_msg()
201 mod = meb1->modulus + sizeof(meb1->modulus) - mod_len; ICAMEX_msg_to_type50MEX_msg()
202 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len; ICAMEX_msg_to_type50MEX_msg()
203 inp = meb1->message + sizeof(meb1->message) - mod_len; ICAMEX_msg_to_type50MEX_msg()
204 } else if (mod_len <= 256) { ICAMEX_msg_to_type50MEX_msg()
211 mod = meb2->modulus + sizeof(meb2->modulus) - mod_len; ICAMEX_msg_to_type50MEX_msg()
212 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len; ICAMEX_msg_to_type50MEX_msg()
213 inp = meb2->message + sizeof(meb2->message) - mod_len; ICAMEX_msg_to_type50MEX_msg()
215 /* mod_len > 256 = 4096 bit RSA Key */ ICAMEX_msg_to_type50MEX_msg()
222 mod = meb3->modulus + sizeof(meb3->modulus) - mod_len; ICAMEX_msg_to_type50MEX_msg()
223 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len; ICAMEX_msg_to_type50MEX_msg()
224 inp = meb3->message + sizeof(meb3->message) - mod_len; ICAMEX_msg_to_type50MEX_msg()
227 if (copy_from_user(mod, mex->n_modulus, mod_len) || ICAMEX_msg_to_type50MEX_msg()
228 copy_from_user(exp, mex->b_key, mod_len) || ICAMEX_msg_to_type50MEX_msg()
229 copy_from_user(inp, mex->inputdata, mod_len)) ICAMEX_msg_to_type50MEX_msg()
247 int mod_len, short_len; ICACRT_msg_to_type50CRT_msg() local
250 mod_len = crt->inputdatalength; ICACRT_msg_to_type50CRT_msg()
251 short_len = mod_len / 2; ICACRT_msg_to_type50CRT_msg()
259 if (mod_len <= 128) { /* up to 1024 bit key size */ ICACRT_msg_to_type50CRT_msg()
271 inp = crb1->message + sizeof(crb1->message) - mod_len; ICACRT_msg_to_type50CRT_msg()
272 } else if (mod_len <= 256) { /* up to 2048 bit key size */ ICACRT_msg_to_type50CRT_msg()
284 inp = crb2->message + sizeof(crb2->message) - mod_len; ICACRT_msg_to_type50CRT_msg()
285 } else if ((mod_len <= 512) && /* up to 4096 bit key size */ ICACRT_msg_to_type50CRT_msg()
298 inp = crb3->message + sizeof(crb3->message) - mod_len; ICACRT_msg_to_type50CRT_msg()
311 copy_from_user(inp, crt->inputdata, mod_len)) ICACRT_msg_to_type50CRT_msg()
H A Dzcrypt_pcica.c89 int mod_len; ICAMEX_msg_to_type4MEX_msg() local
91 mod_len = mex->inputdatalength; ICAMEX_msg_to_type4MEX_msg()
93 if (mod_len <= 128) { ICAMEX_msg_to_type4MEX_msg()
101 modulus = sme->modulus + sizeof(sme->modulus) - mod_len; ICAMEX_msg_to_type4MEX_msg()
102 exponent = sme->exponent + sizeof(sme->exponent) - mod_len; ICAMEX_msg_to_type4MEX_msg()
103 message = sme->message + sizeof(sme->message) - mod_len; ICAMEX_msg_to_type4MEX_msg()
112 modulus = lme->modulus + sizeof(lme->modulus) - mod_len; ICAMEX_msg_to_type4MEX_msg()
113 exponent = lme->exponent + sizeof(lme->exponent) - mod_len; ICAMEX_msg_to_type4MEX_msg()
114 message = lme->message + sizeof(lme->message) - mod_len; ICAMEX_msg_to_type4MEX_msg()
117 if (copy_from_user(modulus, mex->n_modulus, mod_len) || ICAMEX_msg_to_type4MEX_msg()
118 copy_from_user(exponent, mex->b_key, mod_len) || ICAMEX_msg_to_type4MEX_msg()
119 copy_from_user(message, mex->inputdata, mod_len)) ICAMEX_msg_to_type4MEX_msg()
138 int mod_len, short_len, long_len; ICACRT_msg_to_type4CRT_msg() local
140 mod_len = crt->inputdatalength; ICACRT_msg_to_type4CRT_msg()
141 short_len = mod_len / 2; ICACRT_msg_to_type4CRT_msg()
142 long_len = mod_len / 2 + 8; ICACRT_msg_to_type4CRT_msg()
144 if (mod_len <= 128) { ICACRT_msg_to_type4CRT_msg()
157 inp = scr->message + sizeof(scr->message) - mod_len; ICACRT_msg_to_type4CRT_msg()
171 inp = lcr->message + sizeof(lcr->message) - mod_len; ICACRT_msg_to_type4CRT_msg()
179 copy_from_user(inp, crt->inputdata, mod_len)) ICACRT_msg_to_type4CRT_msg()
H A Dzcrypt_cca_key.h116 unsigned short mod_len; member in struct:cca_pvt_ext_CRT_sec
320 key->pvt.mod_len = crt->inputdatalength; zcrypt_type6_crt_key()
/linux-4.1.27/fs/btrfs/
H A Dextent_map.c240 em->mod_len = (em->mod_len + em->mod_start) - merge->mod_start; try_merge_map()
258 em->mod_len = (merge->mod_start + merge->mod_len) - em->mod_start; try_merge_map()
293 em->mod_len = em->len; unpin_extent_cache()
304 em->mod_len = em->len; unpin_extent_cache()
327 em->mod_len = em->len; setup_extent_mapping()
H A Dextent_map.h27 u64 mod_len; member in struct:extent_map
H A Dtree-log.c3790 u64 mod_len = em->mod_len; wait_ordered_extents() local
3811 if (!mod_len) list_for_each_entry()
3815 mod_start + mod_len <= ordered->file_offset) list_for_each_entry()
3844 * go ahead and adjust mod_start and mod_len in case this list_for_each_entry()
3849 mod_start + mod_len) list_for_each_entry()
3850 mod_len = ordered->file_offset - mod_start; list_for_each_entry()
3857 * Just don't mess with mod_start and mod_len, we'll list_for_each_entry()
3863 mod_start + mod_len) { list_for_each_entry()
3864 mod_len = (mod_start + mod_len) - list_for_each_entry()
3869 mod_len = 0; list_for_each_entry()
3897 if (*ordered_io_error || !mod_len || ret || skip_csum)
3905 csum_len = mod_len;
4768 const u64 mod_end = em->mod_start + em->mod_len - 1; btrfs_log_inode()
H A Dinode.c773 em->mod_len = em->len; submit_compressed_extents()
990 em->mod_len = em->len; cow_file_range()
1418 em->mod_len = em->len; run_delalloc_nocow()
7400 em->mod_len = len; create_pinned_em()
/linux-4.1.27/include/linux/
H A Dccp.h285 * @mod_len: length in bytes of modulus
291 * - key_size, exp, exp_len, mod, mod_len, src, dst, src_len
300 u32 mod_len; /* In bytes */ member in struct:ccp_rsa_engine
458 * @mod_len: length in bytes of modulus
464 * - function, mod, mod_len
472 u32 mod_len; /* In bytes */ member in struct:ccp_ecc_engine
/linux-4.1.27/drivers/crypto/ccp/
H A Dccp-ops.c1625 ccp_reverse_set_dm_area(&src, rsa->mod, rsa->mod_len, CCP_KSB_BYTES, ccp_run_rsa_cmd()
1633 ret = ccp_init_data(&dst, cmd_q, rsa->dst, rsa->mod_len, ccp_run_rsa_cmd()
1655 ccp_reverse_get_dm_area(&dst.dm_wa, rsa->dst, rsa->mod_len); ccp_run_rsa_cmd()
1843 ccp_reverse_set_dm_area(&src, ecc->mod, ecc->mod_len, ccp_run_ecc_mm_cmd()
1962 ccp_reverse_set_dm_area(&src, ecc->mod, ecc->mod_len, ccp_run_ecc_pm_cmd()
2074 (ecc->mod_len > CCP_ECC_MODULUS_BYTES)) ccp_run_ecc_cmd()
/linux-4.1.27/include/xen/interface/
H A Dxen.h595 * b. initial ram disk [mod_start, mod_len]
636 unsigned long mod_len; /* Size (bytes) of pre-loaded module. */ member in struct:start_info
/linux-4.1.27/arch/x86/xen/
H A Denlighten.c1667 boot_params.hdr.ramdisk_size = xen_start_info->mod_len; xen_start_kernel()

Completed in 375 milliseconds