Searched defs:kmflag (Results 1 - 25 of 97) sorted by relevance

1234

/illumos-gate/usr/src/common/crypto/ecc/
H A Decl_curve.c59 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 Dsecitem.c69 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 Dec2_test.c148 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 Decdecode.c71 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, &params->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 Decl.c60 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 Decp_test.c147 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 Dec2_mont.c62 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 Decl_gf.c58 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 Dkcf_ctxops.c56 * 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 Did32.c76 id32_alloc(void *ptr, int kmflag) argument
78 void **hent = kmem_cache_alloc(id32_cache, kmflag);
H A Dddi_nodeid.c85 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 Dcbc.c307 cbc_alloc_ctx(int kmflag) argument
312 if ((cbc_ctx = kmem_zalloc(sizeof (cbc_ctx_t), kmflag)) == NULL)
H A Decb.c141 ecb_alloc_ctx(int kmflag) argument
146 if ((ecb_ctx = kmem_zalloc(sizeof (ecb_ctx_t), kmflag)) == NULL)
H A Dctr.c236 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 Dshared.c98 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 Dibmf_ud_dest.c41 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 Ddca_dsa.c53 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 Dblowfish.c281 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 Ddca_3des.c317 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 Ddcd_resource.c65 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 Dvncache.c123 vn_alloc(int kmflag) argument
127 vp = kmem_cache_alloc(vn_cache, kmflag);
/illumos-gate/usr/src/common/crypto/blowfish/
H A Dblowfish_impl.c684 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 Dkcf_prov_lib.c277 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 Dkcf_prov_tabs.c674 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 Dsocksctpsubr.c166 sosctp_assoc_create(struct sctp_sonode *ss, int kmflag) argument
170 ssa = kmem_cache_alloc(sosctp_assoccache, kmflag);

Completed in 1041 milliseconds

1234