Searched refs:kmflag (Results 1 - 25 of 109) sorted by relevance

12345

/illumos-gate/usr/src/common/crypto/ecc/
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.h60 ECGroup *ECGroup_fromHex(const ECCurveParams * params, int kmflag);
63 ECGroup *ECGroup_fromName(const ECCurveName name, int kmflag);
69 ECCurveParams *EC_GetNamedCurveParams(const ECCurveName name, int kmflag);
72 ECCurveParams *ECCurveParams_dup(const ECCurveParams * params, int kmflag);
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 Dec.c88 const SECItem *pointP, SECItem *pointQ, int kmflag)
150 CHECK_MPI_OK( mp_init(&Px, kmflag) );
151 CHECK_MPI_OK( mp_init(&Py, kmflag) );
152 CHECK_MPI_OK( mp_init(&Qx, kmflag) );
153 CHECK_MPI_OK( mp_init(&Qy, kmflag) );
154 CHECK_MPI_OK( mp_init(&Gx, kmflag) );
155 CHECK_MPI_OK( mp_init(&Gy, kmflag) );
156 CHECK_MPI_OK( mp_init(&order, kmflag) );
157 CHECK_MPI_OK( mp_init(&irreducible, kmflag) );
158 CHECK_MPI_OK( mp_init(&a, kmflag) );
87 ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2, const SECItem *pointP, SECItem *pointQ, int kmflag) argument
246 ec_NewKey(ECParams *ecParams, ECPrivateKey **privKey, const unsigned char *privKeyBytes, int privKeyLen, int kmflag) argument
358 EC_NewKeyFromSeed(ECParams *ecParams, ECPrivateKey **privKey, const unsigned char *seed, int seedlen, int kmflag) argument
379 ec_GenerateRandomPrivateKey(const unsigned char *order, int len, int kmflag) argument
431 EC_NewKey(ECParams *ecParams, ECPrivateKey **privKey, int kmflag) argument
468 EC_ValidatePublicKey(ECParams *ecParams, SECItem *publicValue, int kmflag) argument
555 ECDH_Derive(SECItem *publicValue, ECParams *ecParams, SECItem *privateValue, PRBool withCofactor, SECItem *derivedSecret, int kmflag) argument
631 ECDSA_SignDigestWithSeed(ECPrivateKey *key, SECItem *signature, const SECItem *digest, const unsigned char *kb, const int kblen, int kmflag) argument
830 ECDSA_SignDigest(ECPrivateKey *key, SECItem *signature, const SECItem *digest, int kmflag) argument
868 ECDSA_VerifyDigest(ECPublicKey *key, const SECItem *signature, const SECItem *digest, 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 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 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 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
/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/crypto/io/
H A Decc.c471 int kmflag; local
492 kmflag = crypto_kmflag(req);
493 if (EC_DecodeParams(&params_item, &ecparams, kmflag) != SECSuccess) {
503 dctxp = kmem_zalloc(sizeof (digest_ecc_ctx_t), kmflag);
507 ctxp = kmem_zalloc(sizeof (ecc_ctx_t), kmflag);
517 kmflag)) != CRYPTO_SUCCESS) {
653 int kmflag; local
682 kmflag = crypto_kmflag(req);
684 kmflag)) != SECSuccess) {
791 int kmflag; local
855 int kmflag; local
988 int kmflag; local
1060 int kmflag; local
1185 int kmflag; local
[all...]
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
/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/uts/i86pc/os/
H A Dhma_fpu.c85 hma_fpu_alloc(int kmflag) argument
89 fpu = kmem_zalloc(sizeof (hma_fpu_t), kmflag);
94 kmem_cache_alloc(fpsave_cachep, kmflag);
/illumos-gate/usr/src/common/crypto/modes/
H A Decb.c141 ecb_alloc_ctx(int kmflag) argument
146 if ((ecb_ctx = kmem_zalloc(sizeof (ecb_ctx_t), kmflag)) == NULL)
H A Dcbc.c325 cbc_cmac_alloc_ctx(int kmflag, uint32_t mode) argument
334 if ((cbc_ctx = kmem_zalloc(sizeof (cbc_ctx_t), kmflag)) == NULL)
345 cbc_alloc_ctx(int kmflag) argument
347 return (cbc_cmac_alloc_ctx(kmflag, CBC_MODE));
356 cmac_alloc_ctx(int kmflag) argument
358 return (cbc_cmac_alloc_ctx(kmflag, CMAC_MODE));
H A Dgcm.c688 gcm_alloc_ctx(int kmflag) argument
693 if ((gcm_ctx = kmem_zalloc(sizeof (gcm_ctx_t), kmflag)) == NULL)
704 gmac_alloc_ctx(int kmflag) argument
709 if ((gcm_ctx = kmem_zalloc(sizeof (gcm_ctx_t), kmflag)) == NULL)
720 gcm_set_kmflag(gcm_ctx_t *ctx, int kmflag) argument
722 ctx->gcm_kmflag = kmflag;
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c135 #define LOGBUFV_ALLOC(kmflag) { \
141 if (kmflag == KM_SLEEP) \
143 _p = kmem_cache_alloc(log_buf_kmc, kmflag); \
145 if (kmflag == KM_SLEEP) { \
169 log_buf_alloc(int kmflag) argument
181 LOGBUFV_ALLOC(kmflag);
201 LOGBUFV_ALLOC(kmflag);
656 int kmflag = servicing_interrupt() ? KM_NOSLEEP : KM_SLEEP; local
669 log_buf_alloc(kmflag);
753 log_buf_alloc(kmflag);
[all...]
H A Dsockparams.c402 const char *name, boolean_t by_devpath, int kmflag, int *errorp)
427 namebuf = kmem_alloc(namelen, kmflag);
437 SOCKPARAMS_EPHEMERAL, kmflag, errorp);
441 SOCKPARAMS_EPHEMERAL, kmflag, errorp);
499 const char *dev, int kmflag, int *errorp)
502 kmflag, errorp));
507 const char *mod, int kmflag, int *errorp)
510 kmflag, errorp));
401 sockparams_hold_ephemeral(int family, int type, int protocol, const char *name, boolean_t by_devpath, int kmflag, int *errorp) argument
498 sockparams_hold_ephemeral_bydev(int family, int type, int protocol, const char *dev, int kmflag, int *errorp) argument
506 sockparams_hold_ephemeral_bymod(int family, int type, int protocol, const char *mod, int kmflag, int *errorp) argument
/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/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/sdcard/impl/
H A Dsda_cmd.c264 sda_rtype_t rtype, void *data, int kmflag)
268 c = kmem_cache_alloc(sda_cmd_cache, kmflag);
297 sda_rtype_t rtype, void *data, int kmflag)
301 c = kmem_cache_alloc(sda_cmd_cache, kmflag);
263 sda_cmd_alloc(sda_slot_t *slot, sda_index_t index, uint32_t argument, sda_rtype_t rtype, void *data, int kmflag) argument
296 sda_cmd_alloc_acmd(sda_slot_t *slot, sda_index_t index, uint32_t argument, sda_rtype_t rtype, void *data, int kmflag) 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/uts/common/sys/
H A Dddi_hp_impl.h142 ddi_hp_cn_sysevent_t event_sub_class, int hint, int kmflag);

Completed in 316 milliseconds

12345