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

123

/freebsd-9.3-release/crypto/openssh/
H A Dhash.c30 int crypto_hash_sha512(unsigned char *out,const unsigned char *in,unsigned long long inlen) argument
35 unsigned long long bytes = inlen;
39 blocks(h,in,inlen);
40 in += inlen;
41 inlen &= 127;
42 in -= inlen;
44 for (i = 0;i < inlen;++i) padded[i] = in[i];
45 padded[inlen] = 0x80;
47 if (inlen < 112) {
48 for (i = inlen
[all...]
H A Dpoly1305.h16 void poly1305_auth(u_char out[POLY1305_TAGLEN], const u_char *m, size_t inlen,
H A Dpoly1305.c34 poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) { argument
73 if (inlen < 16) goto poly1305_donna_atmost15bytes;
76 inlen -= 16;
104 if (inlen >= 16) goto poly1305_donna_16bytes;
108 if (!inlen) goto poly1305_donna_finish;
110 for (j = 0; j < inlen; j++) mp[j] = m[j];
113 inlen = 0;
/freebsd-9.3-release/contrib/smbfs/lib/smb/
H A Dnls.c131 size_t inlen, outlen; local
138 inlen = outlen = strlen(src);
140 while (my_iconv(nls_toloc, &src, &inlen, &p, &outlen) == -1) {
142 inlen--;
153 size_t inlen, outlen; local
160 inlen = outlen = strlen(src);
162 while (my_iconv(nls_toext, &src, &inlen, &p, &outlen) == -1) {
164 inlen--;
176 size_t inlen, outlen; local
186 inlen
201 size_t inlen, outlen; local
[all...]
/freebsd-9.3-release/contrib/wpa/src/tls/
H A Dpkcs1.h19 int use_private, const u8 *in, size_t inlen,
22 const u8 *in, size_t inlen,
H A Dpkcs1.c23 const u8 *in, size_t inlen,
39 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
41 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
44 (unsigned long) inlen);
51 ps_len = modlen - inlen - 3;
79 os_memcpy(pos, in, inlen); /* D */
86 int use_private, const u8 *in, size_t inlen,
93 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen,
102 const u8 *in, size_t inlen,
108 res = crypto_rsa_exptmod(in, inlen, ou
22 pkcs1_generate_encryption_block(u8 block_type, size_t modlen, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
85 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
101 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.h25 int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
/freebsd-9.3-release/contrib/wpa/src/crypto/
H A Dcrypto_internal-rsa.c71 const u8 *in, size_t inlen,
75 0, in, inlen, out, outlen);
80 const u8 *in, size_t inlen,
84 in, inlen, out, outlen);
89 const u8 *in, size_t inlen,
93 1, in, inlen, out, outlen);
70 crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
79 crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
88 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-internal.c29 unsigned long inlen);
158 @param inlen The length of the data (octets)
162 unsigned long inlen)
170 while (inlen > 0) {
171 if (md->curlen == 0 && inlen >= block_size) {
176 inlen -= block_size;
178 n = MIN(inlen, (block_size - md->curlen));
182 inlen -= n;
161 sha256_process(struct sha256_state *md, const unsigned char *in, unsigned long inlen) argument
H A Dcrypto.h330 * @inlen: Length of plaintext buffer in bytes
340 struct crypto_public_key *key, const u8 *in, size_t inlen,
347 * @inlen: Length of encrypted buffer in bytes
357 struct crypto_private_key *key, const u8 *in, size_t inlen,
364 * @inlen: Length of plaintext buffer in bytes
374 const u8 *in, size_t inlen,
/freebsd-9.3-release/crypto/openssl/crypto/pkcs12/
H A Dp12_decr.c75 int passlen, unsigned char *in, int inlen,
91 if (!(out = OPENSSL_malloc(inlen + EVP_CIPHER_CTX_block_size(&ctx)))) {
96 EVP_CipherUpdate(&ctx, out, &i, in, inlen);
170 int inlen; local
175 inlen = ASN1_item_i2d(obj, &in, it);
180 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data,
187 OPENSSL_cleanse(in, inlen);
74 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-9.3-release/crypto/openssl/crypto/ecdh/
H A Dech_key.c77 void *(*KDF) (const void *in, size_t inlen, void *out,
75 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 size_t inlen, void *out,
H A Decdh.h95 EC_KEY *ecdh, void *(*KDF) (const void *in, size_t inlen,
/freebsd-9.3-release/crypto/openssl/crypto/aes/
H A Daes_wrap.c65 const unsigned char *in, unsigned int inlen)
69 if ((inlen & 0x7) || (inlen < 8))
73 memcpy(out + 8, in, inlen);
81 for (i = 0; i < inlen; i += 8, t++, R += 8) {
94 return inlen + 8;
99 const unsigned char *in, unsigned int inlen)
103 inlen -= 8;
104 if (inlen & 0x7)
106 if (inlen <
63 AES_wrap_key(AES_KEY *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, unsigned int inlen) argument
97 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.h141 const unsigned char *in, unsigned int inlen);
144 const unsigned char *in, unsigned int inlen);
/freebsd-9.3-release/contrib/libucl/tests/
H A Dtest_basic.c38 int ret = 0, inlen, opt, json = 0; local
84 inlen = strlen (inbuf);
85 test_in = malloc (inlen);
86 memcpy (test_in, inbuf, inlen);
87 ucl_parser_add_chunk (parser, test_in, inlen);
/freebsd-9.3-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...]
H A Diconv_xlat16.c119 size_t in, on, ir, or, inlen; local
133 inlen = 0;
147 inlen = 2;
162 if (inlen == 0) {
171 inlen = 1;
200 if (inlen == 1 && nullin) {
266 if (inlen == 2) {
269 * byte char while inlen == 2
/freebsd-9.3-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-9.3-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-9.3-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-9.3-release/crypto/openssl/crypto/asn1/
H A Dtasn_utl.c164 int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, argument
174 enc->enc = OPENSSL_malloc(inlen);
177 memcpy(enc->enc, in, inlen);
178 enc->len = inlen;

Completed in 141 milliseconds

123