Home
last modified time | relevance | path

Searched refs:inputdatalength (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/drivers/s390/crypto/
A Dzcrypt_cca_key.h125 if (WARN_ON_ONCE(mex->inputdatalength > 512)) in zcrypt_type6_mex_key_en()
138 for (i = 0; i < mex->inputdatalength; i++) in zcrypt_type6_mex_key_en()
141 if (i >= mex->inputdatalength) in zcrypt_type6_mex_key_en()
143 memmove(temp, temp + i, mex->inputdatalength - i); in zcrypt_type6_mex_key_en()
144 temp += mex->inputdatalength - i; in zcrypt_type6_mex_key_en()
153 2 * mex->inputdatalength - i; in zcrypt_type6_mex_key_en()
194 if (WARN_ON_ONCE(crt->inputdatalength > 512)) in zcrypt_type6_crt_key()
199 short_len = (crt->inputdatalength + 1) / 2; in zcrypt_type6_crt_key()
220 key->pvt.mod_len = crt->inputdatalength; in zcrypt_type6_crt_key()
235 0xff, crt->inputdatalength); in zcrypt_type6_crt_key()
[all …]
A Dzcrypt_msgtype50.c161 if (!mex->inputdatalength) in get_rsa_modex_fc()
164 if (mex->inputdatalength <= 128) /* 1024 bit */ in get_rsa_modex_fc()
166 else if (mex->inputdatalength <= 256) /* 2048 bit */ in get_rsa_modex_fc()
176 if (!crt->inputdatalength) in get_rsa_crt_fc()
179 if (crt->inputdatalength <= 128) /* 1024 bit */ in get_rsa_crt_fc()
181 else if (crt->inputdatalength <= 256) /* 2048 bit */ in get_rsa_crt_fc()
205 mod_len = mex->inputdatalength; in ICAMEX_msg_to_type50MEX_msg()
273 mod_len = crt->inputdatalength; in ICACRT_msg_to_type50CRT_msg()
A Dzcrypt_api.c700 mex->outputdatalength = mex->inputdatalength; in zcrypt_rsa_modexpo()
716 zc->max_mod_size < mex->inputdatalength) in zcrypt_rsa_modexpo()
810 crt->outputdatalength = crt->inputdatalength; in zcrypt_rsa_crt()
1497 if (mex.inputdatalength & (1U << 31)) { in icarsamodexpo_ioctl()
1502 mex.inputdatalength &= 0x0000FFFF; in icarsamodexpo_ioctl()
1542 if (crt.inputdatalength & (1U << 31)) { in icarsacrt_ioctl()
1547 crt.inputdatalength &= 0x0000FFFF; in icarsacrt_ioctl()
1798 unsigned int inputdatalength; member
1818 mex64.inputdatalength = mex32.inputdatalength; in trans_modexpo32()
1845 unsigned int inputdatalength; member
[all …]
A Dzcrypt_msgtype6.c220 if (WARN_ON_ONCE(mex->inputdatalength > PAGE_SIZE)) in icamex_msg_to_type6mex_msgx()
224 msg->length = mex->inputdatalength + 2; in icamex_msg_to_type6mex_msgx()
225 if (copy_from_user(msg->text, mex->inputdata, mex->inputdatalength)) in icamex_msg_to_type6mex_msgx()
229 size = zcrypt_type6_mex_key_en(mex, msg->text + mex->inputdatalength); in icamex_msg_to_type6mex_msgx()
232 size += sizeof(*msg) + mex->inputdatalength; in icamex_msg_to_type6mex_msgx()
290 if (WARN_ON_ONCE(crt->inputdatalength > PAGE_SIZE)) in icacrt_msg_to_type6crt_msgx()
294 msg->length = crt->inputdatalength + 2; in icacrt_msg_to_type6crt_msgx()
295 if (copy_from_user(msg->text, crt->inputdata, crt->inputdatalength)) in icacrt_msg_to_type6crt_msgx()
299 size = zcrypt_type6_crt_key(crt, msg->text + crt->inputdatalength); in icacrt_msg_to_type6crt_msgx()
302 size += sizeof(*msg) + crt->inputdatalength; /* total size of msg */ in icacrt_msg_to_type6crt_msgx()
/linux-6.3-rc2/arch/s390/include/uapi/asm/
A Dzcrypt.h40 __u32 inputdatalength; member
63 __u32 inputdatalength; member

Completed in 15 milliseconds