/external/dropbear/libtomcrypt/src/pk/asn1/der/ia5/ |
der_encode_ia5_string.c | 23 @param inlen The number of IA5 to store 28 int der_encode_ia5_string(const unsigned char *in, unsigned long inlen, 39 if ((err = der_length_ia5_string(in, inlen, &len)) != CRYPT_OK) { 52 if (inlen < 128) { 53 out[x++] = (unsigned char)inlen; 54 } else if (inlen < 256) { 56 out[x++] = (unsigned char)inlen; 57 } else if (inlen < 65536UL) { 59 out[x++] = (unsigned char)((inlen>>8)&255); 60 out[x++] = (unsigned char)(inlen&255) [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/octet/ |
der_encode_octet_string.c | 24 @param inlen The number of OCTETS to store 29 int der_encode_octet_string(const unsigned char *in, unsigned long inlen, 40 if ((err = der_length_octet_string(inlen, &len)) != CRYPT_OK) { 53 if (inlen < 128) { 54 out[x++] = (unsigned char)inlen; 55 } else if (inlen < 256) { 57 out[x++] = (unsigned char)inlen; 58 } else if (inlen < 65536UL) { 60 out[x++] = (unsigned char)((inlen>>8)&255); 61 out[x++] = (unsigned char)(inlen&255) [all...] |
der_decode_octet_string.c | 24 @param inlen The size of the DER OCTET STRING 29 int der_decode_octet_string(const unsigned char *in, unsigned long inlen, 39 if (inlen < 2) { 53 if ((y == 0) || (y > 3) || ((x + y) > inlen)) { 73 if (len + x > inlen) {
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/printable_string/ |
der_encode_printable_string.c | 23 @param inlen The number of printable to store 28 int der_encode_printable_string(const unsigned char *in, unsigned long inlen, 39 if ((err = der_length_printable_string(in, inlen, &len)) != CRYPT_OK) { 52 if (inlen < 128) { 53 out[x++] = (unsigned char)inlen; 54 } else if (inlen < 256) { 56 out[x++] = (unsigned char)inlen; 57 } else if (inlen < 65536UL) { 59 out[x++] = (unsigned char)((inlen>>8)&255); 60 out[x++] = (unsigned char)(inlen&255) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
Wrapper.java | 14 public byte[] wrap(byte[] in, int inOff, int inLen); 16 public byte[] unwrap(byte[] in, int inOff, int inLen)
|
/external/ppp/pppd/plugins/radius/ |
md5.c | 6 void rc_md5_calc (unsigned char *output, unsigned char *input, unsigned int inlen) 11 MD5_Update (&context, input, inlen);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/choice/ |
der_decode_choice.c | 23 @param inlen [in/out] The size of the input and resulting size of read type 28 int der_decode_choice(const unsigned char *in, unsigned long *inlen, 35 LTC_ARGCHK(inlen != NULL); 39 if (*inlen < 2) { 55 if (der_decode_integer(in, *inlen, data) == CRYPT_OK) { 58 *inlen = z; 65 if (der_decode_short_integer(in, *inlen, data) == CRYPT_OK) { 68 *inlen = z; 75 if (der_decode_bit_string(in, *inlen, data, &size) == CRYPT_OK) { 79 *inlen = z [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/sequence/ |
der_decode_sequence_ex.c | 25 @param inlen The size of the input 31 int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen, 42 if (inlen < 2) { 62 if (x + y > inlen) { 74 if (x + blksize > inlen) { 84 inlen = blksize; 98 z = inlen; 108 z = inlen; 119 z = inlen; 131 z = inlen; [all...] |
der_decode_sequence_flexi.c | 20 static unsigned long fetch_length(const unsigned char *in, unsigned long inlen) 27 if (inlen < 2) { 40 inlen -= 2; 43 if (x == 0 || x > 4 || x > inlen) { 59 @param inlen [in/out] The length of the input buffer and on output the amount of decoded data 63 int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out) 70 LTC_ARGCHK(inlen != NULL); 77 while (*inlen) { 82 len = fetch_length(in, *inlen); 83 if (len > *inlen) { [all...] |
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_pk.h | 41 int rsa_exptmod(const unsigned char *in, unsigned long inlen, 61 int rsa_encrypt_key_ex(const unsigned char *in, unsigned long inlen, 66 int rsa_decrypt_key_ex(const unsigned char *in, unsigned long inlen, 72 int rsa_sign_hash_ex(const unsigned char *in, unsigned long inlen, 87 int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key); 122 int katja_exptmod(const unsigned char *in, unsigned long inlen, 129 int katja_encrypt_key(const unsigned char *in, unsigned long inlen, 134 int katja_decrypt_key(const unsigned char *in, unsigned long inlen, 142 int katja_import(const unsigned char *in, unsigned long inlen, katja_key *key); 221 int ecc_import(const unsigned char *in, unsigned long inlen, ecc_key *key) [all...] |
tomcrypt_hash.h | 172 @param inlen The length of the data (octets) 175 int (*process)(hash_state *hash, const unsigned char *in, unsigned long inlen); 189 const unsigned char *in, unsigned long inlen, 197 int chc_process(hash_state * md, const unsigned char *in, unsigned long inlen); 205 int whirlpool_process(hash_state * md, const unsigned char *in, unsigned long inlen); 213 int sha512_process(hash_state * md, const unsigned char *in, unsigned long inlen); 232 int sha256_process(hash_state * md, const unsigned char *in, unsigned long inlen); 251 int sha1_process(hash_state * md, const unsigned char *in, unsigned long inlen); 259 int md5_process(hash_state * md, const unsigned char *in, unsigned long inlen); 267 int md4_process(hash_state * md, const unsigned char *in, unsigned long inlen); [all...] |
tomcrypt_prng.h | 79 @param inlen Length of the entropy (octets)\ 83 int (*add_entropy)(const unsigned char *in, unsigned long inlen, prng_state *prng); 110 @param inlen The length of the data to import (octets) 114 int (*pimport)(const unsigned char *in, unsigned long inlen, prng_state *prng); 123 int yarrow_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng); 128 int yarrow_import(const unsigned char *in, unsigned long inlen, prng_state *prng); 135 int fortuna_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng); 140 int fortuna_import(const unsigned char *in, unsigned long inlen, prng_state *prng); 147 int rc4_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng); 152 int rc4_import(const unsigned char *in, unsigned long inlen, prng_state *prng) [all...] |
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_os2ip.c | 23 @param inlen The length of the binary string 26 int pkcs_1_os2ip(void *n, unsigned char *in, unsigned long inlen) 28 return mp_read_unsigned_bin(n, in, inlen);
|
/external/dropbear/libtomcrypt/src/mac/xcbc/ |
xcbc_process.c | 23 @param inlen Length of input in octets 26 int xcbc_process(xcbc_state *xcbc, const unsigned char *in, unsigned long inlen) 48 while (inlen > (unsigned long)xcbc->blocksize) { 54 inlen -= xcbc->blocksize; 59 while (inlen) { 65 --inlen;
|
/external/wpa_supplicant_8/src/crypto/ |
crypto_internal-rsa.c | 64 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);
|
/external/dropbear/libtomcrypt/src/mac/omac/ |
omac_process.c | 25 @param inlen The length of the input (octets) 28 int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen) 45 if (omac->buflen == 0 && inlen > 16) { 47 for (x = 0; x < (inlen - 16); x += 16) { 56 inlen -= x; 60 while (inlen != 0) { 73 n = MIN(inlen, (unsigned long)(omac->blklen - omac->buflen)); 76 inlen -= n;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/ |
der_encode_bit_string.c | 24 @param inlen The number of bits tostore 29 int der_encode_bit_string(const unsigned char *in, unsigned long inlen, 41 if ((err = der_length_bit_string(inlen, &len)) != CRYPT_OK) { 52 y = (inlen >> 3) + ((inlen&7) ? 1 : 0) + 1; 67 out[x++] = (unsigned char)((8 - inlen) & 7); 70 for (y = buf = 0; y < inlen; y++) { 78 if (inlen & 7) {
|
/external/wpa_supplicant_8/src/tls/ |
pkcs1.h | 13 int use_private, const u8 *in, size_t inlen, 16 const u8 *in, size_t inlen,
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/short_integer/ |
der_decode_short_integer.c | 24 @param inlen Size of data 28 int der_decode_short_integer(const unsigned char *in, unsigned long inlen, unsigned long *num) 36 if (inlen < 2) { 49 if (x + len > inlen) {
|
/external/dropbear/libtomcrypt/src/misc/base64/ |
base64_encode.c | 27 @param inlen The length of the input buffer 32 int base64_encode(const unsigned char *in, unsigned long inlen, 43 len2 = 4 * ((inlen + 2) / 3); 49 leven = 3*(inlen / 3); 58 if (i < inlen) { 60 unsigned b = (i+1 < inlen) ? in[1] : 0; 64 *p++ = (i+1 < inlen) ? codes[(((b & 0xf) << 2)) & 0x3F] : '=';
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/ |
der_decode_utf8_string.c | 24 @param inlen The size of the DER UTF8 STRING 29 int der_decode_utf8_string(const unsigned char *in, unsigned long inlen, 40 if (inlen < 2) { 54 if ((y == 0) || (y > 3) || ((x + y) > inlen)) { 68 if (len + x > inlen) { 73 for (y = 0; x < inlen; ) { 80 if (z > 4 || (x + (z - 1) > inlen)) {
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
ecc_ansi_x963_import.c | 28 @param inlen The length of the input data 31 int ecc_ansi_x963_import(const unsigned char *in, unsigned long inlen, ecc_key *key) 33 return ecc_ansi_x963_import_ex(in, inlen, key, NULL); 36 int ecc_ansi_x963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, ltc_ecc_set_type *dp) 44 if ((inlen & 1) == 0) { 60 if ((err = mp_read_unsigned_bin(key->pubkey.x, (unsigned char *)in+1, (inlen-1)>>1)) != CRYPT_OK) { 64 if ((err = mp_read_unsigned_bin(key->pubkey.y, (unsigned char *)in+1+((inlen-1)>>1), (inlen-1)>>1)) != CRYPT_OK) { 72 if ((unsigned)ltc_ecc_sets[x].size >= ((inlen-1)>>1)) { 84 if (((inlen-1)>>1) != (unsigned long) dp->size) [all...] |
/external/dropbear/libtomcrypt/src/mac/f9/ |
f9_process.c | 23 @param inlen Length of input in octets 26 int f9_process(f9_state *f9, const unsigned char *in, unsigned long inlen) 45 while (inlen >= (unsigned long)f9->blocksize) { 54 inlen -= f9->blocksize; 59 while (inlen) { 68 --inlen;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/ |
der_decode_integer.c | 24 @param inlen Size of DER encoded data 28 int der_decode_integer(const unsigned char *in, unsigned long inlen, void *num) 37 if (inlen < (1 + 1 + 1)) { 54 if (x + z > inlen) { 67 if (((x + z) > inlen) || (z > 4) || (z == 0)) { 78 if ((x + y) > inlen) {
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/set/ |
der_encode_set.c | 62 @param inlen The number of items in the list 67 int der_encode_set(ltc_asn1_list *list, unsigned long inlen, 75 copy = XCALLOC(inlen, sizeof(*copy)); 81 for (x = 0; x < inlen; x++) { 87 XQSORT(copy, inlen, sizeof(*copy), &qsort_helper); 90 err = der_encode_sequence_ex(copy, inlen, out, outlen, LTC_ASN1_SET);
|