Searched refs:mex (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_cca_key.h | 99 static inline int zcrypt_type6_mex_key_en(struct ica_rsa_modexpo *mex, void *p) in zcrypt_type6_mex_key_en() argument 121 if (WARN_ON_ONCE(mex->inputdatalength > 512)) in zcrypt_type6_mex_key_en() 131 if (copy_from_user(ptr, mex->b_key, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 133 ptr += mex->inputdatalength; in zcrypt_type6_mex_key_en() 135 if (copy_from_user(ptr, mex->n_modulus, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 138 key->pubsec.modulus_bit_len = 8 * mex->inputdatalength; in zcrypt_type6_mex_key_en() 139 key->pubsec.modulus_byte_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 140 key->pubsec.exponent_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 142 2 * mex->inputdatalength; in zcrypt_type6_mex_key_en() 148 return sizeof(*key) + 2 * mex->inputdatalength; in zcrypt_type6_mex_key_en()
|
| H A D | zcrypt_api.c | 642 struct ica_rsa_modexpo *mex) in zcrypt_rsa_modexpo() argument 652 trace_s390_zcrypt_req(mex, TP_ICARSAMODEXPO); in zcrypt_rsa_modexpo() 658 if (mex->outputdatalength < mex->inputdatalength) { in zcrypt_rsa_modexpo() 668 mex->outputdatalength = mex->inputdatalength; in zcrypt_rsa_modexpo() 670 rc = get_rsa_modex_fc(mex, &func_code); in zcrypt_rsa_modexpo() 683 if (zc->min_mod_size > mex->inputdatalength || in zcrypt_rsa_modexpo() 684 zc->max_mod_size < mex->inputdatalength) in zcrypt_rsa_modexpo() 728 rc = pref_zq->ops->rsa_modexpo(pref_zq, mex, &ap_msg); in zcrypt_rsa_modexpo() 740 trace_s390_zcrypt_rep(mex, func_code, rc, in zcrypt_rsa_modexpo() 1490 struct ica_rsa_modexpo mex; in icarsamodexpo_ioctl() local [all …]
|
| H A D | zcrypt_msgtype50.h | 22 int get_rsa_modex_fc(struct ica_rsa_modexpo *mex, int *fc);
|
| /linux/net/mctp/ |
| H A D | af_mctp.c | 729 struct mctp_sock *mex = in mctp_sk_hash() local 732 bool same_peer = (mex->bind_peer_set && msk->bind_peer_set && in mctp_sk_hash() 733 mex->bind_peer_addr == msk->bind_peer_addr) || in mctp_sk_hash() 734 (!mex->bind_peer_set && !msk->bind_peer_set); in mctp_sk_hash() 736 if (mex->bind_type == msk->bind_type && in mctp_sk_hash() 737 mex->bind_local_addr == msk->bind_local_addr && same_peer && in mctp_sk_hash() 738 mex->bind_net == msk->bind_net) { in mctp_sk_hash()
|