/external/dropbear/libtomcrypt/src/headers/ |
D | tomcrypt_pk.h | 42 unsigned char *out, unsigned long *outlen, int which, 62 unsigned char *out, unsigned long *outlen, 67 unsigned char *out, unsigned long *outlen, 73 unsigned char *out, unsigned long *outlen, 86 int rsa_export(unsigned char *out, unsigned long *outlen, int type, rsa_key *key); 123 unsigned char *out, unsigned long *outlen, int which, 130 unsigned char *out, unsigned long *outlen, 135 unsigned char *out, unsigned long *outlen, 141 int katja_export(unsigned char *out, unsigned long *outlen, int type, katja_key *key); 220 int ecc_export(unsigned char *out, unsigned long *outlen, int type, ecc_key *key); [all …]
|
D | tomcrypt_prng.h | 95 unsigned long (*read)(unsigned char *out, unsigned long outlen, prng_state *prng); 107 int (*pexport)(unsigned char *out, unsigned long *outlen, prng_state *prng); 125 unsigned long yarrow_read(unsigned char *out, unsigned long outlen, prng_state *prng); 127 int yarrow_export(unsigned char *out, unsigned long *outlen, prng_state *prng); 137 unsigned long fortuna_read(unsigned char *out, unsigned long outlen, prng_state *prng); 139 int fortuna_export(unsigned char *out, unsigned long *outlen, prng_state *prng); 149 unsigned long rc4_read(unsigned char *out, unsigned long outlen, prng_state *prng); 151 int rc4_export(unsigned char *out, unsigned long *outlen, prng_state *prng); 161 unsigned long sprng_read(unsigned char *out, unsigned long outlen, prng_state *prng); 163 int sprng_export(unsigned char *out, unsigned long *outlen, prng_state *prng); [all …]
|
D | tomcrypt_mac.h | 11 int hmac_done(hmac_state *hmac, unsigned char *out, unsigned long *outlen); 16 unsigned char *out, unsigned long *outlen); 19 unsigned char *out, unsigned long *outlen, 40 int omac_done(omac_state *omac, unsigned char *out, unsigned long *outlen); 44 unsigned char *out, unsigned long *outlen); 47 unsigned char *out, unsigned long *outlen, 52 unsigned char *out, unsigned long *outlen); 74 int pmac_done(pmac_state *pmac, unsigned char *out, unsigned long *outlen); 79 unsigned char *out, unsigned long *outlen); 83 unsigned char *out, unsigned long *outlen, [all …]
|
D | tomcrypt_pkcs.h | 34 unsigned long *outlen); 41 unsigned long *outlen, 49 unsigned char *out, unsigned long *outlen); 54 unsigned char *out, unsigned long *outlen, 61 unsigned char *out, unsigned long *outlen); 77 unsigned char *out, unsigned long *outlen); 83 unsigned char *out, unsigned long *outlen);
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/sequence/ |
D | der_encode_sequence_ex.c | 32 unsigned char *out, unsigned long *outlen, int type_of) in der_encode_sequence_ex() argument 40 LTC_ARGCHK(outlen != NULL); in der_encode_sequence_ex() 162 if (*outlen < y) { in der_encode_sequence_ex() 163 *outlen = y; in der_encode_sequence_ex() 189 *outlen -= x; in der_encode_sequence_ex() 201 z = *outlen; in der_encode_sequence_ex() 206 *outlen -= z; in der_encode_sequence_ex() 210 z = *outlen; in der_encode_sequence_ex() 215 *outlen -= z; in der_encode_sequence_ex() 219 z = *outlen; in der_encode_sequence_ex() [all …]
|
/external/libxml2/ |
D | encoding.c | 169 asciiToUTF8(unsigned char* out, int *outlen, in asciiToUTF8() argument 174 unsigned char* outend = out + *outlen; in asciiToUTF8() 179 while ((in < inend) && (out - outstart + 5 < *outlen)) { in asciiToUTF8() 187 *outlen = out - outstart; in asciiToUTF8() 194 *outlen = out - outstart; in asciiToUTF8() 196 return(*outlen); in asciiToUTF8() 216 UTF8Toascii(unsigned char* out, int *outlen, in UTF8Toascii() argument 226 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii() 231 *outlen = 0; in UTF8Toascii() 236 outend = out + (*outlen); in UTF8Toascii() [all …]
|
/external/openssl/crypto/asn1/ |
D | a_strex.c | 178 int i, outlen, len; in do_buf() local 183 outlen = 0; in do_buf() 225 outlen += len; in do_buf() 230 outlen += len; in do_buf() 233 return outlen; in do_buf() 269 int outlen, der_len; in do_dump() local 274 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump() 275 if(outlen < 0) return -1; in do_dump() 276 return outlen + 1; in do_dump() 285 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump() [all …]
|
D | a_mbstr.c | 96 int outform, outlen = 0; in ASN1_mbstring_ncopy() local 214 outlen = nchar; in ASN1_mbstring_ncopy() 219 outlen = nchar << 1; in ASN1_mbstring_ncopy() 224 outlen = nchar << 2; in ASN1_mbstring_ncopy() 229 outlen = 0; in ASN1_mbstring_ncopy() 230 traverse_string(in, len, inform, out_utf8, &outlen); in ASN1_mbstring_ncopy() 234 if(!(p = OPENSSL_malloc(outlen + 1))) { in ASN1_mbstring_ncopy() 239 dest->length = outlen; in ASN1_mbstring_ncopy() 241 p[outlen] = 0; in ASN1_mbstring_ncopy() 299 int *outlen; in out_utf8() local [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | pkcs1.c | 18 u8 *out, size_t *outlen) in pkcs1_generate_encryption_block() argument 33 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block() 37 (unsigned long) *outlen, in pkcs1_generate_encryption_block() 81 u8 *out, size_t *outlen) in pkcs1_encrypt() argument 88 out, outlen) < 0) in pkcs1_encrypt() 91 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt() 97 u8 *out, size_t *outlen) in pkcs1_v15_private_key_decrypt() argument 102 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt() 106 if (*outlen < 2 || out[0] != 0 || out[1] != 2) in pkcs1_v15_private_key_decrypt() 111 end = out + *outlen; in pkcs1_v15_private_key_decrypt() [all …]
|
/external/protobuf/src/google/protobuf/testing/ |
D | zcgzip.cc | 60 int outlen; in main() local 63 ok = out.Next(&outptr, &outlen); in main() 67 } while (outlen <= 0); in main() 68 readlen = read(STDIN_FILENO, outptr, outlen); in main() 70 out.BackUp(outlen); in main() 73 if (readlen < outlen) { in main() 74 out.BackUp(outlen - readlen); in main()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/octet/ |
D | der_length_octet_string.c | 25 int der_length_octet_string(unsigned long noctets, unsigned long *outlen) in der_length_octet_string() argument 27 LTC_ARGCHK(outlen != NULL); in der_length_octet_string() 31 *outlen = 2 + noctets; in der_length_octet_string() 34 *outlen = 3 + noctets; in der_length_octet_string() 37 *outlen = 4 + noctets; in der_length_octet_string() 40 *outlen = 5 + noctets; in der_length_octet_string()
|
D | der_decode_octet_string.c | 30 unsigned char *out, unsigned long *outlen) in der_decode_octet_string() argument 36 LTC_ARGCHK(outlen != NULL); in der_decode_octet_string() 68 if (len > *outlen) { in der_decode_octet_string() 69 *outlen = len; in der_decode_octet_string() 82 *outlen = y; in der_decode_octet_string()
|
/external/openssl/crypto/ecdh/ |
D | ech_ossl.c | 84 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); 108 static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ecdh_compute_key() argument 110 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) in ecdh_compute_key() argument 121 if (outlen > INT_MAX) in ecdh_compute_key() 193 if (KDF(buf, buflen, out, &outlen) == NULL) in ecdh_compute_key() 198 ret = outlen; in ecdh_compute_key() 203 if (outlen > buflen) in ecdh_compute_key() 204 outlen = buflen; in ecdh_compute_key() 205 memcpy(out, buf, outlen); in ecdh_compute_key() 206 ret = outlen; in ecdh_compute_key()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/ |
D | der_length_utf8_string.c | 44 int der_length_utf8_string(const wchar_t *in, unsigned long noctets, unsigned long *outlen) in der_length_utf8_string() argument 49 LTC_ARGCHK(outlen != NULL); in der_length_utf8_string() 61 *outlen = 2 + len; in der_length_utf8_string() 64 *outlen = 3 + len; in der_length_utf8_string() 67 *outlen = 4 + len; in der_length_utf8_string() 70 *outlen = 5 + len; in der_length_utf8_string()
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
D | rsa_encrypt_key.c | 36 unsigned char *out, unsigned long *outlen, in rsa_encrypt_key_ex() argument 45 LTC_ARGCHK(outlen != NULL); in rsa_encrypt_key_ex() 71 if (modulus_bytelen > *outlen) { in rsa_encrypt_key_ex() 72 *outlen = modulus_bytelen; in rsa_encrypt_key_ex() 78 x = *outlen; in rsa_encrypt_key_ex() 86 x = *outlen; in rsa_encrypt_key_ex() 95 return ltc_mp.rsa_me(out, x, out, outlen, PK_PUBLIC, key); in rsa_encrypt_key_ex()
|
D | rsa_sign_hash.c | 35 unsigned char *out, unsigned long *outlen, in rsa_sign_hash_ex() argument 46 LTC_ARGCHK(outlen != NULL); in rsa_sign_hash_ex() 69 if (modulus_bytelen > *outlen) { in rsa_sign_hash_ex() 70 *outlen = modulus_bytelen; in rsa_sign_hash_ex() 76 x = *outlen; in rsa_sign_hash_ex() 116 x = *outlen; in rsa_sign_hash_ex() 127 return ltc_mp.rsa_me(out, x, out, outlen, PK_PRIVATE, key); in rsa_sign_hash_ex()
|
/external/openssl/crypto/pkcs12/ |
D | p12_decr.c | 76 int outlen, i; in PKCS12_pbe_crypt() local 100 outlen = i; in PKCS12_pbe_crypt() 107 outlen += i; in PKCS12_pbe_crypt() 108 if (datalen) *datalen = outlen; in PKCS12_pbe_crypt() 126 int outlen; in PKCS12_item_decrypt_d2i() local 129 &out, &outlen, 0)) { in PKCS12_item_decrypt_d2i() 142 fwrite (p, 1, outlen, op); in PKCS12_item_decrypt_d2i() 146 ret = ASN1_item_d2i(NULL, &p, outlen, it); in PKCS12_item_decrypt_d2i() 147 if (zbuf) OPENSSL_cleanse(out, outlen); in PKCS12_item_decrypt_d2i()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/printable_string/ |
D | der_length_printable_string.c | 128 …_length_printable_string(const unsigned char *octets, unsigned long noctets, unsigned long *outlen) in der_length_printable_string() argument 132 LTC_ARGCHK(outlen != NULL); in der_length_printable_string() 144 *outlen = 2 + noctets; in der_length_printable_string() 147 *outlen = 3 + noctets; in der_length_printable_string() 150 *outlen = 4 + noctets; in der_length_printable_string() 153 *outlen = 5 + noctets; in der_length_printable_string()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/ia5/ |
D | der_length_ia5_string.c | 156 int der_length_ia5_string(const unsigned char *octets, unsigned long noctets, unsigned long *outlen) in der_length_ia5_string() argument 160 LTC_ARGCHK(outlen != NULL); in der_length_ia5_string() 172 *outlen = 2 + noctets; in der_length_ia5_string() 175 *outlen = 3 + noctets; in der_length_ia5_string() 178 *outlen = 4 + noctets; in der_length_ia5_string() 181 *outlen = 5 + noctets; in der_length_ia5_string()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/boolean/ |
D | der_encode_boolean.c | 29 unsigned char *out, unsigned long *outlen) in der_encode_boolean() argument 31 LTC_ARGCHK(outlen != NULL); in der_encode_boolean() 34 if (*outlen < 3) { in der_encode_boolean() 35 *outlen = 3; in der_encode_boolean() 39 *outlen = 3; in der_encode_boolean()
|
/external/dropbear/libtomcrypt/src/prngs/ |
D | sober128.c | 289 unsigned long sober128_read(unsigned char *out, unsigned long outlen, prng_state *prng) in sober128_read() argument 298 zeromem(out, outlen); in sober128_read() 303 tlen = outlen; in sober128_read() 306 while (c->nbuf != 0 && outlen != 0) { in sober128_read() 310 --outlen; in sober128_read() 315 while (outlen >= N*4) { in sober128_read() 334 outlen -= 4*N; in sober128_read() 339 while (4 <= outlen) { in sober128_read() 344 outlen -= 4; in sober128_read() 348 if (outlen != 0) { in sober128_read() [all …]
|
D | sprng.c | 77 unsigned long sprng_read(unsigned char *out, unsigned long outlen, prng_state *prng) in sprng_read() argument 80 return rng_get_bytes(out, outlen, NULL); in sprng_read() 100 int sprng_export(unsigned char *out, unsigned long *outlen, prng_state *prng) in sprng_export() argument 102 LTC_ARGCHK(outlen != NULL); in sprng_export() 104 *outlen = 0; in sprng_export()
|
D | rc4.c | 125 unsigned long rc4_read(unsigned char *out, unsigned long outlen, prng_state *prng) in rc4_read() argument 134 zeromem(out, outlen); in rc4_read() 137 n = outlen; in rc4_read() 141 while (outlen--) { in rc4_read() 171 int rc4_export(unsigned char *out, unsigned long *outlen, prng_state *prng) in rc4_export() argument 173 LTC_ARGCHK(outlen != NULL); in rc4_export() 177 if (*outlen < 32) { in rc4_export() 178 *outlen = 32; in rc4_export() 185 *outlen = 32; in rc4_export()
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/ |
D | der_length_bit_string.c | 25 int der_length_bit_string(unsigned long nbits, unsigned long *outlen) in der_length_bit_string() argument 28 LTC_ARGCHK(outlen != NULL); in der_length_bit_string() 35 *outlen = 2 + nbytes; in der_length_bit_string() 38 *outlen = 3 + nbytes; in der_length_bit_string() 41 *outlen = 4 + nbytes; in der_length_bit_string()
|
/external/dropbear/libtomcrypt/src/pk/katja/ |
D | katja_encrypt_key.c | 35 unsigned char *out, unsigned long *outlen, in katja_encrypt_key() argument 44 LTC_ARGCHK(outlen != NULL); in katja_encrypt_key() 66 if (modulus_bytelen > *outlen) { in katja_encrypt_key() 67 *outlen = modulus_bytelen; in katja_encrypt_key() 72 x = *outlen; in katja_encrypt_key() 80 return katja_exptmod(out, x, out, outlen, PK_PUBLIC, key); in katja_encrypt_key()
|