Home
last modified time | relevance | path

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

/linux/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()
144 temp += mex->inputdatalength - i; in zcrypt_type6_mex_key_en()
153 2*mex->inputdatalength - i; in zcrypt_type6_mex_key_en()
158 return sizeof(*key) + 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.c162 if (!mex->inputdatalength) in get_rsa_modex_fc()
165 if (mex->inputdatalength <= 128) /* 1024 bit */ in get_rsa_modex_fc()
167 else if (mex->inputdatalength <= 256) /* 2048 bit */ in get_rsa_modex_fc()
178 if (!crt->inputdatalength) in get_rsa_crt_fc()
181 if (crt->inputdatalength <= 128) /* 1024 bit */ in get_rsa_crt_fc()
183 else if (crt->inputdatalength <= 256) /* 2048 bit */ in get_rsa_crt_fc()
207 mod_len = mex->inputdatalength; in ICAMEX_msg_to_type50MEX_msg()
274 mod_len = crt->inputdatalength; in ICACRT_msg_to_type50CRT_msg()
A Dzcrypt_api.c663 mex->outputdatalength = mex->inputdatalength; in zcrypt_rsa_modexpo()
679 zc->max_mod_size < mex->inputdatalength) in zcrypt_rsa_modexpo()
771 crt->outputdatalength = crt->inputdatalength; in zcrypt_rsa_crt()
1421 if (mex.inputdatalength & (1U << 31)) { in icarsamodexpo_ioctl()
1426 mex.inputdatalength &= 0x0000FFFF; in icarsamodexpo_ioctl()
1466 if (crt.inputdatalength & (1U << 31)) { in icarsacrt_ioctl()
1471 crt.inputdatalength &= 0x0000FFFF; in icarsacrt_ioctl()
1722 unsigned int inputdatalength; member
1742 mex64.inputdatalength = mex32.inputdatalength; in trans_modexpo32()
1769 unsigned int inputdatalength; member
[all …]
A Dzcrypt_msgtype6.c277 if (WARN_ON_ONCE(mex->inputdatalength > PAGE_SIZE)) in ICAMEX_msg_to_type6MEX_msgX()
281 msg->length = mex->inputdatalength + 2; in ICAMEX_msg_to_type6MEX_msgX()
282 if (copy_from_user(msg->text, mex->inputdata, mex->inputdatalength)) in ICAMEX_msg_to_type6MEX_msgX()
286 size = zcrypt_type6_mex_key_en(mex, msg->text+mex->inputdatalength); in ICAMEX_msg_to_type6MEX_msgX()
289 size += sizeof(*msg) + mex->inputdatalength; in ICAMEX_msg_to_type6MEX_msgX()
347 if (WARN_ON_ONCE(crt->inputdatalength > PAGE_SIZE)) in ICACRT_msg_to_type6CRT_msgX()
351 msg->length = crt->inputdatalength + 2; in ICACRT_msg_to_type6CRT_msgX()
352 if (copy_from_user(msg->text, crt->inputdata, crt->inputdatalength)) in ICACRT_msg_to_type6CRT_msgX()
356 size = zcrypt_type6_crt_key(crt, msg->text + crt->inputdatalength); in ICACRT_msg_to_type6CRT_msgX()
359 size += sizeof(*msg) + crt->inputdatalength; /* total size of msg */ in ICACRT_msg_to_type6CRT_msgX()
/linux/arch/s390/include/uapi/asm/
A Dzcrypt.h40 __u32 inputdatalength; member
63 __u32 inputdatalength; member

Completed in 16 milliseconds