Home
last modified time | relevance | path

Searched refs:long_len (Results 1 – 3 of 3) sorted by relevance

/drivers/s390/crypto/
Dzcrypt_cex2a.c156 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()
[all …]
Dzcrypt_cca_key.h292 int short_len, long_len, pad_len, key_len, size; in zcrypt_type6_crt_key() local
297 long_len = short_len + 8; in zcrypt_type6_crt_key()
298 pad_len = -(3*long_len + 2*short_len) & 7; in zcrypt_type6_crt_key()
299 key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
320 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key()
326 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key()
327 copy_from_user(key->key_parts + long_len, in zcrypt_type6_crt_key()
329 copy_from_user(key->key_parts + long_len + short_len, in zcrypt_type6_crt_key()
330 crt->bp_key, long_len) || in zcrypt_type6_crt_key()
331 copy_from_user(key->key_parts + 2*long_len + short_len, in zcrypt_type6_crt_key()
[all …]
Dzcrypt_pcica.c138 int mod_len, short_len, long_len; in ICACRT_msg_to_type4CRT_msg() local
142 long_len = mod_len / 2 + 8; in ICACRT_msg_to_type4CRT_msg()
152 p = scr->p + sizeof(scr->p) - long_len; in ICACRT_msg_to_type4CRT_msg()
154 dp = scr->dp + sizeof(scr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
156 u = scr->u + sizeof(scr->u) - long_len; in ICACRT_msg_to_type4CRT_msg()
166 p = lcr->p + sizeof(lcr->p) - long_len; in ICACRT_msg_to_type4CRT_msg()
168 dp = lcr->dp + sizeof(lcr->dp) - long_len; in ICACRT_msg_to_type4CRT_msg()
170 u = lcr->u + sizeof(lcr->u) - long_len; in ICACRT_msg_to_type4CRT_msg()
174 if (copy_from_user(p, crt->np_prime, long_len) || in ICACRT_msg_to_type4CRT_msg()
176 copy_from_user(dp, crt->bp_key, long_len) || in ICACRT_msg_to_type4CRT_msg()
[all …]