Home
last modified time | relevance | path

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

/drivers/s390/crypto/
Dzcrypt_cca_key.h292 int short_len, long_len, pad_len, key_len, size; in zcrypt_type6_crt_key() local
296 short_len = crt->inputdatalength / 2; in zcrypt_type6_crt_key()
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()
321 key->pvt.q_len = key->pvt.dq_len = short_len; in zcrypt_type6_crt_key()
328 crt->nq_prime, short_len) || in zcrypt_type6_crt_key()
329 copy_from_user(key->key_parts + long_len + short_len, in zcrypt_type6_crt_key()
331 copy_from_user(key->key_parts + 2*long_len + short_len, in zcrypt_type6_crt_key()
332 crt->bq_key, short_len) || in zcrypt_type6_crt_key()
[all …]
Dzcrypt_cex2a.c156 int mod_len, short_len, long_len, long_offset, limit; in ICACRT_msg_to_type50CRT_msg() local
160 short_len = mod_len / 2; in ICACRT_msg_to_type50CRT_msg()
195 q = crb1->q + sizeof(crb1->q) - short_len; in ICACRT_msg_to_type50CRT_msg()
197 dq = crb1->dq + sizeof(crb1->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
208 q = crb2->q + sizeof(crb2->q) - short_len; in ICACRT_msg_to_type50CRT_msg()
210 dq = crb2->dq + sizeof(crb2->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
222 q = crb3->q + sizeof(crb3->q) - short_len; in ICACRT_msg_to_type50CRT_msg()
224 dq = crb3->dq + sizeof(crb3->dq) - short_len; in ICACRT_msg_to_type50CRT_msg()
230 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type50CRT_msg()
232 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg()
Dzcrypt_pcica.c138 int mod_len, short_len, long_len; in ICACRT_msg_to_type4CRT_msg() local
141 short_len = mod_len / 2; in ICACRT_msg_to_type4CRT_msg()
153 q = scr->q + sizeof(scr->q) - short_len; in ICACRT_msg_to_type4CRT_msg()
155 dq = scr->dq + sizeof(scr->dq) - short_len; in ICACRT_msg_to_type4CRT_msg()
167 q = lcr->q + sizeof(lcr->q) - short_len; in ICACRT_msg_to_type4CRT_msg()
169 dq = lcr->dq + sizeof(lcr->dq) - short_len; in ICACRT_msg_to_type4CRT_msg()
175 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type4CRT_msg()
177 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type4CRT_msg()