/freebsd-10.0-release/contrib/openbsm/bin/auditdistd/ |
H A D | strndup.h | 41 size_t outlen; local 44 outlen = strlen(str); 45 if (outlen > len) 46 outlen = len; 47 outstr = malloc(outlen + 1); 49 memcpy(outstr, str, outlen); 50 outstr[outlen] = '\0';
|
/freebsd-10.0-release/crypto/openssl/crypto/ecdh/ |
H A D | ech_key.c | 72 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument 74 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) 79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
|
H A D | ech_ossl.c | 84 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); 108 static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument 110 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) 121 if (outlen > INT_MAX) 193 if (KDF(buf, buflen, out, &outlen) == NULL) 198 ret = outlen; 203 if (outlen > buflen) 204 outlen = buflen; 205 memcpy(out, buf, outlen); 206 ret = outlen; [all...] |
H A D | ech_locl.h | 68 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 69 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen));
|
H A D | ecdh.h | 94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 95 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen));
|
/freebsd-10.0-release/contrib/smbfs/lib/smb/ |
H A D | nls.c | 109 size_t inlen, outlen; local 113 inlen = outlen = strlen(src); 114 iconv(nls_toloc, NULL, NULL, &p, &outlen); 115 while (iconv(nls_toloc, &src, &inlen, &p, &outlen) == -1) { 118 outlen--; 132 size_t inlen, outlen; local 136 inlen = outlen = strlen(src); 137 iconv(nls_toext, NULL, NULL, &p, &outlen); 138 while (iconv(nls_toext, &src, &inlen, &p, &outlen) == -1) { 141 outlen 156 size_t inlen, outlen; local 182 size_t inlen, outlen; local [all...] |
/freebsd-10.0-release/contrib/wpa/src/tls/ |
H A D | pkcs1.h | 14 u8 *out, size_t *outlen); 17 u8 *out, size_t *outlen);
|
H A D | pkcs1.c | 18 u8 *out, size_t *outlen) 33 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { 35 "lengths (modlen=%lu outlen=%lu inlen=%lu)", 37 (unsigned long) *outlen, 81 u8 *out, size_t *outlen) 88 out, outlen) < 0) 91 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); 97 u8 *out, size_t *outlen) 102 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); 106 if (*outlen < 16 pkcs1_generate_encryption_block(u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument 79 pkcs1_encrypt(int block_type, struct crypto_rsa_key *key, int use_private, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument 95 pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument [all...] |
H A D | rsa.h | 19 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
|
/freebsd-10.0-release/crypto/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 76 int outlen, i; local 100 outlen = i; 107 outlen += i; 108 if (datalen) *datalen = outlen; 126 int outlen; local 129 &out, &outlen, 0)) { 142 fwrite (p, 1, outlen, op); 146 ret = ASN1_item_d2i(NULL, &p, outlen, it); 147 if (zbuf) OPENSSL_cleanse(out, outlen);
|
/freebsd-10.0-release/contrib/wpa/src/crypto/ |
H A D | sha256-tlsprf.c | 23 * @outlen: Number of bytes of key to generate 30 const u8 *seed, size_t seed_len, u8 *out, size_t outlen) 56 while (pos < outlen) { 60 clen = outlen - pos; 29 tls_prf_sha256(const u8 *secret, size_t secret_len, const char *label, const u8 *seed, size_t seed_len, u8 *out, size_t outlen) argument
|
H A D | crypto_internal-rsa.c | 65 u8 *out, size_t *outlen) 68 0, in, inlen, out, outlen); 74 u8 *out, size_t *outlen) 77 in, inlen, out, outlen); 83 u8 *out, size_t *outlen) 86 1, in, inlen, out, outlen); 63 crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument 72 crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument 81 crypto_private_key_sign_pkcs1(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
|
H A D | sha256.h | 22 u8 *out, size_t outlen);
|
/freebsd-10.0-release/sys/fs/cd9660/ |
H A D | iso_rrip.h | 66 u_short *outlen; /* length of above */ member in struct:__anon9752 76 char *outbuf, u_short *outlen, 79 char *outbuf, u_short *outlen,
|
H A D | cd9660_rrip.c | 125 len = *ana->outlen; 200 ana->outbuf -= *ana->outlen; 201 *ana->outlen = 0; 211 *ana->outlen = len; 271 if ((*ana->outlen += wlen) > ana->maxlen) { 274 ana->outbuf -= *ana->outlen - wlen; 275 *ana->outlen = 0; 295 ana->outbuf,ana->outlen, 302 *ana->outlen = 2; 305 /* outlen i [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/asn1/ |
H A D | a_strex.c | 178 int i, outlen, len; local 183 outlen = 0; 225 outlen += len; 230 outlen += len; 233 return outlen; 269 int outlen, der_len; local 274 outlen = do_hex_dump(io_ch, arg, str->data, str->length); 275 if(outlen < 0) return -1; 276 return outlen + 1; 285 outlen 316 int outlen, len; local 402 int outlen, len; local [all...] |
H A D | a_mbstr.c | 96 int outform, outlen = 0; local 214 outlen = nchar; 219 outlen = nchar << 1; 224 outlen = nchar << 2; 229 outlen = 0; 230 traverse_string(in, len, inform, out_utf8, &outlen); 234 if(!(p = OPENSSL_malloc(outlen + 1))) { 239 dest->length = outlen; 241 p[outlen] = 0; 299 int *outlen; local [all...] |
/freebsd-10.0-release/contrib/apr-util/include/private/ |
H A D | apr_crypto_internal.h | 138 * @note The number of bytes written will be written to outlen. If 139 * out is NULL, outlen will contain the maximum size of the 147 * @param outlen Length of the output will be written here. 154 apr_status_t (*block_encrypt)(unsigned char **out, apr_size_t *outlen, 168 * @param outlen Length of the output will be written here. 176 apr_size_t *outlen, apr_crypto_block_t *ctx); 199 * @note The number of bytes written will be written to outlen. If 200 * out is NULL, outlen will contain the maximum size of the 208 * @param outlen Length of the output will be written here. 215 apr_status_t (*block_decrypt)(unsigned char **out, apr_size_t *outlen, [all...] |
/freebsd-10.0-release/contrib/apr-util/include/ |
H A D | apr_crypto.h | 285 * @note The number of bytes written will be written to outlen. If 286 * out is NULL, outlen will contain the maximum size of the 294 * @param outlen Length of the output will be written here. 302 apr_size_t *outlen, const unsigned char *in, apr_size_t inlen, 316 * @param outlen Length of the output will be written here. 324 apr_size_t *outlen, apr_crypto_block_t *ctx); 345 * @note The number of bytes written will be written to outlen. If 346 * out is NULL, outlen will contain the maximum size of the 354 * @param outlen Length of the output will be written here. 362 apr_size_t *outlen, cons [all...] |
/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_deflate.c | 447 int outlen, inlen; local 473 outlen = DEFLATE_BUF_SIZE; 485 priv->cx.avail_out = outlen - 2 - DEFLATE_HDRLEN; 500 outlen -= priv->cx.avail_out; 503 if (outlen > inlen) { 514 m_copyback(m, 0, outlen, (caddr_t)priv->outbuf); 515 if (m->m_pkthdr.len < outlen) { 519 } else if (outlen < m->m_pkthdr.len) 520 m_adj(m, outlen - m->m_pkthdr.len); 523 priv->stats.OutOctets+=outlen; 540 int outlen, inlen; local [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 215 long i, outlen = 0; local 226 for (i = 0; outlen < len; i++) 236 if (outlen + mdlen <= len) 238 if (!EVP_DigestFinal_ex(&c, mask + outlen, NULL)) 240 outlen += mdlen; 246 memcpy(mask + outlen, md, len - outlen); 247 outlen = len;
|
/freebsd-10.0-release/contrib/apr-util/crypto/ |
H A D | apr_crypto_openssl.c | 545 * @note The number of bytes written will be written to outlen. If 546 * out is NULL, outlen will contain the maximum size of the 554 * @param outlen Length of the output will be written here. 562 apr_size_t *outlen, const unsigned char *in, apr_size_t inlen, 565 int outl = *outlen; 570 *outlen = inlen + EVP_MAX_BLOCK_LENGTH; 592 *outlen = outl; 609 * @param outlen Length of the output will be written here. 617 apr_size_t *outlen, apr_crypto_block_t *ctx) 619 int len = *outlen; 561 crypto_block_encrypt(unsigned char **out, apr_size_t *outlen, const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx) argument 616 crypto_block_encrypt_finish(unsigned char *out, apr_size_t *outlen, apr_crypto_block_t *ctx) argument 716 crypto_block_decrypt(unsigned char **out, apr_size_t *outlen, const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx) argument 771 crypto_block_decrypt_finish(unsigned char *out, apr_size_t *outlen, apr_crypto_block_t *ctx) argument [all...] |
/freebsd-10.0-release/bin/sh/ |
H A D | trap.c | 128 int n, outlen; local 130 outlen = 0; 134 outlen += strlen(sys_signame[n]); 137 outlen += 3; /* good enough */ 139 ++outlen; 140 if (outlen > 71 || n == sys_nsig - 1) { 142 outlen = 0;
|
/freebsd-10.0-release/crypto/heimdal/lib/krb5/ |
H A D | test_addr.c | 76 size_t truncate_len, size_t outlen) 83 buf = ecalloc(1, outlen + 1); 95 printf("addr %s (%d/%d) should be %d\n", buf, (int)len, (int)strlen(buf), (int)outlen); 102 if (outlen != len) 103 krb5_err(context, 1, ret, "%s: outlen %d != len %d", 104 buf, (int)outlen, (int)strlen(buf)); 106 krb5_print_address(&addresses.val[0], buf, outlen + 1, &len); 112 if (len != outlen) 75 truncated_addr(krb5_context context, const char *addr, size_t truncate_len, size_t outlen) argument
|
/freebsd-10.0-release/sys/kgssapi/krb5/ |
H A D | kcrypto.h | 68 struct mbuf *inout, size_t skip, size_t inlen, size_t outlen); 135 struct mbuf *inout, size_t skip, size_t inlen, size_t outlen) 138 ks->ks_class->ec_checksum(ks, usage, inout, skip, inlen, outlen); 134 krb5_checksum(const struct krb5_key_state *ks, int usage, struct mbuf *inout, size_t skip, size_t inlen, size_t outlen) argument
|