Home
last modified time | relevance | path

Searched refs:inlen (Results 1 – 25 of 57) sorted by relevance

123

/external/boringssl/
Dandroid_compat_keywrap.c65 const uint8_t *in, unsigned int inlen) { in AES_wrap_key() argument
68 if ((inlen & 0x7) || (inlen < 8)) return -1; in AES_wrap_key()
71 memcpy(out + 8, in, inlen); in AES_wrap_key()
78 for (i = 0; i < inlen; i += 8, t++, R += 8) { in AES_wrap_key()
91 return inlen + 8; in AES_wrap_key()
95 const uint8_t *in, unsigned int inlen) { in AES_unwrap_key() argument
98 inlen -= 8; in AES_unwrap_key()
99 if (inlen & 0x7) return -1; in AES_unwrap_key()
100 if (inlen < 8) return -1; in AES_unwrap_key()
102 t = 6 * (inlen >> 3); in AES_unwrap_key()
[all …]
/external/openssh/
Dhash.c30 int crypto_hash_sha512(unsigned char *out,const unsigned char *in,unsigned long long inlen) in crypto_hash_sha512() argument
35 unsigned long long bytes = inlen; in crypto_hash_sha512()
39 blocks(h,in,inlen); in crypto_hash_sha512()
40 in += inlen; in crypto_hash_sha512()
41 inlen &= 127; in crypto_hash_sha512()
42 in -= inlen; in crypto_hash_sha512()
44 for (i = 0;i < inlen;++i) padded[i] = in[i]; in crypto_hash_sha512()
45 padded[inlen] = 0x80; in crypto_hash_sha512()
47 if (inlen < 112) { in crypto_hash_sha512()
48 for (i = inlen + 1;i < 119;++i) padded[i] = 0; in crypto_hash_sha512()
[all …]
Dpoly1305.c34 poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsig… in poly1305_auth() argument
73 if (inlen < 16) goto poly1305_donna_atmost15bytes; in poly1305_auth()
76 inlen -= 16; in poly1305_auth()
104 if (inlen >= 16) goto poly1305_donna_16bytes; in poly1305_auth()
108 if (!inlen) goto poly1305_donna_finish; in poly1305_auth()
110 for (j = 0; j < inlen; j++) mp[j] = m[j]; in poly1305_auth()
113 inlen = 0; in poly1305_auth()
Dblocks.c82 …rypto_hashblocks_sha512(unsigned char *statebytes,const unsigned char *in,unsigned long long inlen) in crypto_hashblocks_sha512() argument
105 while (inlen >= 128) { in crypto_hashblocks_sha512()
235 inlen -= 128; in crypto_hashblocks_sha512()
247 return inlen; in crypto_hashblocks_sha512()
/external/libxml2/
Dencoding.c174 const unsigned char* in, int *inlen) { in asciiToUTF8() argument
182 inend = in + (*inlen); in asciiToUTF8()
192 *inlen = processed - base; in asciiToUTF8()
199 *inlen = processed - base; in asciiToUTF8()
221 const unsigned char* in, int *inlen) { in UTF8Toascii() argument
230 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii()
236 *inlen = 0; in UTF8Toascii()
239 inend = in + (*inlen); in UTF8Toascii()
247 *inlen = processed - instart; in UTF8Toascii()
255 *inlen = processed - instart; in UTF8Toascii()
[all …]
/external/protobuf/src/google/protobuf/testing/
Dzcgunzip.cc60 int inlen; in main() local
62 ok = in.Next(&inptr, &inlen); in main()
66 if (inlen > 0) { in main()
67 int err = write(STDOUT_FILENO, inptr, inlen); in main()
68 assert(err == inlen); in main()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-rsa.c73 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument
77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15()
82 const u8 *in, size_t inlen, in crypto_private_key_decrypt_pkcs1_v15() argument
86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15()
91 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument
95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
Dsha256-internal.c146 unsigned long inlen) in sha256_process() argument
153 while (inlen > 0) { in sha256_process()
154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
159 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
165 inlen -= n; in sha256_process()
Dcrypto_libtomcrypt.c487 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument
503 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
508 (unsigned long) inlen); in pkcs1_generate_encryption_block()
515 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
543 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block()
550 const u8 *in, size_t inlen, in crypto_rsa_encrypt_pkcs1() argument
558 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1()
576 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument
579 return crypto_rsa_encrypt_pkcs1(2, &key->rsa, PK_PUBLIC, in, inlen, in crypto_public_key_encrypt_pkcs1_v15()
585 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument
[all …]
Dcrypto.h324 struct crypto_public_key *key, const u8 *in, size_t inlen,
341 struct crypto_private_key *key, const u8 *in, size_t inlen,
358 const u8 *in, size_t inlen,
Dsha256_i.h22 unsigned long inlen);
/external/wpa_supplicant_8/src/tls/
Dpkcs1.c19 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
40 (unsigned long) inlen); in pkcs1_generate_encryption_block()
47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
75 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block()
82 int use_private, const u8 *in, size_t inlen, in pkcs1_encrypt() argument
89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt()
98 const u8 *in, size_t inlen, in pkcs1_v15_private_key_decrypt() argument
104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt()
Dpkcs1.h16 int use_private, const u8 *in, size_t inlen,
19 const u8 *in, size_t inlen,
/external/boringssl/src/crypto/chacha/
Dchacha_vec.c155 size_t inlen, in CRYPTO_chacha_20_neon() argument
186 for (iters = 0; iters < inlen/(BPI*64); iters++) in CRYPTO_chacha_20_neon()
277 for (iters = inlen%(BPI*64)/64; iters != 0; iters--) in CRYPTO_chacha_20_neon()
290 inlen = inlen % 64; in CRYPTO_chacha_20_neon()
291 if (inlen) in CRYPTO_chacha_20_neon()
301 if (inlen >= 16) in CRYPTO_chacha_20_neon()
304 if (inlen >= 32) in CRYPTO_chacha_20_neon()
307 if (inlen >= 48) in CRYPTO_chacha_20_neon()
322 for (i=inlen & ~15; i<inlen; i++) in CRYPTO_chacha_20_neon()
/external/libxml2/include/libxml/
Dencoding.h102 const unsigned char *in, int *inlen);
124 const unsigned char *in, int *inlen);
229 int *inlen);
235 int *inlen);
/external/ppp/pppd/plugins/radius/
Dmd5.c6 void rc_md5_calc (unsigned char *output, unsigned char *input, unsigned int inlen) in rc_md5_calc() argument
11 MD5_Update (&context, input, inlen); in rc_md5_calc()
/external/boringssl/src/crypto/asn1/
Dtasn_utl.c154 int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen, in asn1_enc_save() argument
165 enc->enc = OPENSSL_malloc(inlen); in asn1_enc_save()
169 memcpy(enc->enc, in, inlen); in asn1_enc_save()
170 enc->len = inlen; in asn1_enc_save()
Da_strnid.c122 int inlen, int inform, int nid) in ASN1_STRING_set_by_NID() argument
133 ret = ASN1_mbstring_ncopy(out, in, inlen, inform, mask, in ASN1_STRING_set_by_NID()
135 } else ret = ASN1_mbstring_copy(out, in, inlen, inform, DIRSTRING_TYPE & global_mask); in ASN1_STRING_set_by_NID()
/external/zlib/src/contrib/puff/
Dpuff.c106 unsigned long inlen; /* available input at in */ member
133 if (s->incnt == s->inlen) in bits()
173 if (s->incnt + 4 > s->inlen) in stored()
182 if (s->incnt + len > s->inlen) in stored()
298 if (s->incnt == s->inlen) in decode()
809 s.inlen = *sourcelen; in puff()
/external/squashfs-tools/squashfs-tools/
Dlzma_wrapper.c86 size_t outlen, inlen = size - LZMA_HEADER_SIZE; in lzma_uncompress() local
99 res = LzmaUncompress(dest, &outlen, src + LZMA_HEADER_SIZE, &inlen, src, in lzma_uncompress()
/external/boringssl/src/crypto/evp/
Dp_rsa.c260 const uint8_t *in, size_t inlen) { in pkey_rsa_encrypt() argument
277 !RSA_padding_add_PKCS1_OAEP_mgf1(rctx->tbuf, key_len, in, inlen, in pkey_rsa_encrypt()
287 return RSA_encrypt(rsa, outlen, out, *outlen, in, inlen, rctx->pad_mode); in pkey_rsa_encrypt()
292 size_t inlen) { in pkey_rsa_decrypt() argument
312 !RSA_decrypt(rsa, &plaintext_len, rctx->tbuf, key_len, in, inlen, in pkey_rsa_decrypt()
327 return RSA_decrypt(rsa, outlen, out, key_len, in, inlen, rctx->pad_mode); in pkey_rsa_decrypt()
Devp_ctx.c314 const uint8_t *in, size_t inlen) { in EVP_PKEY_encrypt() argument
324 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt()
345 const uint8_t *in, size_t inlen) { in EVP_PKEY_decrypt() argument
355 return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_decrypt()
/external/ppp/pppd/
Deap.c115 static void eap_input __P((int unit, u_char *inp, int inlen));
119 static int eap_printpkt __P((u_char *inp, int inlen,
345 b64enc(bs, inp, inlen, outp) in b64enc() argument
348 int inlen;
353 while (inlen > 0) {
355 inlen--;
393 b64dec(bs, inp, inlen, outp) in b64dec() argument
396 int inlen;
402 while (inlen > 0) {
406 inlen--;
[all …]
/external/libxml2/os400/libxmlrpg/
Dencoding.rpgle100 * @inlen: the length of @in
107 * The value of @inlen after return is the number of octets consumed
119 * @inlen: the length of @in
128 * The value of @inlen after return is the number of octets consumed
264 d inlen 10i 0
272 d inlen 10i 0
/external/boringssl/src/include/openssl/
Decdh.h90 void *(*KDF)(const void *in, size_t inlen,

123