Searched refs:inputdatalength (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 125 if (WARN_ON_ONCE(mex->inputdatalength > 512)) in zcrypt_type6_mex_key_en() 135 if (copy_from_user(temp, mex->b_key, mex->inputdatalength)) 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() 146 if (copy_from_user(temp, mex->n_modulus, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 149 key->pubsec.modulus_bit_len = 8 * mex->inputdatalength; in zcrypt_type6_mex_key_en() 150 key->pubsec.modulus_byte_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 151 key->pubsec.exponent_len = mex->inputdatalength - i; in zcrypt_type6_mex_key_en() [all …]
|
D | zcrypt_msgtype50.c | 161 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()
|
D | zcrypt_api.c | 695 if (mex->outputdatalength < mex->inputdatalength) { in zcrypt_rsa_modexpo() 706 mex->outputdatalength = mex->inputdatalength; in zcrypt_rsa_modexpo() 721 if (zc->min_mod_size > mex->inputdatalength || in zcrypt_rsa_modexpo() 722 zc->max_mod_size < mex->inputdatalength) in zcrypt_rsa_modexpo() 805 if (crt->outputdatalength < crt->inputdatalength) { in zcrypt_rsa_crt() 816 crt->outputdatalength = crt->inputdatalength; in zcrypt_rsa_crt() 831 if (zc->min_mod_size > crt->inputdatalength || in zcrypt_rsa_crt() 832 zc->max_mod_size < crt->inputdatalength) in zcrypt_rsa_crt() 1503 if (mex.inputdatalength & (1U << 31)) { in icarsamodexpo_ioctl() 1506 tr.fi.cmd = (u16)(mex.inputdatalength >> 16); in icarsamodexpo_ioctl() [all …]
|
D | zcrypt_msgtype6.c | 220 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.1.9/arch/s390/include/uapi/asm/ |
D | zcrypt.h | 40 __u32 inputdatalength; member 63 __u32 inputdatalength; member
|