Searched defs:outlen (Results 1 - 25 of 168) sorted by relevance

1234567

/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/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/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;
/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;
/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/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/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;
/external/dropbear/libtomcrypt/src/mac/f9/
H A Df9_done.c23 @param outlen [in/out] Destination size and final tag size
26 int f9_done(f9_state *f9, unsigned char *out, unsigned long *outlen) argument
61 for (x = 0; x < f9->blocksize && (unsigned long)x < *outlen; x++) {
64 *outlen = x;
H A Df9_file.c27 @param outlen [in/out] The max size and resulting size of the authentication tag
33 unsigned char *out, unsigned long *outlen)
46 LTC_ARGCHK(outlen != NULL);
67 if ((err = f9_done(&f9, out, outlen)) != CRYPT_OK) {
30 f9_file(int cipher, const unsigned char *key, unsigned long keylen, const char *filename, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/mac/hmac/
H A Dhmac_file.c27 @param outlen [in/out] The max size and resulting size of the authentication tag
32 unsigned char *out, unsigned long *outlen)
46 LTC_ARGCHK(outlen != NULL);
76 if ((err = hmac_done(&hmac, out, outlen)) != CRYPT_OK) {
30 hmac_file(int hash, const char *fname, const unsigned char *key, unsigned long keylen, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/mac/omac/
H A Domac_done.c24 @param outlen [in/out] The max size and resulting size of the authentication tag
27 int omac_done(omac_state *omac, unsigned char *out, unsigned long *outlen) argument
34 LTC_ARGCHK(outlen != NULL);
70 for (x = 0; x < (unsigned)omac->blklen && x < *outlen; x++) {
73 *outlen = x;
H A Domac_file.c27 @param outlen [in/out] The max size and resulting size of the authentication tag
33 unsigned char *out, unsigned long *outlen)
46 LTC_ARGCHK(outlen != NULL);
67 if ((err = omac_done(&omac, out, outlen)) != CRYPT_OK) {
30 omac_file(int cipher, const unsigned char *key, unsigned long keylen, const char *filename, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/mac/pmac/
H A Dpmac_done.c20 int pmac_done(pmac_state *state, unsigned char *out, unsigned long *outlen) argument
58 for (x = 0; x < state->block_len && x < (int)*outlen; x++) {
61 *outlen = x;
H A Dpmac_file.c27 @param outlen [in/out] Max size and resulting size of the authentication tag
33 unsigned char *out, unsigned long *outlen)
47 LTC_ARGCHK(outlen != NULL);
68 if ((err = pmac_done(&pmac, out, outlen)) != CRYPT_OK) {
30 pmac_file(int cipher, const unsigned char *key, unsigned long keylen, const char *filename, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/mac/xcbc/
H A Dxcbc_done.c23 @param outlen [in/out] Destination size and final tag size
26 int xcbc_done(xcbc_state *xcbc, unsigned char *out, unsigned long *outlen) argument
61 for (x = 0; x < xcbc->blocksize && (unsigned long)x < *outlen; x++) {
64 *outlen = x;
H A Dxcbc_file.c27 @param outlen [in/out] The max size and resulting size of the authentication tag
33 unsigned char *out, unsigned long *outlen)
46 LTC_ARGCHK(outlen != NULL);
67 if ((err = xcbc_done(&xcbc, out, outlen)) != CRYPT_OK) {
30 xcbc_file(int cipher, const unsigned char *key, unsigned long keylen, const char *filename, unsigned char *out, unsigned long *outlen) argument
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
H A Dder_length_integer.c23 @param outlen [out] The length of the DER encoding for the given integer
26 int der_length_integer(void *num, unsigned long *outlen) argument
32 LTC_ARGCHK(outlen != NULL);
74 *outlen = 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;
/external/dropbear/libtomcrypt/src/pk/dsa/
H A Ddsa_export.c23 @param outlen [in/out] The max size and resulting size of the packet
28 int dsa_export(unsigned char *out, unsigned long *outlen, int type, dsa_key *key) argument
33 LTC_ARGCHK(outlen != NULL);
48 return der_encode_sequence_multi(out, outlen,
57 return der_encode_sequence_multi(out, outlen,
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_ansi_x963_export.c29 @param outlen [in/out] Length of destination and final output size
32 int ecc_ansi_x963_export(ecc_key *key, unsigned char *out, unsigned long *outlen) argument
39 LTC_ARGCHK(outlen != NULL);
46 if (*outlen < (1 + 2*numlen)) {
47 *outlen = 1 + 2*numlen;
64 *outlen = 1 + 2*numlen;
/external/dropbear/libtomcrypt/src/pk/katja/
H A Dkatja_export.c23 @param outlen [in/out] The max size and resulting size of the packet
28 int katja_export(unsigned char *out, unsigned long *outlen, int type, katja_key *key) argument
34 LTC_ARGCHK(outlen != NULL);
47 if ((err = der_encode_sequence_multi(out, outlen,
65 return der_encode_sequence_multi(out, outlen,
/external/dropbear/libtomcrypt/src/pk/rsa/
H A Drsa_export.c23 @param outlen [in/out] The max size and resulting size of the packet
28 int rsa_export(unsigned char *out, unsigned long *outlen, int type, rsa_key *key) argument
32 LTC_ARGCHK(outlen != NULL);
45 return der_encode_sequence_multi(out, outlen,
58 return der_encode_sequence_multi(out, outlen,

Completed in 179 milliseconds

1234567