Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 25 of 67) sorted by relevance

123

/minix3/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Da_strex.c197 int i, outlen, len; in do_buf() local
202 outlen = 0; in do_buf()
252 outlen += len; in do_buf()
260 outlen += len; in do_buf()
263 return outlen; in do_buf()
303 int outlen, der_len; in do_dump() local
309 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump()
310 if (outlen < 0) in do_dump()
312 return outlen + 1; in do_dump()
322 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump()
[all …]
H A Da_mbstr.c99 int outform, outlen = 0; in ASN1_mbstring_ncopy() local
220 outlen = nchar; in ASN1_mbstring_ncopy()
225 outlen = nchar << 1; in ASN1_mbstring_ncopy()
230 outlen = nchar << 2; in ASN1_mbstring_ncopy()
235 outlen = 0; in ASN1_mbstring_ncopy()
236 traverse_string(in, len, inform, out_utf8, &outlen); in ASN1_mbstring_ncopy()
240 if (!(p = OPENSSL_malloc(outlen + 1))) { in ASN1_mbstring_ncopy()
246 dest->length = outlen; in ASN1_mbstring_ncopy()
248 p[outlen] = 0; in ASN1_mbstring_ncopy()
310 int *outlen; in out_utf8() local
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/ecdh/
H A Dech_ossl.c84 void *out, size_t *outlen));
108 static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ecdh_compute_key() argument
111 void *out, size_t *outlen)) in ecdh_compute_key() argument
122 if (outlen > INT_MAX) { in ecdh_compute_key()
185 if (KDF(buf, buflen, out, &outlen) == NULL) { in ecdh_compute_key()
189 ret = outlen; in ecdh_compute_key()
192 if (outlen > buflen) in ecdh_compute_key()
193 outlen = buflen; in ecdh_compute_key()
194 memcpy(out, buf, outlen); in ecdh_compute_key()
195 ret = outlen; in ecdh_compute_key()
H A Dech_key.c72 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key() argument
75 size_t *outlen)) in ECDH_compute_key() argument
80 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF); in ECDH_compute_key()
/minix3/crypto/external/bsd/openssl/dist/crypto/pkcs12/
H A Dp12_decr.c79 int outlen, i; in PKCS12_pbe_crypt() local
103 outlen = i; in PKCS12_pbe_crypt()
111 outlen += i; in PKCS12_pbe_crypt()
113 *datalen = outlen; in PKCS12_pbe_crypt()
134 int outlen; in PKCS12_item_decrypt_d2i() local
137 &out, &outlen, 0)) { in PKCS12_item_decrypt_d2i()
151 fwrite(p, 1, outlen, op); in PKCS12_item_decrypt_d2i()
155 ret = ASN1_item_d2i(NULL, &p, outlen, it); in PKCS12_item_decrypt_d2i()
157 OPENSSL_cleanse(out, outlen); in PKCS12_item_decrypt_d2i()
/minix3/minix/usr.bin/trace/
H A Doutput.c265 if (proc->outlen == sizeof(proc->outbuf)) in record_add()
271 if (len < sizeof(proc->outbuf) - proc->outlen - 1) { in record_add()
272 strcpy(&proc->outbuf[proc->outlen], text); in record_add()
274 proc->outlen += len; in record_add()
276 proc->outlen = sizeof(proc->outbuf); /* buffer exhausted */ in record_add()
311 proc->outlen = 0; in record_clear()
349 if (proc->outlen == 0) in record_replay()
367 if (proc->outlen == sizeof(proc->outbuf)) in record_replay()
375 space = proc->outbuf[proc->outlen - 1] == ' '; in record_replay()
377 proc->outbuf[proc->outlen - 1] = 0; in record_replay()
[all …]
/minix3/crypto/external/bsd/libsaslc/dist/src/
H A Dxsess.c410 void **out, size_t *outlen) in saslc_sess_cont() argument
447 rv = sess->mech->cont(sess, in, inlen, out, outlen); in saslc_sess_cont()
454 *outlen ? (char *)*out : "<null>"); in saslc_sess_cont()
455 if (*outlen == 0) in saslc_sess_cont()
461 if (saslc__crypto_encode_base64(*out, *outlen, &enc, &enclen) in saslc_sess_cont()
468 *outlen = enclen; in saslc_sess_cont()
490 void **out, size_t *outlen) in saslc__sess_copyout() argument
495 *outlen = 0; in saslc__sess_copyout()
499 *outlen = inlen; in saslc__sess_copyout()
529 const void *in, size_t inlen, void **out, size_t *outlen) in saslc__sess_xxcode() argument
[all …]
H A Dbuffer.c152 size_t inlen, uint8_t **out, size_t *outlen) in saslc__buffer_fetch() argument
158 *outlen = ctx->maxbuf - ctx->bufneed; in saslc__buffer_fetch()
159 *out = *outlen != 0 ? ctx->buf : NULL; in saslc__buffer_fetch()
172 *outlen = 0; in saslc__buffer_fetch()
176 *outlen = ctx->maxbuf; in saslc__buffer_fetch()
183 *outlen = 0; in saslc__buffer_fetch()
250 size_t inlen, uint8_t **out, size_t *outlen) in saslc__buffer32_fetch() argument
296 *outlen = sizeof(ctx->szbuf) + ctx->bufsize; in saslc__buffer32_fetch()
300 *outlen = 0; in saslc__buffer32_fetch()
H A Dmech_gssapi.c210 prep_output(saslc_sess_t *sess, gss_buffer_t outbuf, void **out, size_t *outlen) in prep_output() argument
215 *outlen = 0; in prep_output()
220 *outlen = 0; in prep_output()
227 *outlen = 0; in prep_output()
232 *outlen = outbuf->length; in prep_output()
249 prep_packet(saslc_sess_t *sess, gss_buffer_t outbuf, void **out, size_t *outlen) in prep_packet() argument
259 *outlen = 0; in prep_packet()
264 *outlen = 0; in prep_packet()
286 *outlen = buflen; in prep_packet()
301 void **out, size_t *outlen) in saslc__mech_gssapi_encode() argument
[all …]
H A Dcrypto.c65 char **out, size_t *outlen) in saslc__crypto_encode_base64() argument
99 if (outlen) in saslc__crypto_encode_base64()
100 *outlen = n; in saslc__crypto_encode_base64()
117 void **out, size_t *outlen) in saslc__crypto_decode_base64() argument
150 if (outlen) in saslc__crypto_decode_base64()
151 *outlen = n; in saslc__crypto_decode_base64()
H A Dmech_login.c69 size_t inlen __unused, void **out, size_t *outlen) in saslc__mech_login_cont() argument
75 if (saslc__mech_strdup(sess, (char **)out, outlen, in saslc__mech_login_cont()
82 return saslc__mech_strdup(sess, (char **)out, outlen, in saslc__mech_login_cont()
H A Dmech_crammd5.c71 void **out, size_t *outlen) in saslc__mech_crammd5_cont() argument
80 *outlen = 0; in saslc__mech_crammd5_cont()
107 *outlen = len; /* don't count the '\0' byte */ in saslc__mech_crammd5_cont()
H A Dmech_external.c65 void **out, size_t *outlen) in saslc__mech_external_cont() argument
68 return saslc__mech_strdup(sess, (char **)out, outlen, in saslc__mech_external_cont()
H A Dmech_anonymous.c69 void **out, size_t *outlen) in saslc__mech_anonymous_cont() argument
72 return saslc__mech_strdup(sess, (char **)out, outlen, in saslc__mech_anonymous_cont()
/minix3/crypto/external/bsd/openssl/dist/doc/crypto/
H A DEVP_PKEY_decrypt.pod13 unsigned char *out, size_t *outlen,
24 buffer is written to the B<outlen> parameter. If B<out> is not B<NULL> then
25 before the call the B<outlen> parameter should contain the length of the
27 B<out> and the amount of data written to B<outlen>.
53 size_t outlen, inlen;
67 if (EVP_PKEY_decrypt(ctx, NULL, &outlen, in, inlen) <= 0)
70 out = OPENSSL_malloc(outlen);
75 if (EVP_PKEY_decrypt(ctx, out, &outlen, in, inlen) <= 0)
78 /* Decrypted data is outlen bytes written to buffer out */
H A DEVP_PKEY_encrypt.pod13 unsigned char *out, size_t *outlen,
24 buffer is written to the B<outlen> parameter. If B<out> is not B<NULL> then
25 before the call the B<outlen> parameter should contain the length of the
27 B<out> and the amount of data written to B<outlen>.
57 size_t outlen, inlen;
71 if (EVP_PKEY_encrypt(ctx, NULL, &outlen, in, inlen) <= 0)
74 out = OPENSSL_malloc(outlen);
79 if (EVP_PKEY_encrypt(ctx, out, &outlen, in, inlen) <= 0)
82 /* Encrypted data is outlen bytes written to buffer out */
/minix3/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/
H A Dbn_mp_to_unsigned_bin_n.c21 int mp_to_unsigned_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen) in mp_to_unsigned_bin_n() argument
23 if (*outlen < (unsigned long)mp_unsigned_bin_size(a)) { in mp_to_unsigned_bin_n()
26 *outlen = mp_unsigned_bin_size(a); in mp_to_unsigned_bin_n()
H A Dbn_mp_to_signed_bin_n.c21 int mp_to_signed_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen) in mp_to_signed_bin_n() argument
23 if (*outlen < (unsigned long)mp_signed_bin_size(a)) { in mp_to_signed_bin_n()
26 *outlen = mp_signed_bin_size(a); in mp_to_signed_bin_n()
/minix3/sys/fs/cd9660/
H A Dcd9660_rrip.c126 len = *ana->outlen; in cd9660_rrip_slink()
201 ana->outbuf -= *ana->outlen; in cd9660_rrip_slink()
202 *ana->outlen = 0; in cd9660_rrip_slink()
211 *ana->outlen = len; in cd9660_rrip_slink()
268 if ((*ana->outlen += wlen) > ana->maxlen) { in cd9660_rrip_altname()
271 ana->outbuf -= *ana->outlen - wlen; in cd9660_rrip_altname()
272 *ana->outlen = 0; in cd9660_rrip_altname()
292 ana->outbuf, ana->outlen, in cd9660_rrip_defname()
300 *ana->outlen = 1; in cd9660_rrip_defname()
303 strlcpy(ana->outbuf, "..", ana->maxlen - *ana->outlen); in cd9660_rrip_defname()
[all …]
H A Diso_rrip.h69 u_short *outlen; /* length of above */ member
77 char *outbuf, u_short *outlen,
80 char *outbuf, u_short *outlen,
/minix3/crypto/external/bsd/openssl/dist/crypto/pem/
H A Dpvkfmt.c459 int outlen, noinc = 0; in do_i2b() local
470 outlen = 16 + blob_length(bitlen, in do_i2b()
473 return outlen; in do_i2b()
477 p = OPENSSL_malloc(outlen); in do_i2b()
498 *out += outlen; in do_i2b()
499 return outlen; in do_i2b()
505 int outlen, wrlen; in do_i2b_bio() local
506 outlen = do_i2b(&tmp, pk, ispub); in do_i2b_bio()
507 if (outlen < 0) in do_i2b_bio()
509 wrlen = BIO_write(out, tmp, outlen); in do_i2b_bio()
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_oaep.c215 long i, outlen = 0; in PKCS1_MGF1() local
226 for (i = 0; outlen < len; i++) { in PKCS1_MGF1()
235 if (outlen + mdlen <= len) { in PKCS1_MGF1()
236 if (!EVP_DigestFinal_ex(&c, mask + outlen, NULL)) in PKCS1_MGF1()
238 outlen += mdlen; in PKCS1_MGF1()
242 memcpy(mask + outlen, md, len - outlen); in PKCS1_MGF1()
243 outlen = len; in PKCS1_MGF1()
/minix3/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtest_addr.c78 size_t truncate_len, size_t outlen) in truncated_addr() argument
85 buf = ecalloc(1, outlen + 1); in truncated_addr()
97 printf("addr %s (%d/%d) should be %d\n", buf, (int)len, (int)strlen(buf), (int)outlen); in truncated_addr()
104 if (outlen != len) in truncated_addr()
106 buf, (int)outlen, (int)strlen(buf)); in truncated_addr()
108 krb5_print_address(&addresses.val[0], buf, outlen + 1, &len); in truncated_addr()
114 if (len != outlen) in truncated_addr()
/minix3/crypto/external/bsd/openssl/dist/demos/engines/rsaref/
H A Drsaref.c414 int i, outlen = -1; in rsaref_private_decrypt() local
420 RSAPrivateDecrypt(to, (unsigned int *)&outlen, (unsigned char *)from, in rsaref_private_decrypt()
423 outlen = -1; in rsaref_private_decrypt()
427 return (outlen); in rsaref_private_decrypt()
433 int i, outlen = -1; in rsaref_private_encrypt() local
444 RSAPrivateEncrypt(to, (unsigned int *)&outlen, (unsigned char *)from, in rsaref_private_encrypt()
447 outlen = -1; in rsaref_private_encrypt()
451 return (outlen); in rsaref_private_encrypt()
457 int i, outlen = -1; in rsaref_public_decrypt() local
463 RSAPublicDecrypt(to, (unsigned int *)&outlen, (unsigned char *)from, in rsaref_public_decrypt()
[all …]
/minix3/tests/lib/libc/hash/
H A Dh_hash.c84 int len, outlen, last; in regress() local
103 outlen = 16; in regress()
116 outlen = 20; in regress()
118 hexdump(out, outlen); in regress()

123