Searched refs:inlen (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-10.0-release/contrib/smbfs/lib/smb/
H A Dnls.c109 size_t inlen, outlen; local
113 inlen = outlen = strlen(src);
115 while (iconv(nls_toloc, &src, &inlen, &p, &outlen) == -1) {
117 inlen--;
132 size_t inlen, outlen; local
136 inlen = outlen = strlen(src);
138 while (iconv(nls_toext, &src, &inlen, &p, &outlen) == -1) {
140 inlen--;
156 size_t inlen, outlen; local
163 inlen
182 size_t inlen, outlen; local
[all...]
/freebsd-10.0-release/contrib/wpa/src/tls/
H A Dpkcs1.h13 int use_private, const u8 *in, size_t inlen,
16 const u8 *in, size_t inlen,
H A Dpkcs1.c17 const u8 *in, size_t inlen,
33 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
35 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
38 (unsigned long) inlen);
45 ps_len = modlen - inlen - 3;
73 os_memcpy(pos, in, inlen); /* D */
80 int use_private, const u8 *in, size_t inlen,
87 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
96 const u8 *in, size_t inlen,
102 res = crypto_rsa_exptmod(in, inlen, ou
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 Drsa.h19 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
/freebsd-10.0-release/contrib/wpa/src/crypto/
H A Dcrypto_internal-rsa.c64 const u8 *in, size_t inlen,
68 0, in, inlen, out, outlen);
73 const u8 *in, size_t inlen,
77 in, inlen, out, outlen);
82 const u8 *in, size_t inlen,
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 Dsha256_i.h22 unsigned long inlen);
H A Dsha256-internal.c142 @param inlen The length of the data (octets)
146 unsigned long inlen)
153 while (inlen > 0) {
154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
159 inlen -= SHA256_BLOCK_SIZE;
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
165 inlen -= n;
145 sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen) argument
/freebsd-10.0-release/crypto/openssl/crypto/ecdh/
H A Dech_key.c74 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
72 ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *eckey, void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) argument
H A Dech_locl.h69 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen));
H A Decdh.h95 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen));
/freebsd-10.0-release/crypto/openssl/crypto/pkcs12/
H A Dp12_decr.c72 int passlen, unsigned char *in, int inlen, unsigned char **data,
87 if(!(out = OPENSSL_malloc(inlen + EVP_CIPHER_CTX_block_size(&ctx)))) {
92 if (!EVP_CipherUpdate(&ctx, out, &i, in, inlen))
163 int inlen; local
168 inlen = ASN1_item_i2d(obj, &in, it);
173 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data,
179 if (zbuf) OPENSSL_cleanse(in, inlen);
71 PKCS12_pbe_crypt(X509_ALGOR *algor, const char *pass, int passlen, unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de) argument
/freebsd-10.0-release/crypto/openssl/crypto/cms/
H A Dcms_pwri.c226 const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx)
231 if (inlen < 2 * blocklen)
236 if (inlen % blocklen)
241 tmp = OPENSSL_malloc(inlen);
243 EVP_DecryptUpdate(ctx, tmp + inlen - 2 * blocklen, &outl,
244 in + inlen - 2 * blocklen, blocklen * 2);
250 tmp + inlen - blocklen, blocklen);
252 EVP_DecryptUpdate(ctx, tmp, &outl, in, inlen - blocklen);
257 EVP_DecryptUpdate(ctx, tmp, &outl, tmp, inlen);
264 if (inlen < (size_
225 kek_unwrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx) argument
279 kek_wrap_key(unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen, EVP_CIPHER_CTX *ctx) argument
[all...]
/freebsd-10.0-release/contrib/apr-util/test/
H A Dtestcrypto.c148 const apr_size_t inlen, unsigned char **cipherText,
187 rv = apr_crypto_block_encrypt(cipherText, cipherTextLen, in, inlen, block);
319 const unsigned char *in, apr_size_t inlen, const char *description)
340 cipherText = encrypt_block(tc, pool, driver1, f1, key1, in, inlen,
347 if (memcmp(in, plainText, inlen)) {
383 apr_size_t inlen = sizeof(ALIGNED_STRING); local
389 in, inlen, "KEY_3DES_192/MODE_CBC");
391 in, inlen, "KEY_3DES_192/MODE_ECB");
393 inlen, "KEY_AES_256/MODE_CBC");
395 inlen, "KEY_AES_25
145 encrypt_block(abts_case *tc, apr_pool_t *pool, const apr_crypto_driver_t *driver, const apr_crypto_t *f, const apr_crypto_key_t *key, const unsigned char *in, const apr_size_t inlen, unsigned char **cipherText, apr_size_t *cipherTextLen, const unsigned char **iv, apr_size_t *blockSize, const char *description) argument
315 crypto_block_cross(abts_case *tc, apr_pool_t *pool, const apr_crypto_driver_t **drivers, const apr_crypto_block_key_type_e type, const apr_crypto_block_key_mode_e mode, int doPad, const unsigned char *in, apr_size_t inlen, const char *description) argument
417 apr_size_t inlen = sizeof(ALIGNED_STRING); local
451 apr_size_t inlen = sizeof(ALIGNED_STRING); local
490 apr_size_t inlen = sizeof(ALIGNED_STRING); local
529 apr_size_t inlen = sizeof(TEST_STRING); local
566 apr_size_t inlen = sizeof(TEST_STRING); local
608 apr_size_t inlen = sizeof(TEST_STRING); local
649 apr_size_t inlen = sizeof(TEST_STRING); local
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/aes/
H A Daes_wrap.c64 const unsigned char *in, unsigned int inlen)
68 if ((inlen & 0x7) || (inlen < 8))
72 memcpy(out + 8, in, inlen);
81 for (i = 0; i < inlen; i += 8, t++, R += 8)
96 return inlen + 8;
101 const unsigned char *in, unsigned int inlen)
105 inlen -= 8;
106 if (inlen & 0x7)
108 if (inlen <
62 AES_wrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen) argument
99 AES_unwrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen) argument
[all...]
H A Daes.h137 const unsigned char *in, unsigned int inlen);
140 const unsigned char *in, unsigned int inlen);
/freebsd-10.0-release/sys/libkern/
H A Diconv_ucs.c173 size_t in, on, ir, or, inlen, outlen, ucslen; local
196 inlen = 0;
197 code = utf8_to_ucs4(p, &inlen, ir);
216 if (inlen == 4) {
236 inlen = ir;
238 ret = iconv_convchr_case(dp->f_ctp, &p, &inlen, (char **)&q,
242 inlen = ir - inlen;
259 inlen = ucslen = 4;
266 inlen
[all...]
/freebsd-10.0-release/sys/dev/hptmv/
H A Daccess601.h45 int HPTLIBAPI sx508x_ioctl(MV_SATA_ADAPTER *pSataAdapter, UCHAR *indata, ULONG inlen,
57 #define sx508x_ioctl(pSataAdapter, indata, inlen, outdata, maxoutlen, poutlen) 0
/freebsd-10.0-release/sys/kgssapi/krb5/
H A Dkcrypto.c163 krb5_n_fold(uint8_t *out, size_t outlen, const uint8_t *in, size_t inlen) argument
170 tmplen = lcm(inlen, outlen);
173 bcopy(in, tmp, inlen);
174 for (i = inlen, p = tmp; i < tmplen; i += inlen, p += inlen) {
175 krb5_rotate_right_13(p + inlen, p, inlen);
H A Dkcrypto.h68 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
/freebsd-10.0-release/sys/netgraph/
H A Dng_pred1.c383 int outlen, inlen; local
391 inlen = m->m_pkthdr.len;
394 priv->stats.InOctets += inlen;
397 if (inlen > (PRED1_BUF_SIZE*8/9 + 1 + 4)) {
411 m_copydata(m, 0, inlen, (caddr_t)(priv->inbuf + 2));
413 lenn = htons(inlen & 0x7FFF);
417 fcs = Crc16(fcs, priv->inbuf + 2, inlen);
421 len = Pred1Compress(node, priv->inbuf + 2, priv->outbuf + 2, inlen);
424 if (len < inlen) {
432 outlen = 2 + inlen;
466 int inlen; local
[all...]
H A Dng_deflate.c447 int outlen, inlen; local
453 inlen = m->m_pkthdr.len;
456 priv->stats.InOctets+=inlen;
458 if (inlen > DEFLATE_BUF_SIZE) {
472 m_copydata(m, 0, inlen, (caddr_t)priv->inbuf);
479 priv->cx.avail_in = inlen;
482 priv->cx.avail_in = inlen - 1;
503 if (outlen > inlen) {
507 priv->stats.OutOctets+=inlen;
540 int outlen, inlen; local
[all...]
/freebsd-10.0-release/contrib/apr-util/crypto/
H A Dapr_crypto_openssl.c556 * @param inlen Length of the buffer to read.
562 apr_size_t *outlen, const unsigned char *in, apr_size_t inlen,
570 *outlen = inlen + EVP_MAX_BLOCK_LENGTH;
576 buffer = apr_palloc(ctx->pool, inlen + EVP_MAX_BLOCK_LENGTH);
580 apr_crypto_clear(ctx->pool, buffer, inlen + EVP_MAX_BLOCK_LENGTH);
585 if (!EVP_EncryptUpdate(&ctx->cipherCtx, (*out), &outl, in, inlen)) {
588 (unsigned char *) in, inlen)) {
711 * @param inlen Length of the buffer to read.
717 apr_size_t *outlen, const unsigned char *in, apr_size_t inlen,
725 *outlen = inlen
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
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
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/asn1/
H A Dtasn_utl.c165 int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, argument
175 enc->enc = OPENSSL_malloc(inlen);
178 memcpy(enc->enc, in, inlen);
179 enc->len = inlen;
/freebsd-10.0-release/crypto/openssl/crypto/rand/
H A Drand_lib.c239 static int drbg_rand_add(DRBG_CTX *ctx, const void *in, int inlen, argument
242 RAND_SSLeay()->add(in, inlen, entropy);
246 static int drbg_rand_seed(DRBG_CTX *ctx, const void *in, int inlen) argument
248 RAND_SSLeay()->seed(in, inlen);
/freebsd-10.0-release/contrib/apr-util/include/private/
H A Dapr_crypto_internal.h149 * @param inlen Length of the buffer to read.
155 const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx);
210 * @param inlen Length of the buffer to read.
216 const unsigned char *in, apr_size_t inlen, apr_crypto_block_t *ctx);

Completed in 256 milliseconds

1234