Searched defs:data_len (Results 1 - 25 of 78) sorted by relevance

1234

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddig_mgr.c417 CK_ULONG data_len)
430 SHA1Update(ctx->context.sha1ctx, data, data_len);
434 MD5Update(ctx->context.md5ctx, data, data_len);
414 digest_mgr_digest_update(SESSION *sess, DIGEST_CONTEXT *ctx, CK_BYTE *data, CK_ULONG data_len) argument
H A Dasn1.c300 CK_ULONG data_len)
306 * if data_len < 127 use short form length id
307 * if data_len < 256 use long form length id with
309 * if data_len < 65536 use long form length id with
311 * if data_len < 16777216 use long form length id
314 if (data_len < 128)
315 len = 1 + 1 + data_len;
316 else if (data_len < 256)
317 len = 1 + (1 + 1) + data_len;
318 else if (data_len < (
296 ber_encode_INTEGER(CK_BBOOL length_only, CK_BYTE ** ber_int, CK_ULONG * ber_int_len, CK_BYTE * data, CK_ULONG data_len) argument
385 ber_decode_INTEGER(CK_BYTE * ber_int, CK_BYTE ** data, CK_ULONG * data_len, CK_ULONG * field_len) argument
446 ber_encode_OCTET_STRING(CK_BBOOL length_only, CK_BYTE ** str, CK_ULONG * str_len, CK_BYTE * data, CK_ULONG data_len) argument
536 ber_decode_OCTET_STRING(CK_BYTE * str, CK_BYTE ** data, CK_ULONG * data_len, CK_ULONG * field_len) argument
598 ber_encode_SEQUENCE(CK_BBOOL length_only, CK_BYTE ** seq, CK_ULONG * seq_len, CK_BYTE * data, CK_ULONG data_len) argument
681 ber_decode_SEQUENCE(CK_BYTE * seq, CK_BYTE ** data, CK_ULONG * data_len, CK_ULONG * field_len) argument
751 ber_encode_PrivateKeyInfo(CK_BBOOL length_only, CK_BYTE ** data, CK_ULONG * data_len, CK_BYTE * algorithm_id, CK_ULONG algorithm_id_len, CK_BYTE * priv_key, CK_ULONG priv_key_len) argument
832 ber_decode_PrivateKeyInfo(CK_BYTE * data, CK_ULONG data_len, CK_BYTE ** algorithm, CK_ULONG * alg_len, CK_BYTE ** priv_key) argument
883 ber_encode_RSAPrivateKey(CK_BBOOL length_only, CK_BYTE ** data, CK_ULONG * data_len, CK_ATTRIBUTE * modulus, CK_ATTRIBUTE * publ_exp, CK_ATTRIBUTE * priv_exp, CK_ATTRIBUTE * prime1, CK_ATTRIBUTE * prime2, CK_ATTRIBUTE * exponent1, CK_ATTRIBUTE * exponent2, CK_ATTRIBUTE * coeff) argument
1053 ber_decode_RSAPrivateKey(CK_BYTE * data, CK_ULONG data_len, CK_ATTRIBUTE ** modulus, CK_ATTRIBUTE ** publ_exp, CK_ATTRIBUTE ** priv_exp, CK_ATTRIBUTE ** prime1, CK_ATTRIBUTE ** prime2, CK_ATTRIBUTE ** exponent1, CK_ATTRIBUTE ** exponent2, CK_ATTRIBUTE ** coeff) argument
[all...]
H A Dkey_mgr.c244 CK_ULONG data_len; local
301 &data, &data_len);
309 length_only, &data, &data_len);
337 ctx, data, data_len, wrapped_key, wrapped_key_len);
361 CK_ULONG data_len; local
430 data, &data_len);
434 data = (CK_BYTE *)malloc(data_len);
442 data, &data_len);
463 rc = key_mgr_get_private_key_type(data, data_len, &keytype);
479 data_len, fromen
[all...]
H A Dsess_mgr.c767 CK_ULONG *data_len) {
792 op_data->data_len = op_data_len -
833 op_data->data_len = op_data_len -
874 op_data->data_len = op_data_len -
914 op_data->data_len = op_data_len -
954 op_data->data_len = op_data_len -
982 *data_len = op_data_len;
1019 if (len != op_data->data_len) {
1062 if (len != op_data->data_len) {
1104 if (len != op_data->data_len) {
764 session_mgr_get_op_state(SESSION *sess, CK_BBOOL length_only, CK_BYTE *data, CK_ULONG *data_len) argument
[all...]
H A Dutility.c501 CK_ULONG data_len,
505 attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + data_len);
510 attr->ulValueLen = data_len;
512 if (data_len > 0) {
514 (void) memcpy(attr->pValue, data, data_len);
527 UINT32 data_len,
533 pad_len = block_size - (data_len % block_size);
536 if (data_len + pad_len > total_len) {
549 UINT32 *data_len)
556 *data_len
499 build_attribute(CK_ATTRIBUTE_TYPE type, CK_BYTE *data, CK_ULONG data_len, CK_ATTRIBUTE **attrib) argument
525 add_pkcs_padding(CK_BYTE * ptr, UINT32 block_size, UINT32 data_len, UINT32 total_len) argument
546 strip_pkcs_padding( CK_BYTE *ptr, UINT32 total_len, UINT32 *data_len) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Drmcadm.h56 uint_t data_len; member in struct:rmcadm_send_srecord_bp
80 uint_t data_len; member in struct:rmcadm_send_srecord_bp32
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_crypt.c79 int data_len,
112 rv = C_SignUpdate(hSession, (CK_BYTE_PTR)data, data_len);
78 smb_auth_hmac_md5(unsigned char *data, int data_len, unsigned char *key, int key_len, unsigned char *digest) argument
H A Dsmb_auth.c261 int data_len; local
270 data_len = strlen(username) + strlen(ntdomain);
271 buf = (unsigned char *)malloc((data_len + 1) * sizeof (char));
275 (void) snprintf((char *)buf, data_len + 1, "%s%s", username, ntdomain);
276 data = (smb_wchar_t *)malloc((data_len + 1) * sizeof (smb_wchar_t));
282 data_len = smb_auth_qnd_unicode(data, (char *)buf, data_len);
283 rc = SMBAUTH_HMACT64((unsigned char *)data, data_len, ntlm_hash,
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dradius_packet.c46 int data_len; local
120 data_len = total_length;
138 iov[0].iov_len = data_len;
148 return (recv_len == data_len ? 0 : -1);
H A Discsi_ioctl.c44 char *data, int data_len, iscsi_sendtgts_list_t *stl);
329 uint32_t data_len; local
368 data_len = icp->conn_params.max_xmit_data_seg_len;
371 data = kmem_zalloc(data_len, KM_SLEEP);
376 status = iscsi_handle_text(icp, data, data_len,
381 kmem_free(data, data_len);
382 data_len = rx_data_len;
396 kmem_free(data, data_len);
422 iscsi_create_sendtgts_list(iscsi_conn_t *icp, char *data, int data_len, argument
435 if (data_len
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdsk_common.c214 size_t gpt_len, gpe_len, data_len; local
242 data_len = sizeof (efi_gpt_t) + sizeof (efi_gpe_t);
243 data = kmem_zalloc(data_len, KM_SLEEP);
247 dk_efi.dki_length = data_len;
339 kmem_free(data, data_len);
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftEncryptUtil.c44 soft_add_pkcs7_padding(CK_BYTE *buf, int block_size, CK_ULONG data_len) argument
46 (void) pkcs7_encode(NULL, data_len, buf, block_size, block_size);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dboot.c46 unsigned long flags = 0, text_len = 0, data_len = 0, bss_len = 0; local
151 data_len = 0;
210 data_len = pu.aout->a_data;
267 data_len = setup_sects << 9;
268 text_len = filemax - data_len - SECTOR_SIZE;
284 (big_linux ? "bzImage" : "zImage"), data_len, text_len);
378 if (data_len + SECTOR_SIZE <= MULTIBOOT_SEARCH)
380 data_len + SECTOR_SIZE);
385 data_len + SECTOR_SIZE - MULTIBOOT_SEARCH);
444 grub_seek (data_len
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_enc.c135 unsigned char *data, unsigned int data_len, unsigned char *mac)
138 (void) HMAC(EVP_sha1(), key, key_len, data, data_len, mac, &mac_len); local
169 char *label, unsigned char *data, unsigned int data_len,
185 len[2] = data_len;
214 uint8_t *data, size_t data_len)
219 buf_len = skip + data_len;
223 bcopy(data, buf + skip, data_len);
227 bcopy(buf + skip, data, data_len);
266 size_t data_len, uint8_t *mac)
269 (void) HMAC(EVP_md5(), key, key_len, data, data_len, ma local
134 hmac_sha1(unsigned char *key, unsigned int key_len, unsigned char *data, unsigned int data_len, unsigned char *mac) argument
168 sha1_prf(unsigned char *key, unsigned int key_len, char *label, unsigned char *data, unsigned int data_len, unsigned char *buf, size_t buf_len) argument
213 rc4_skip(uint8_t *key, size_t keylen, size_t skip, uint8_t *data, size_t data_len) argument
265 hmac_md5(uint8_t *key, size_t key_len, uint8_t *data, size_t data_len, uint8_t *mac) argument
[all...]
/illumos-gate/usr/src/stand/lib/inet/
H A Dethernet.c297 int16_t len = 0, data_len; local
395 data_len = len - offset;
396 inp->igm_mp = allocb(data_len, 0);
404 inp->igm_mp->b_rptr, data_len);
405 inp->igm_mp->b_wptr += data_len;
H A Dibd.c296 int16_t len = 0, data_len; local
394 data_len = len - offset;
395 inp->igm_mp = allocb(data_len, 0);
403 inp->igm_mp->b_rptr, data_len);
404 inp->igm_mp->b_wptr += data_len;
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_radiuspacket.c51 int data_len; local
124 data_len = total_length;
140 err = idm_sosendto(socket, data, data_len,
152 err = idm_sosendto(socket, data, data_len,
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_fwlog.c1192 uint32_t data_len; local
1209 data_len = PMCS_FWLOG_SIZE / 2;
1210 rlimit = data_len + 1;
1212 error = vn_rdwr(UIO_WRITE, vnp, bufp, data_len, offset,
1220 if (resid == data_len) {
1229 offset += (data_len - resid);
1230 data_len = (ssize_t)resid;
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c428 int rv, data_len; local
434 data_len = MBLKL(mp) - (hdrlen + ccmp.ic_header);
437 ccmp_init(wh, key->wk_keytsc, data_len, b0, aad);
442 cmparam.ulDataSize = data_len; /* data length; */
448 pos, data_len, pos, data_len + IEEE80211_WEP_MICLEN);
459 int rv, data_len; local
465 data_len = MBLKL(mp) - (hdrlen + ccmp.ic_header);
468 ccmp_init(wh, pn, data_len, b0, aad);
473 cmparam.ulDataSize = data_len;
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c1181 size_t data_len; local
1190 data_len = sizeof (tsp->ipt_timestamp.ipt_time[0]);
1195 data_len = sizeof (tsp->ipt_timestamp.ipt_ta[0]);
1201 data_len = sizeof (tsp->ipt_timestamp.ipt_ta[0]);
1215 if (length < data_len)
1219 if ((tsp->ipt_ptr == ts_index * data_len + 5) && rrflag) {
1235 if (tsp->ipt_ptr == ts_index * data_len + 5)
1239 length -= data_len;
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dntlm.c318 const uchar_t *data, size_t data_len)
357 MD5Update(&context, data, data_len); /* then data of datagram */
316 HMACT64(uchar_t *digest, const uchar_t *key, size_t key_len, const uchar_t *data, size_t data_len) argument
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfcertlib.c488 * data_len
497 const uchar_t *data, size_t data_len,
517 MD5Update(&ctx, data, data_len);
532 tobesigned.Length = data_len;
575 * data_len
582 const uchar_t *data, size_t data_len)
593 indata.Length = data_len;
496 elfcertlib_sign(ELFsign_t ess, ELFCert_t cert, const uchar_t *data, size_t data_len, uchar_t *sig, size_t *sig_len) argument
580 elfcertlib_verifysig(ELFsign_t ess, ELFCert_t cert, const uchar_t *signature, size_t sig_len, const uchar_t *data, size_t data_len) argument
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_cfgdef.h111 int data_len; member in struct:nscd_cfg_nsw_spc_default
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_recv.c677 struct rdsv3_ib_recv_work *recv, uint32_t data_len,
687 "ic %p ibinc %p recv %p byte len %u", ic, ibinc, recv, data_len);
689 if (data_len < sizeof (struct rdsv3_header)) {
697 data_len -= sizeof (struct rdsv3_header);
720 if (ihdr->h_sport == 0 && ihdr->h_dport == 0 && data_len == 0) {
798 conn, recv, data_len, state);
676 rdsv3_ib_process_recv(struct rdsv3_connection *conn, struct rdsv3_ib_recv_work *recv, uint32_t data_len, struct rdsv3_ib_ack_state *state) argument
/illumos-gate/usr/src/uts/common/sys/
H A Dipmi.h96 unsigned short data_len; member in struct:ipmi_msg
151 unsigned short data_len; member in struct:ipmi_msg32

Completed in 84 milliseconds

1234