Lines Matching refs:long_len
156 int mod_len, short_len, long_len, long_offset, limit; in ICACRT_msg_to_type50CRT_msg() local
161 long_len = mod_len / 2 + 8; in ICACRT_msg_to_type50CRT_msg()
173 if (long_len > limit) { in ICACRT_msg_to_type50CRT_msg()
178 long_offset = long_len - limit; in ICACRT_msg_to_type50CRT_msg()
179 long_len = limit; in ICACRT_msg_to_type50CRT_msg()
187 if (long_len <= 64) { in ICACRT_msg_to_type50CRT_msg()
194 p = crb1->p + sizeof(crb1->p) - long_len; in ICACRT_msg_to_type50CRT_msg()
196 dp = crb1->dp + sizeof(crb1->dp) - long_len; in ICACRT_msg_to_type50CRT_msg()
198 u = crb1->u + sizeof(crb1->u) - long_len; in ICACRT_msg_to_type50CRT_msg()
200 } else if (long_len <= 128) { in ICACRT_msg_to_type50CRT_msg()
207 p = crb2->p + sizeof(crb2->p) - long_len; in ICACRT_msg_to_type50CRT_msg()
209 dp = crb2->dp + sizeof(crb2->dp) - long_len; in ICACRT_msg_to_type50CRT_msg()
211 u = crb2->u + sizeof(crb2->u) - long_len; in ICACRT_msg_to_type50CRT_msg()
221 p = crb3->p + sizeof(crb3->p) - long_len; in ICACRT_msg_to_type50CRT_msg()
223 dp = crb3->dp + sizeof(crb3->dp) - long_len; in ICACRT_msg_to_type50CRT_msg()
225 u = crb3->u + sizeof(crb3->u) - long_len; in ICACRT_msg_to_type50CRT_msg()
229 if (copy_from_user(p, crt->np_prime + long_offset, long_len) || in ICACRT_msg_to_type50CRT_msg()
231 copy_from_user(dp, crt->bp_key + long_offset, long_len) || in ICACRT_msg_to_type50CRT_msg()
233 copy_from_user(u, crt->u_mult_inv + long_offset, long_len) || in ICACRT_msg_to_type50CRT_msg()