Searched refs:buf_len (Results 26 - 50 of 110) sorted by relevance

12345

/macosx-10.10/OpenSSH-189/osslshim/ossl/
H A Dossl-objects.c826 OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
848 BUF_strlcpy(buf, s, buf_len);
914 if (buf && (buf_len > 0)) {
916 buf_len--;
929 if (buf_len > 0) {
931 buf_len--;
933 BUF_strlcpy(buf, bndec, buf_len);
934 if (i > buf_len) {
935 buf += buf_len;
936 buf_len
[all...]
H A Dossl-evp.c893 ctx->buf_len = 0;
988 if ((ctx->buf_len == 0) && ((inlen & ctx->block_mask) == 0)) {
1000 left = blocksize - ctx->buf_len;
1003 if (ctx->buf_len) {
1006 memcpy(ctx->buf + ctx->buf_len, in, inlen);
1007 ctx->buf_len += inlen;
1012 memcpy(ctx->buf + ctx->buf_len, in, left);
1023 ctx->buf_len = 0;
1027 ctx->buf_len = (inlen & ctx->block_mask);
1038 memcpy(ctx->buf, in, ctx->buf_len);
[all...]
/macosx-10.10/ruby-106/ruby/ext/openssl/
H A Dossl_pkey.c276 unsigned int buf_len; local
287 if (!EVP_SignFinal(&ctx, (unsigned char *)RSTRING_PTR(str), &buf_len, pkey))
289 assert((long)buf_len <= RSTRING_LEN(str));
290 rb_str_set_len(str, buf_len);
H A Dossl.c18 string2hex(const unsigned char *buf, int buf_len, char **hexbuf, int *hexbuf_len) argument
21 int i, len = 2 * buf_len;
23 if (buf_len < 0 || len < buf_len) { /* PARANOIA? */
35 for (i = 0; i < buf_len; i++) {
H A Dossl_pkey_ec.c637 int buf_len; local
644 buf_len = 1024;
645 str = rb_str_new(0, buf_len);
647 buf_len = ECDH_compute_key(RSTRING_PTR(str), buf_len, point, ec, NULL);
648 if (buf_len < 0)
651 rb_str_resize(str, buf_len);
667 unsigned int buf_len; local
677 if (ECDSA_sign(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LENINT(data), (unsigned char *) RSTRING_PTR(str), &buf_len, ec) != 1)
680 rb_str_resize(str, buf_len);
[all...]
/macosx-10.10/bootp-298/IPConfiguration.bproj/
H A Difutil.c692 size_t buf_len; local
701 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), NULL, &buf_len, NULL, 0)
705 buf_len += 1024;
706 buf = malloc(buf_len);
707 if (sysctl(mib, sizeof(mib) / sizeof(mib[0]), buf, &buf_len, NULL, 0)
713 end = (struct in6_prefix *)(void *)(buf + buf_len);
858 size_t buf_len = 0; local
869 if (sysctl(mib, 6, NULL, &buf_len, NULL, 0) < 0) {
873 buf_len *= 2; /* just in case something changes */
874 buf = malloc(buf_len);
893 int buf_len; local
[all...]
/macosx-10.10/OpenSSL098-52/src/crypto/ecdsa/
H A Decdsatest.c295 unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; local
451 buf_len = 2 * bn_len;
452 if ((raw_buf = OPENSSL_malloc(buf_len)) == NULL)
455 memset(raw_buf, 0, buf_len);
457 BN_bn2bin(ecdsa_sig->s, raw_buf + buf_len - s_len);
460 offset = raw_buf[10] % buf_len;
/macosx-10.10/OpenSSL098-52/src/test/
H A Decdsatest.c295 unsigned int sig_len, degree, r_len, s_len, bn_len, buf_len; local
451 buf_len = 2 * bn_len;
452 if ((raw_buf = OPENSSL_malloc(buf_len)) == NULL)
455 memset(raw_buf, 0, buf_len);
457 BN_bn2bin(ecdsa_sig->s, raw_buf + buf_len - s_len);
460 offset = raw_buf[10] % buf_len;
/macosx-10.10/bootp-298/bootplib/
H A Dhost_identifier.c63 char * buf, int buf_len)
77 if (buf == NULL || max_encoded_len > buf_len) {
62 identifierToStringWithBuffer(uint8_t type, const void * identifier, int len, char * buf, int buf_len) argument
H A Dbsdp.h206 bsdp_parse_class_id(void * buf, int buf_len, char * arch,
/macosx-10.10/BerkeleyDB-21/db/examples_cxx/excxx_repquote/
H A DRepQuoteExample.cpp175 int get_string(char **buf, size_t buf_len) argument
185 memset(*buf, 0, buf_len);
191 if (get_size() >= buf_len) {
193 copy_len = buf_len - 1; // save room for a terminator.
/macosx-10.10/Heimdal-398.1.2/lib/kafs/
H A Dafskrb5.c61 size_t buf_len; local
72 ASN1_MALLOC_ENCODE(EncryptedData, buf, buf_len, &t.enc_part,
77 if(buf_len != len) {
83 kt->ticket_len = buf_len;
/macosx-10.10/OpenSSL098-52/src/crypto/ec/
H A Dec_asn1.c1214 size_t buf_len=0, tmp_len; local
1233 buf_len = (size_t)BN_num_bytes(a->priv_key);
1234 buffer = OPENSSL_malloc(buf_len);
1248 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len))
1277 if (tmp_len > buf_len)
1286 buf_len = tmp_len;
1290 a->conv_form, buffer, buf_len, NULL))
1299 buf_len))
1393 size_t buf_len=0; local
1402 buf_len
[all...]
/macosx-10.10/Security-57031.1.35/Security/authd/
H A Dmechanism.c173 size_t buf_len = strlen(str)+1; local
174 char * buf = (char*)calloc(1u, buf_len);
175 strlcpy(buf, str, buf_len);
/macosx-10.10/libarchive-30/libarchive/libarchive/
H A Darchive_write_set_compression_program.c158 child_write(struct archive_write *a, const char *buf, size_t buf_len) argument
166 if (buf_len == 0)
171 ret = write(state->child_stdin, buf, buf_len);
H A Darchive_read_support_compression_program.c291 child_read(struct archive_read_filter *self, char *buf, size_t buf_len) argument
297 requested = buf_len > SSIZE_MAX ? SSIZE_MAX : buf_len;
/macosx-10.10/bind9-45.101/bind9/bin/tests/hashes/
H A Dt_hashes.c255 d2str(char *buf, unsigned int buf_len, argument
261 for (i = 0; i < d_len && l < buf_len-4; ++i) {
262 l += snprintf(&buf[l], buf_len-l, "%02x", d[i]);
264 if (l >= buf_len-3) {
265 REQUIRE(buf_len > sizeof("..."));
/macosx-10.10/CommonCrypto-60061/cn_tool/
H A Dmain.c456 static void pbase(cnContextPtr context, CNEncodingDirection direction, uint8_t * buf, size_t buf_len) argument
462 while(buf_len) {
463 size = buf_len > (size_t) context->width ? context->width : buf_len;
466 buf_len -= size;
473 fwrite(buf, buf_len, 1, context->out_file);
/macosx-10.10/bind9-45.101/bind9/lib/dns/
H A Dspnego.c415 size_t buf_size, buf_len = 0; local
426 resp, &buf_len);
430 ret = der_put_length_and_tag(buf + buf_size - buf_len - 1,
431 buf_size - buf_len,
432 buf_len,
438 buf_len += tmp;
460 *outbuf = malloc(buf_len);
466 memcpy(*outbuf, buf + buf_size - buf_len, buf_len);
467 *outbuf_size = buf_len;
725 gssapi_spnego_decapsulate(OM_uint32 *minor_status, gss_buffer_t input_token_buffer, unsigned char **buf, size_t *buf_len, const gss_OID mech) argument
[all...]
/macosx-10.10/hfs-285/fsck_hfs/
H A Dcache.h248 * The data from given buffer upto buf_len is written to the disk starting
255 int CacheWriteBufferToDisk (Cache_t *cache, uint64_t offset, uint32_t write_len, u_char *buffer, uint32_t buf_len);
/macosx-10.10/libresolv-57/
H A Ddst.h74 int dst_key_to_buffer(DST_KEY *key, u_char *out_buff, int buf_len);
/macosx-10.10/xnu-2782.1.97/osfmk/i386/
H A Dcpuid.c939 cpuid_get_names(struct table *map, uint64_t bits, char *buf, unsigned buf_len) argument
948 if (len && ((size_t) (p - buf) < (buf_len - 1)))
950 len = min(strlen(map[i].name), (size_t)((buf_len-1)-(p-buf)));
973 cpuid_get_feature_names(uint64_t features, char *buf, unsigned buf_len) argument
975 return cpuid_get_names(feature_map, features, buf, buf_len);
979 cpuid_get_extfeature_names(uint64_t extfeatures, char *buf, unsigned buf_len) argument
981 return cpuid_get_names(extfeature_map, extfeatures, buf, buf_len);
985 cpuid_get_leaf7_feature_names(uint64_t features, char *buf, unsigned buf_len) argument
987 return cpuid_get_names(leaf7_feature_map, features, buf, buf_len);
H A Dmisc_protos.h80 vm_size_t buf_len);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_transform/lib/
H A DEncodeDecodeTransforms.c636 CFIndex buf_len = n_chunks * out_chunk_size;
647 || (buf_len > LONG_LONG_MAX-line_len)
650 || (buf_len > LONG_MAX-line_len)
652 || (buf_len+line_len<in_len))
659 buf_len+=line_len;
660 unsigned char *out = malloc(buf_len);
661 unsigned char *out_end = out + buf_len, *out_base = out;
769 CFIndex buf_len = n_chunks * out_chunk_size;
772 buf_len += (n_chunks * out_chunk_size) / target_line_length;
774 __block unsigned char *out = malloc(buf_len);
[all...]
/macosx-10.10/Heimdal-398.1.2/kadmin/
H A Dkadm_conn.c135 size_t buf_len; local
147 &buf_len);

Completed in 481 milliseconds

12345