/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
H A D | 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) argument 28 return mp_read_unsigned_bin(n, in, inlen);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/ia5/ |
H A D | 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, argument 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 [all...] |
H A D | der_decode_ia5_string.c | 24 @param inlen The size of the DER IA5 STRING 29 int der_decode_ia5_string(const unsigned char *in, unsigned long inlen, argument 40 if (inlen < 2) { 54 if ((y == 0) || (y > 3) || ((x + y) > inlen)) { 74 if (len + x > inlen) {
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/octet/ |
H A D | 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, argument 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 [all...] |
H A D | 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, argument 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/ |
H A D | 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, argument 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 [all...] |
H A D | der_decode_printable_string.c | 24 @param inlen The size of the DER printable STRING 29 int der_decode_printable_string(const unsigned char *in, unsigned long inlen, argument 40 if (inlen < 2) { 54 if ((y == 0) || (y > 3) || ((x + y) > inlen)) { 74 if (len + x > inlen) {
|
/external/ppp/pppd/plugins/radius/ |
H A D | md5.c | 6 void rc_md5_calc (unsigned char *output, unsigned char *input, unsigned int inlen) argument 11 MD5_Update (&context, input, inlen);
|
/external/protobuf/src/google/protobuf/testing/ |
H A D | zcgunzip.cc | 60 int inlen; local 62 ok = in.Next(&inptr, &inlen); 66 if (inlen > 0) { 67 int err = write(STDOUT_FILENO, inptr, inlen); 68 assert(err == inlen);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/choice/ |
H A D | 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, argument 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 [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/short_integer/ |
H A D | 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) argument 36 if (inlen < 2) { 49 if (x + len > inlen) {
|
/external/dropbear/libtomcrypt/src/mac/hmac/ |
H A D | hmac_process.c | 24 @param inlen The length of the data to HMAC (octets) 27 int hmac_process(hmac_state *hmac, const unsigned char *in, unsigned long inlen) argument 35 return hash_descriptor[hmac->hash].process(&hmac->md, in, inlen);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/boolean/ |
H A D | der_decode_boolean.c | 24 @param inlen The size of the DER BOOLEAN 28 int der_decode_boolean(const unsigned char *in, unsigned long inlen, argument 34 if (inlen != 3 || in[0] != 0x01 || in[1] != 0x01 || (in[2] != 0x00 && in[2] != 0xFF)) {
|
/external/dropbear/libtomcrypt/src/headers/ |
H A D | 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_ke [all...] |
/external/dropbear/libtomcrypt/src/mac/omac/ |
H A D | 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) argument 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/ |
H A D | 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, argument 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/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | 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) argument 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) argument 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 [all...] |
/external/dropbear/libtomcrypt/src/mac/pelican/ |
H A D | pelican_memory.c | 25 @param inlen The length of the input (octets) 30 const unsigned char *in, unsigned long inlen, 45 if ((err = pelican_process(pel, in ,inlen)) != CRYPT_OK) { 29 pelican_memory(const unsigned char *key, unsigned long keylen, const unsigned char *in, unsigned long inlen, unsigned char *out) argument
|
/external/wpa_supplicant_8/hostapd/src/tls/ |
H A D | pkcs1.h | 13 int use_private, const u8 *in, size_t inlen, 16 const u8 *in, size_t inlen,
|
/external/wpa_supplicant_8/src/tls/ |
H A D | pkcs1.h | 13 int use_private, const u8 *in, size_t inlen, 16 const u8 *in, size_t inlen,
|
/external/wpa_supplicant_8/wpa_supplicant/src/tls/ |
H A D | pkcs1.h | 13 int use_private, const u8 *in, size_t inlen, 16 const u8 *in, size_t inlen,
|
/external/dropbear/libtomcrypt/src/misc/base64/ |
H A D | base64_encode.c | 27 @param inlen The length of the input buffer 32 int base64_encode(const unsigned char *in, unsigned long inlen, argument 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/ |
H A D | 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, argument 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/asn1/der/sequence/ |
H A D | der_decode_sequence_flexi.c | 20 static unsigned long fetch_length(const unsigned char *in, unsigned long inlen) argument 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) argument 70 LTC_ARGCHK(inlen != NULL); 77 while (*inlen) { 82 len = fetch_length(in, *inlen); 83 if (len > *inlen) { [all...] |
/external/dropbear/libtomcrypt/src/mac/pmac/ |
H A D | pmac_process.c | 25 @param inlen The length of the data to send through PMAC 28 int pmac_process(pmac_state *pmac, const unsigned char *in, unsigned long inlen) argument 46 if (pmac->buflen == 0 && inlen > 16) { 48 for (x = 0; x < (inlen - 16); x += 16) { 61 inlen -= x; 65 while (inlen != 0) { 82 n = MIN(inlen, (unsigned long)(pmac->block_len - pmac->buflen)); 85 inlen -= n;
|