Home
last modified time | relevance | path

Searched refs:crk_param (Results 1 – 4 of 4) sorted by relevance

/freebsd-11-stable/crypto/openssl/crypto/engine/
HDeng_cryptodev.c1073 OPENSSL_free(kop->crk_param[i].crp_p); in zapparams()
1074 kop->crk_param[i].crp_p = NULL; in zapparams()
1075 kop->crk_param[i].crp_nbits = 0; in zapparams()
1089 kop->crk_param[kop->crk_iparams].crp_p = OPENSSL_malloc(rlen); in cryptodev_asym()
1090 if (kop->crk_param[kop->crk_iparams].crp_p == NULL) in cryptodev_asym()
1092 memset(kop->crk_param[kop->crk_iparams].crp_p, 0, (size_t)rlen); in cryptodev_asym()
1093 kop->crk_param[kop->crk_iparams].crp_nbits = rlen * 8; in cryptodev_asym()
1097 kop->crk_param[kop->crk_iparams + 1].crp_p = OPENSSL_malloc(slen); in cryptodev_asym()
1102 if (kop->crk_param[kop->crk_iparams+1].crp_p == NULL) in cryptodev_asym()
1104 memset(kop->crk_param[kop->crk_iparams + 1].crp_p, 0, (size_t)slen); in cryptodev_asym()
[all …]
/freebsd-11-stable/tools/tools/crypto/
HDcryptokeytest.c147 kop.crk_param[0].crp_p = ale; in UB_mod_exp()
148 kop.crk_param[0].crp_nbits = BN_num_bytes(a) * 8; in UB_mod_exp()
149 kop.crk_param[1].crp_p = ble; in UB_mod_exp()
150 kop.crk_param[1].crp_nbits = BN_num_bytes(b) * 8; in UB_mod_exp()
151 kop.crk_param[2].crp_p = cle; in UB_mod_exp()
152 kop.crk_param[2].crp_nbits = BN_num_bytes(c) * 8; in UB_mod_exp()
153 kop.crk_param[3].crp_p = cle; in UB_mod_exp()
154 kop.crk_param[3].crp_nbits = BN_num_bytes(c) * 8; in UB_mod_exp()
/freebsd-11-stable/sys/opencrypto/
HDcryptodev.c120 struct crparam32 crk_param[CRK_MAXPARAM]; member
250 crparam_from_32(&from->crk_param[i], &to->crk_param[i]); in crypt_kop_from_32()
264 crparam_to_32(&from->crk_param[i], &to->crk_param[i]); in crypt_kop_to_32()
1220 if (kop->crk_param[i].crp_nbits > 65536) { in cryptodev_key()
1225 krp->krp_param[i].crp_nbits = kop->crk_param[i].crp_nbits; in cryptodev_key()
1234 error = copyin(kop->crk_param[i].crp_p, krp->krp_param[i].crp_p, size); in cryptodev_key()
1264 error = copyout(krp->krp_param[i].crp_p, kop->crk_param[i].crp_p, size); in cryptodev_key()
HDcryptodev.h289 struct crparam crk_param[CRK_MAXPARAM]; member