Searched refs:outlen (Results 1 - 25 of 224) sorted by relevance

123456789

/external/dropbear/libtomcrypt/src/pk/asn1/der/boolean/
H A Dder_length_boolean.c21 @param outlen [out] The length of the DER encoding
24 int der_length_boolean(unsigned long *outlen) argument
26 LTC_ARGCHK(outlen != NULL);
27 *outlen = 3;
H A Dder_encode_boolean.c25 @param outlen [in/out] The max size and resulting size of the DER BOOLEAN
29 unsigned char *out, unsigned long *outlen)
31 LTC_ARGCHK(outlen != NULL);
34 if (*outlen < 3) {
35 *outlen = 3;
39 *outlen = 3;
28 der_encode_boolean(int in, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/pk/asn1/der/utctime/
H A Dder_length_utctime.c23 @param outlen [out] The length of the DER encoding
26 int der_length_utctime(ltc_utctime *utctime, unsigned long *outlen) argument
28 LTC_ARGCHK(outlen != NULL);
33 *outlen = 2 + 13;
36 *outlen = 2 + 17;
/external/dropbear/libtomcrypt/src/pk/asn1/der/octet/
H A Dder_length_octet_string.c22 @param outlen [out] The length of the DER encoding for the given string
25 int der_length_octet_string(unsigned long noctets, unsigned long *outlen) argument
27 LTC_ARGCHK(outlen != NULL);
31 *outlen = 2 + noctets;
34 *outlen = 3 + noctets;
37 *outlen = 4 + noctets;
40 *outlen = 5 + noctets;
H A Dder_decode_octet_string.c26 @param outlen [in/out] The number of octets stored
30 unsigned char *out, unsigned long *outlen)
36 LTC_ARGCHK(outlen != NULL);
68 if (len > *outlen) {
69 *outlen = len;
82 *outlen = y;
29 der_decode_octet_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/pk/asn1/der/bit/
H A Dder_length_bit_string.c22 @param outlen [out] The length of the DER encoding for the given string
25 int der_length_bit_string(unsigned long nbits, unsigned long *outlen) argument
28 LTC_ARGCHK(outlen != NULL);
35 *outlen = 2 + nbytes;
38 *outlen = 3 + nbytes;
41 *outlen = 4 + nbytes;
H A Dder_decode_bit_string.c26 @param outlen [in/out] The number of bits stored
30 unsigned char *out, unsigned long *outlen)
36 LTC_ARGCHK(outlen != NULL);
80 if (blen > *outlen) {
81 *outlen = blen;
94 *outlen = blen;
29 der_decode_bit_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtommath/
H A Dbn_mp_to_signed_bin_n.c19 int mp_to_signed_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen) argument
21 if (*outlen < (unsigned long)mp_signed_bin_size(a)) {
24 *outlen = mp_signed_bin_size(a);
H A Dbn_mp_to_unsigned_bin_n.c19 int mp_to_unsigned_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen) argument
21 if (*outlen < (unsigned long)mp_unsigned_bin_size(a)) {
24 *outlen = mp_unsigned_bin_size(a);
/external/dropbear/libtomcrypt/src/misc/
H A Dzeromem.c21 @param outlen The length of the area to zero (octets)
23 void zeromem(void *out, size_t outlen) argument
27 while (outlen-- > 0) {
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/
H A Dder_length_utf8_string.c41 @param outlen [out] The length of the DER encoding for the given string
44 int der_length_utf8_string(const wchar_t *in, unsigned long noctets, unsigned long *outlen) argument
49 LTC_ARGCHK(outlen != NULL);
61 *outlen = 2 + len;
64 *outlen = 3 + len;
67 *outlen = 4 + len;
70 *outlen = 5 + len;
/external/dropbear/libtomcrypt/src/pk/asn1/der/short_integer/
H A Dder_length_short_integer.c23 @param outlen [out] The length of the DER encoding for the given integer
26 int der_length_short_integer(unsigned long num, unsigned long *outlen) argument
30 LTC_ARGCHK(outlen != NULL);
61 *outlen = len;
H A Dder_encode_short_integer.c25 @param outlen [in/out] The max size and resulting size of the DER encoded integers
28 int der_encode_short_integer(unsigned long num, unsigned char *out, unsigned long *outlen) argument
34 LTC_ARGCHK(outlen != NULL);
44 if (*outlen < len) {
45 *outlen = len;
88 *outlen = x;
/external/protobuf/src/google/protobuf/testing/
H A Dzcgzip.cc60 int outlen; local
63 ok = out.Next(&outptr, &outlen);
67 } while (outlen <= 0);
68 readlen = read(STDIN_FILENO, outptr, outlen);
70 out.BackUp(outlen);
73 if (readlen < outlen) {
74 out.BackUp(outlen - readlen);
/external/dropbear/libtomcrypt/src/pk/katja/
H A Dkatja_encrypt_key.c25 @param outlen [in/out] The max size and resulting size of the ciphertext
35 unsigned char *out, unsigned long *outlen,
44 LTC_ARGCHK(outlen != NULL);
64 /* outlen must be at least the size of the modulus */
66 if (modulus_bytelen > *outlen) {
67 *outlen = modulus_bytelen;
72 x = *outlen;
80 return katja_exptmod(out, x, out, outlen, PK_PUBLIC, key);
34 katja_encrypt_key(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, const unsigned char *lparam, unsigned long lparamlen, prng_state *prng, int prng_idx, int hash_idx, katja_key *key) argument
/external/dropbear/libtomcrypt/src/hashes/helper/
H A Dhash_file.c22 @param outlen [in/out] The max size and resulting size of the message digest
25 int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *outlen) argument
34 LTC_ARGCHK(outlen != NULL);
45 err = hash_filehandle(hash, in, out, outlen);
H A Dhash_filehandle.c23 @param outlen [in/out] The max size and resulting size of the digest
26 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen) argument
37 LTC_ARGCHK(outlen != NULL);
44 if (*outlen < hash_descriptor[hash].hashsize) {
45 *outlen = hash_descriptor[hash].hashsize;
52 *outlen = hash_descriptor[hash].hashsize;
H A Dhash_memory.c24 @param outlen [in/out] Max size and resulting size of the digest
27 int hash_memory(int hash, const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument
34 LTC_ARGCHK(outlen != NULL);
40 if (*outlen < hash_descriptor[hash].hashsize) {
41 *outlen = hash_descriptor[hash].hashsize;
57 *outlen = hash_descriptor[hash].hashsize;
/external/openssl/crypto/ecdh/
H A Dech_key.c75 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, argument
77 void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
82 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_misc.h4 unsigned char *out, unsigned long *outlen);
7 unsigned char *out, unsigned long *outlen);
H A Dtomcrypt_pk.h42 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, in
[all...]
/external/dropbear/libtomcrypt/src/pk/asn1/der/sequence/
H A Dder_encode_sequence_ex.c27 @param outlen [in/out] The size of the output
32 unsigned char *out, unsigned long *outlen, int type_of)
40 LTC_ARGCHK(outlen != NULL);
162 if (*outlen < y) {
163 *outlen = y;
189 *outlen -= x;
201 z = *outlen;
206 *outlen -= z;
210 z = *outlen;
215 *outlen
31 der_encode_sequence_ex(ltc_asn1_list *list, unsigned long inlen, unsigned char *out, unsigned long *outlen, int type_of) argument
[all...]
/external/dropbear/libtomcrypt/src/pk/asn1/der/ia5/
H A Dder_decode_ia5_string.c26 @param outlen [in/out] The number of octets stored
30 unsigned char *out, unsigned long *outlen)
37 LTC_ARGCHK(outlen != NULL);
69 if (len > *outlen) {
70 *outlen = len;
87 *outlen = y;
29 der_decode_ia5_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/pk/asn1/der/printable_string/
H A Dder_decode_printable_string.c26 @param outlen [in/out] The number of octets stored
30 unsigned char *out, unsigned long *outlen)
37 LTC_ARGCHK(outlen != NULL);
69 if (len > *outlen) {
70 *outlen = len;
87 *outlen = y;
29 der_decode_printable_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/pk/dsa/
H A Ddsa_shared_secret.c26 @param outlen [in/out] The max size and resulting size of the shared secret
31 unsigned char *out, unsigned long *outlen)
40 LTC_ARGCHK(outlen != NULL);
53 if (*outlen < x) {
54 *outlen = x;
62 *outlen = x;
29 dsa_shared_secret(void *private_key, void *base, dsa_key *public_key, unsigned char *out, unsigned long *outlen) argument

Completed in 1031 milliseconds

123456789