Lines Matching refs:crt
290 static long zcrypt_rsa_crt(struct ica_rsa_modexpo_crt *crt) in zcrypt_rsa_crt() argument
298 trace_s390_zcrypt_req(crt, TP_ICARSACRT); in zcrypt_rsa_crt()
300 if (crt->outputdatalength < crt->inputdatalength) { in zcrypt_rsa_crt()
310 crt->outputdatalength = crt->inputdatalength; in zcrypt_rsa_crt()
312 rc = get_rsa_crt_fc(crt, &func_code); in zcrypt_rsa_crt()
324 if (zc->min_mod_size > crt->inputdatalength || in zcrypt_rsa_crt()
325 zc->max_mod_size < crt->inputdatalength) in zcrypt_rsa_crt()
352 rc = pref_zq->ops->rsa_modexpo_crt(pref_zq, crt); in zcrypt_rsa_crt()
359 trace_s390_zcrypt_rep(crt, func_code, rc, in zcrypt_rsa_crt()
816 struct ica_rsa_modexpo_crt crt; in zcrypt_unlocked_ioctl() local
818 if (copy_from_user(&crt, ucrt, sizeof(crt))) in zcrypt_unlocked_ioctl()
821 rc = zcrypt_rsa_crt(&crt); in zcrypt_unlocked_ioctl()
826 rc = zcrypt_rsa_crt(&crt); in zcrypt_unlocked_ioctl()
832 return put_user(crt.outputdatalength, &ucrt->outputdatalength); in zcrypt_unlocked_ioctl()