/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ecl_curve.c | 59 ECCurveParams_dup(const ECCurveParams * params, int kmflag) argument 65 ret = (ECCurveParams *) kmem_zalloc(sizeof(ECCurveParams), kmflag); 71 ret->text = kmem_alloc(strlen(params->text) + 1, kmflag); 81 ret->irr = kmem_alloc(strlen(params->irr) + 1, kmflag); 89 ret->curvea = kmem_alloc(strlen(params->curvea) + 1, kmflag); 97 ret->curveb = kmem_alloc(strlen(params->curveb) + 1, kmflag); 105 ret->genx = kmem_alloc(strlen(params->genx) + 1, kmflag); 113 ret->geny = kmem_alloc(strlen(params->geny) + 1, kmflag); 121 ret->order = kmem_alloc(strlen(params->order) + 1, kmflag); 141 EC_GetNamedCurveParams(const ECCurveName name, int kmflag) argument [all...] |
H A D | secitem.c | 69 int kmflag) 80 result = PORT_ArenaZAlloc(arena, sizeof(SECItem), kmflag); 82 result = PORT_ZAlloc(sizeof(SECItem), kmflag); 95 result->data = PORT_ArenaAlloc(arena, len, kmflag); 97 result->data = PORT_Alloc(len, kmflag); 134 int kmflag) 140 kmflag); 142 to->data = (unsigned char*) PORT_Alloc(from->len, kmflag); 68 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len, int kmflag) argument 133 SECITEM_CopyItem(PRArenaPool *arena, SECItem *to, const SECItem *from, int kmflag) argument
|
H A D | ec2_test.c | 148 int generic, int kmflag) 157 MP_CHECKOK(mp_init(&one, kmflag)); 158 MP_CHECKOK(mp_init(&order_1, kmflag)); 159 MP_CHECKOK(mp_init(&gx, kmflag)); 160 MP_CHECKOK(mp_init(&gy, kmflag)); 161 MP_CHECKOK(mp_init(&rx, kmflag)); 162 MP_CHECKOK(mp_init(&ry, kmflag)); 163 MP_CHECKOK(mp_init(&n, kmflag)); 147 ectest_curve_GF2m(ECGroup *group, int ectestPrint, int ectestTime, int generic, int kmflag) argument
|
H A D | ecdecode.c | 71 int kmflag) 85 item->data = (unsigned char *) PORT_ArenaAlloc(arena, tmp/2, kmflag); 112 int kmflag) 127 curveParams->irr, kmflag)); 130 curveParams->irr, kmflag)); 133 curveParams->curvea, kmflag)); 135 curveParams->curveb, kmflag)); 141 CHECK_OK(hexString2SECItem(NULL, ¶ms->base, genenc, kmflag)); 143 curveParams->order, kmflag)); 156 ECParams *params, int kmflag) 70 hexString2SECItem(PRArenaPool *arena, SECItem *item, const char *str, int kmflag) argument 111 gf_populate_params(ECCurveName name, ECFieldType field_type, ECParams *params, int kmflag) argument 155 EC_FillParams(PRArenaPool *arena, const SECItem *encodedParams, ECParams *params, int kmflag) argument 578 EC_DecodeParams(const SECItem *encodedParams, ECParams **ecparams, int kmflag) argument [all...] |
H A D | ecl.c | 60 ECGroup_new(int kmflag) argument 65 group = (ECGroup *) kmem_alloc(sizeof(ECGroup), kmflag); 85 MP_CHECKOK(mp_init(&group->curvea, kmflag)); 86 MP_CHECKOK(mp_init(&group->curveb, kmflag)); 87 MP_CHECKOK(mp_init(&group->genx, kmflag)); 88 MP_CHECKOK(mp_init(&group->geny, kmflag)); 89 MP_CHECKOK(mp_init(&group->order, kmflag)); 230 const ECCurveParams * params, int kmflag) 244 MP_CHECKOK(mp_init(&irr, kmflag)); 245 MP_CHECKOK(mp_init(&curvea, kmflag)); 229 ecgroup_fromNameAndHex(const ECCurveName name, const ECCurveParams * params, int kmflag) argument 386 ECGroup_fromHex(const ECCurveParams * params, int kmflag) argument 393 ECGroup_fromName(const ECCurveName name, int kmflag) argument [all...] |
H A D | ecp_test.c | 147 int generic, int kmflag) 156 MP_CHECKOK(mp_init(&one, kmflag)); 157 MP_CHECKOK(mp_init(&order_1, kmflag)); 158 MP_CHECKOK(mp_init(&gx, kmflag)); 159 MP_CHECKOK(mp_init(&gy, kmflag)); 160 MP_CHECKOK(mp_init(&rx, kmflag)); 161 MP_CHECKOK(mp_init(&ry, kmflag)); 162 MP_CHECKOK(mp_init(&n, kmflag)); 146 ectest_curve_GFp(ECGroup *group, int ectestPrint, int ectestTime, int generic, int kmflag) argument
|
H A D | ec2_mont.c | 62 gf2m_Mdouble(mp_int *x, mp_int *z, const ECGroup *group, int kmflag) argument 68 MP_CHECKOK(mp_init(&t1, kmflag)); 90 const ECGroup *group, int kmflag) 97 MP_CHECKOK(mp_init(&t1, kmflag)); 98 MP_CHECKOK(mp_init(&t2, kmflag)); 89 gf2m_Madd(const mp_int *x, mp_int *x1, mp_int *z1, mp_int *x2, mp_int *z2, const ECGroup *group, int kmflag) argument
|
H A D | ecl_gf.c | 58 GFMethod_new(int kmflag) argument 63 meth = (GFMethod *) kmem_alloc(sizeof(GFMethod), kmflag); 72 MP_CHECKOK(mp_init(&meth->irr, kmflag));
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_ctxops.c | 56 * kmflag: KM_SLEEP/KM_NOSLEEP mem. alloc. flag. 77 crypto_ctx_template_t *ptmpl, int kmflag) 98 sizeof (kcf_ctx_template_t), kmflag)) == NULL) { 109 &(ctx_tmpl->ct_prov_tmpl), &(ctx_tmpl->ct_size), KCF_RHNDL(kmflag)); 76 crypto_create_ctx_template(crypto_mechanism_t *mech, crypto_key_t *key, crypto_ctx_template_t *ptmpl, int kmflag) argument
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | id32.c | 76 id32_alloc(void *ptr, int kmflag) argument 78 void **hent = kmem_cache_alloc(id32_cache, kmflag);
|
H A D | ddi_nodeid.c | 85 np_alloc(int kmflag) argument 87 return (kmem_zalloc(sizeof (struct available), kmflag)); 296 impl_ddi_take_nodeid(int n, int kmflag) argument 318 fp = np_alloc(kmflag); /* if KM_NOSLEEP, fp may be NULL */
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | cbc.c | 307 cbc_alloc_ctx(int kmflag) argument 312 if ((cbc_ctx = kmem_zalloc(sizeof (cbc_ctx_t), kmflag)) == NULL)
|
H A D | ecb.c | 141 ecb_alloc_ctx(int kmflag) argument 146 if ((ecb_ctx = kmem_zalloc(sizeof (ecb_ctx_t), kmflag)) == NULL)
|
H A D | ctr.c | 236 ctr_alloc_ctx(int kmflag) argument 241 if ((ctr_ctx = kmem_zalloc(sizeof (ctr_ctx_t), kmflag)) == NULL)
|
/illumos-gate/usr/src/uts/common/io/cxgbe/shared/ |
H A D | shared.c | 98 rxbuf_ctor(void *arg1, void *arg2, int kmflag) argument 108 if (kmflag & KM_SLEEP)
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_ud_dest.c | 41 static void ibmf_i_populate_ud_dest_list(ibmf_ci_t *cip, int kmflag); 146 ibmf_i_populate_ud_dest_list(ibmf_ci_t *cip, int kmflag) argument 155 "ibmf_i_populate_ud_dest_list() enter, cip = %p, kmflag = %d \n", 156 tnf_opaque, cip, cip, tnf_int, kmflag, kmflag); 159 if (kmflag == KM_NOSLEEP) { 195 ibmf_ud_dest = kmem_zalloc(sizeof (ibmf_ud_dest_t), kmflag);
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_dsa.c | 53 crypto_key_t *key, int kmflag, int mode); 383 crypto_key_t *key, int kmflag, int mode) 545 int kmflag, crypto_req_handle_t req, int mode) 553 rv = dca_dsainit(&ctx, mechanism, key, kmflag, mode); 382 dca_dsainit(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag, int mode) argument 542 dca_dsaatomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *data, crypto_data_t *sig, int kmflag, crypto_req_handle_t req, int mode) argument
|
H A D | blowfish.c | 281 int kmflag; local 297 kmflag = crypto_kmflag(req); 300 blowfish_ctx = ecb_alloc_ctx(kmflag); 303 blowfish_ctx = cbc_alloc_ctx(kmflag); 310 key, kmflag); 828 crypto_key_t *key, int kmflag) 836 if ((keysched = blowfish_alloc_keysched(&size, kmflag)) == NULL) 826 blowfish_common_init_ctx(blowfish_ctx_t *blowfish_ctx, crypto_spi_ctx_template_t *template, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag) argument
|
H A D | dca_3des.c | 317 int kmflag, crypto_req_handle_t req, int mode) 338 rv = dca_3desctxinit(&ctx, mechanism, key, kmflag, mode); 657 crypto_key_t *key, int kmflag, int flags) 314 dca_3desatomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *input, crypto_data_t *output, int kmflag, crypto_req_handle_t req, int mode) argument 656 dca_3desctxinit(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag, int flags) argument
|
/illumos-gate/usr/src/uts/sun/io/dada/impl/ |
H A D | dcd_resource.c | 65 int kmflag; local 70 kmflag = (callback == SLEEP_FUNC) ? KM_SLEEP: KM_NOSLEEP; 71 if ((bp = getrbuf(kmflag)) == NULL) {
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | vncache.c | 123 vn_alloc(int kmflag) argument 127 vp = kmem_cache_alloc(vn_cache, kmflag);
|
/illumos-gate/usr/src/common/crypto/blowfish/ |
H A D | blowfish_impl.c | 684 blowfish_alloc_keysched(size_t *size, int kmflag) argument 689 keysched = (keysched_t *)kmem_alloc(sizeof (keysched_t), kmflag);
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_prov_lib.c | 277 size_t *out_size, int kmflag) 297 key = kmem_alloc(len, kmflag); 276 crypto_copy_key_to_ctx(crypto_key_t *in_key, crypto_key_t **out_key, size_t *out_size, int kmflag) argument
|
H A D | kcf_prov_tabs.c | 674 kcf_get_hw_prov_tab(uint_t *count, kcf_provider_desc_t ***array, int kmflag, argument 708 p = kmem_zalloc(n, kmflag); 749 final_buffer = kmem_alloc(final_size, kmflag);
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | socksctpsubr.c | 166 sosctp_assoc_create(struct sctp_sonode *ss, int kmflag) argument 170 ssa = kmem_cache_alloc(sosctp_assoccache, kmflag);
|