From f55039bfebc0930a0589d26c1fa56dd7c3dafaa5 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 31 May 2018 14:43:40 +0200 Subject: [PATCH 1/5] add tomcrypt_private.h --- src/headers/tomcrypt_hash.h | 40 ---- src/headers/tomcrypt_mac.h | 7 +- src/headers/tomcrypt_math.h | 71 ------- src/headers/tomcrypt_misc.h | 8 - src/headers/tomcrypt_pk.h | 163 +--------------- src/headers/tomcrypt_private.h | 334 +++++++++++++++++++++++++++++++++ src/headers/tomcrypt_prng.h | 25 --- 7 files changed, 336 insertions(+), 312 deletions(-) create mode 100644 src/headers/tomcrypt_private.h diff --git a/src/headers/tomcrypt_hash.h b/src/headers/tomcrypt_hash.h index ea2077ec6..dbb6b9a10 100644 --- a/src/headers/tomcrypt_hash.h +++ b/src/headers/tomcrypt_hash.h @@ -507,46 +507,6 @@ int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outle int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *outlen); #endif -/* a simple macro for making hash "process" functions */ -#define HASH_PROCESS(func_name, compress_name, state_var, block_size) \ -int func_name (hash_state * md, const unsigned char *in, unsigned long inlen) \ -{ \ - unsigned long n; \ - int err; \ - LTC_ARGCHK(md != NULL); \ - LTC_ARGCHK(in != NULL); \ - if (md-> state_var .curlen > sizeof(md-> state_var .buf)) { \ - return CRYPT_INVALID_ARG; \ - } \ - if ((md-> state_var .length + inlen) < md-> state_var .length) { \ - return CRYPT_HASH_OVERFLOW; \ - } \ - while (inlen > 0) { \ - if (md-> state_var .curlen == 0 && inlen >= block_size) { \ - if ((err = compress_name (md, in)) != CRYPT_OK) { \ - return err; \ - } \ - md-> state_var .length += block_size * 8; \ - in += block_size; \ - inlen -= block_size; \ - } else { \ - n = MIN(inlen, (block_size - md-> state_var .curlen)); \ - XMEMCPY(md-> state_var .buf + md-> state_var.curlen, in, (size_t)n); \ - md-> state_var .curlen += n; \ - in += n; \ - inlen -= n; \ - if (md-> state_var .curlen == block_size) { \ - if ((err = compress_name (md, md-> state_var .buf)) != CRYPT_OK) { \ - return err; \ - } \ - md-> state_var .length += 8*block_size; \ - md-> state_var .curlen = 0; \ - } \ - } \ - } \ - return CRYPT_OK; \ -} - /* ref: $Format:%D$ */ /* git commit: $Format:%H$ */ /* commit time: $Format:%ai$ */ diff --git a/src/headers/tomcrypt_mac.h b/src/headers/tomcrypt_mac.h index ebb84103b..e4fdf14a4 100644 --- a/src/headers/tomcrypt_mac.h +++ b/src/headers/tomcrypt_mac.h @@ -146,6 +146,7 @@ int blake2bmac_file(const char *fname, const unsigned char *key, unsigned long k int blake2bmac_test(void); #endif /* LTC_BLAKE2BMAC */ + #ifdef LTC_PELICAN typedef struct pelican_state @@ -391,12 +392,6 @@ int ocb3_decrypt_verify_memory(int cipher, int ocb3_test(void); -#ifdef LTC_SOURCE -/* internal helper functions */ -int ocb3_int_ntz(unsigned long x); -void ocb3_int_xor_blocks(unsigned char *out, const unsigned char *block_a, const unsigned char *block_b, unsigned long block_len); -#endif /* LTC_SOURCE */ - #endif /* LTC_OCB3_MODE */ #ifdef LTC_CCM_MODE diff --git a/src/headers/tomcrypt_math.h b/src/headers/tomcrypt_math.h index 79f6d21c3..067833924 100644 --- a/src/headers/tomcrypt_math.h +++ b/src/headers/tomcrypt_math.h @@ -524,77 +524,6 @@ extern const ltc_math_descriptor tfm_desc; extern const ltc_math_descriptor gmp_desc; #endif -#if !defined(DESC_DEF_ONLY) && defined(LTC_SOURCE) - -#define MP_DIGIT_BIT ltc_mp.bits_per_digit - -/* some handy macros */ -#define mp_init(a) ltc_mp.init(a) -#define mp_init_multi ltc_init_multi -#define mp_clear(a) ltc_mp.deinit(a) -#define mp_clear_multi ltc_deinit_multi -#define mp_cleanup_multi ltc_cleanup_multi -#define mp_init_copy(a, b) ltc_mp.init_copy(a, b) - -#define mp_neg(a, b) ltc_mp.neg(a, b) -#define mp_copy(a, b) ltc_mp.copy(a, b) - -#define mp_set(a, b) ltc_mp.set_int(a, b) -#define mp_set_int(a, b) ltc_mp.set_int(a, b) -#define mp_get_int(a) ltc_mp.get_int(a) -#define mp_get_digit(a, n) ltc_mp.get_digit(a, n) -#define mp_get_digit_count(a) ltc_mp.get_digit_count(a) -#define mp_cmp(a, b) ltc_mp.compare(a, b) -#define mp_cmp_d(a, b) ltc_mp.compare_d(a, b) -#define mp_count_bits(a) ltc_mp.count_bits(a) -#define mp_cnt_lsb(a) ltc_mp.count_lsb_bits(a) -#define mp_2expt(a, b) ltc_mp.twoexpt(a, b) - -#define mp_read_radix(a, b, c) ltc_mp.read_radix(a, b, c) -#define mp_toradix(a, b, c) ltc_mp.write_radix(a, b, c) -#define mp_unsigned_bin_size(a) ltc_mp.unsigned_size(a) -#define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b) -#define mp_read_unsigned_bin(a, b, c) ltc_mp.unsigned_read(a, b, c) - -#define mp_add(a, b, c) ltc_mp.add(a, b, c) -#define mp_add_d(a, b, c) ltc_mp.addi(a, b, c) -#define mp_sub(a, b, c) ltc_mp.sub(a, b, c) -#define mp_sub_d(a, b, c) ltc_mp.subi(a, b, c) -#define mp_mul(a, b, c) ltc_mp.mul(a, b, c) -#define mp_mul_d(a, b, c) ltc_mp.muli(a, b, c) -#define mp_sqr(a, b) ltc_mp.sqr(a, b) -#define mp_sqrtmod_prime(a, b, c) ltc_mp.sqrtmod_prime(a, b, c) -#define mp_div(a, b, c, d) ltc_mp.mpdiv(a, b, c, d) -#define mp_div_2(a, b) ltc_mp.div_2(a, b) -#define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c) -#define mp_mod_d(a, b, c) ltc_mp.modi(a, b, c) -#define mp_gcd(a, b, c) ltc_mp.gcd(a, b, c) -#define mp_lcm(a, b, c) ltc_mp.lcm(a, b, c) - -#define mp_addmod(a, b, c, d) ltc_mp.addmod(a, b, c, d) -#define mp_submod(a, b, c, d) ltc_mp.submod(a, b, c, d) -#define mp_mulmod(a, b, c, d) ltc_mp.mulmod(a, b, c, d) -#define mp_sqrmod(a, b, c) ltc_mp.sqrmod(a, b, c) -#define mp_invmod(a, b, c) ltc_mp.invmod(a, b, c) - -#define mp_montgomery_setup(a, b) ltc_mp.montgomery_setup(a, b) -#define mp_montgomery_normalization(a, b) ltc_mp.montgomery_normalization(a, b) -#define mp_montgomery_reduce(a, b, c) ltc_mp.montgomery_reduce(a, b, c) -#define mp_montgomery_free(a) ltc_mp.montgomery_deinit(a) - -#define mp_exptmod(a,b,c,d) ltc_mp.exptmod(a,b,c,d) -#define mp_prime_is_prime(a, b, c) ltc_mp.isprime(a, b, c) - -#define mp_iszero(a) (mp_cmp_d(a, 0) == LTC_MP_EQ ? LTC_MP_YES : LTC_MP_NO) -#define mp_isodd(a) (mp_get_digit_count(a) > 0 ? (mp_get_digit(a, 0) & 1 ? LTC_MP_YES : LTC_MP_NO) : LTC_MP_NO) -#define mp_exch(a, b) do { void *ABC__tmp = a; a = b; b = ABC__tmp; } while(0) - -#define mp_tohex(a, b) mp_toradix(a, b, 16) - -#define mp_rand(a, b) ltc_mp.rand(a, b) - -#endif - /* ref: $Format:%D$ */ /* git commit: $Format:%H$ */ /* commit time: $Format:%ai$ */ diff --git a/src/headers/tomcrypt_misc.h b/src/headers/tomcrypt_misc.h index a022b2806..a7edc7126 100644 --- a/src/headers/tomcrypt_misc.h +++ b/src/headers/tomcrypt_misc.h @@ -85,9 +85,6 @@ int hkdf(int hash_idx, /* ---- MEM routines ---- */ int mem_neq(const void *a, const void *b, size_t len); void zeromem(volatile void *dst, size_t len); -#ifdef LTC_SOURCE -void copy_or_zeromem(const unsigned char* src, unsigned char* dest, unsigned long len, int coz); -#endif void burn_stack(unsigned long len); const char *error_to_string(int err); @@ -155,11 +152,6 @@ enum padding_type { int padding_pad(unsigned char *data, unsigned long length, unsigned long* padded_length, unsigned long mode); int padding_depad(const unsigned char *data, unsigned long *length, unsigned long mode); - -#ifdef LTC_SOURCE -/* internal helper functions */ -#define LTC_PAD_MASK (0xF000U) -#endif #endif /* LTC_PADDING */ int compare_testvector(const void* is, const unsigned long is_len, const void* should, const unsigned long should_len, const char* what, int which); diff --git a/src/headers/tomcrypt_pk.h b/src/headers/tomcrypt_pk.h index ff2857a32..13d2b978b 100644 --- a/src/headers/tomcrypt_pk.h +++ b/src/headers/tomcrypt_pk.h @@ -25,27 +25,6 @@ enum public_key_type { int rand_prime(void *N, long len, prng_state *prng, int wprng); -#ifdef LTC_SOURCE -/* internal helper functions */ -int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng); -int rand_bn_upto(void *N, void *limit, prng_state *prng, int wprng); - -enum public_key_algorithms { - PKA_RSA, - PKA_DSA -}; - -typedef struct Oid { - unsigned long OID[16]; - /** Number of OID digits in use */ - unsigned long OIDlen; -} oid_st; - -int pk_get_oid(int pk, oid_st *st); -int pk_oid_str_to_num(const char *OID, unsigned long *oid, unsigned long *oidlen); -int pk_oid_num_to_str(const unsigned long *oid, unsigned long oidlen, char *OID, unsigned long *outlen); -#endif /* LTC_SOURCE */ - /* ---- RSA ---- */ #ifdef LTC_MRSA @@ -233,19 +212,6 @@ int dh_shared_secret(const dh_key *private_key, const dh_key *public_key, void dh_free(dh_key *key); int dh_export_key(void *out, unsigned long *outlen, int type, const dh_key *key); - -#ifdef LTC_SOURCE -typedef struct { - int size; - const char *name, *base, *prime; -} ltc_dh_set_type; - -extern const ltc_dh_set_type ltc_dh_sets[]; - -/* internal helper functions */ -int dh_check_pubkey(const dh_key *key); -#endif - #endif /* LTC_MDH */ @@ -387,76 +353,6 @@ int ecc_verify_hash(const unsigned char *sig, unsigned long siglen, const unsigned char *hash, unsigned long hashlen, int *stat, const ecc_key *key); - -#ifdef LTC_SOURCE -/* INTERNAL ONLY - it should be later moved to src/headers/tomcrypt_internal.h */ - -int ecc_set_dp_from_mpis(void *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key); -int ecc_copy_dp(const ecc_key *srckey, ecc_key *key); -int ecc_set_dp_by_size(int size, ecc_key *key); - -/* low level functions */ -ecc_point *ltc_ecc_new_point(void); -void ltc_ecc_del_point(ecc_point *p); -int ltc_ecc_set_point_xyz(ltc_mp_digit x, ltc_mp_digit y, ltc_mp_digit z, ecc_point *p); -int ltc_ecc_copy_point(const ecc_point *src, ecc_point *dst); -int ltc_ecc_is_point(const ltc_ecc_dp *dp, void *x, void *y); -int ltc_ecc_is_point_at_infinity(const ecc_point *P, void *modulus, int *retval); -int ltc_ecc_import_point(const unsigned char *in, unsigned long inlen, void *prime, void *a, void *b, void *x, void *y); -int ltc_ecc_export_point(unsigned char *out, unsigned long *outlen, void *x, void *y, unsigned long size, int compressed); -int ltc_ecc_verify_key(const ecc_key *key); - -/* point ops (mp == montgomery digit) */ -#if !defined(LTC_MECC_ACCEL) || defined(LTM_DESC) || defined(GMP_DESC) -/* R = 2P */ -int ltc_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, void *mp); - -/* R = P + Q */ -int ltc_ecc_projective_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, void *modulus, void *mp); -#endif - -#if defined(LTC_MECC_FP) -/* optimized point multiplication using fixed point cache (HAC algorithm 14.117) */ -int ltc_ecc_fp_mulmod(void *k, ecc_point *G, ecc_point *R, void *a, void *modulus, int map); - -/* functions for saving/loading/freeing/adding to fixed point cache */ -int ltc_ecc_fp_save_state(unsigned char **out, unsigned long *outlen); -int ltc_ecc_fp_restore_state(unsigned char *in, unsigned long inlen); -void ltc_ecc_fp_free(void); -int ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock); - -/* lock/unlock all points currently in fixed point cache */ -void ltc_ecc_fp_tablelock(int lock); -#endif - -/* R = kG */ -int ltc_ecc_mulmod(void *k, const ecc_point *G, ecc_point *R, void *a, void *modulus, int map); - -#ifdef LTC_ECC_SHAMIR -/* kA*A + kB*B = C */ -int ltc_ecc_mul2add(const ecc_point *A, void *kA, - const ecc_point *B, void *kB, - ecc_point *C, - void *ma, - void *modulus); - -#ifdef LTC_MECC_FP -/* Shamir's trick with optimized point multiplication using fixed point cache */ -int ltc_ecc_fp_mul2add(const ecc_point *A, void *kA, - const ecc_point *B, void *kB, - ecc_point *C, - void *ma, - void *modulus); -#endif - -#endif - - -/* map P to affine from projective */ -int ltc_ecc_map(ecc_point *P, void *modulus, void *mp); - -#endif /* LTC_SOURCE */ - #endif #ifdef LTC_MDSA @@ -533,16 +429,10 @@ int dsa_decrypt_key(const unsigned char *in, unsigned long inlen, int dsa_import(const unsigned char *in, unsigned long inlen, dsa_key *key); int dsa_export(unsigned char *out, unsigned long *outlen, int type, const dsa_key *key); int dsa_verify_key(const dsa_key *key, int *stat); -#ifdef LTC_SOURCE -/* internal helper functions */ -int dsa_int_validate_xy(const dsa_key *key, int *stat); -int dsa_int_validate_pqg(const dsa_key *key, int *stat); -int dsa_int_validate_primes(const dsa_key *key, int *stat); -#endif int dsa_shared_secret(void *private_key, void *base, const dsa_key *public_key, unsigned char *out, unsigned long *outlen); -#endif +#endif /* LTC_MDSA */ #ifdef LTC_DER /* DER handling */ @@ -705,30 +595,6 @@ int der_length_custom_type(const ltc_asn1_list *root, unsigned long *outlen, unsigned long *payloadlen); -#ifdef LTC_SOURCE -/* internal helper functions */ -int der_decode_custom_type_ex(const unsigned char *in, unsigned long inlen, - ltc_asn1_list *root, - ltc_asn1_list *list, unsigned long outlen, unsigned int flags); - -int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen); -int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, ltc_asn1_list *id); -int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen); - -int der_encode_asn1_length(unsigned long len, unsigned char* out, unsigned long* outlen); -int der_decode_asn1_length(const unsigned char* len, unsigned long* lenlen, unsigned long* outlen); -int der_length_asn1_length(unsigned long len, unsigned long *outlen); - -int der_length_sequence_ex(const ltc_asn1_list *list, unsigned long inlen, - unsigned long *outlen, unsigned long *payloadlen); - -extern const ltc_asn1_type der_asn1_tag_to_type_map[]; -extern const unsigned long der_asn1_tag_to_type_map_sz; - -extern const int der_asn1_type_to_identifier_map[]; -extern const unsigned long der_asn1_type_to_identifier_map_sz; -#endif /* LTC_SOURCE */ - /* SET */ #define der_decode_set(in, inlen, list, outlen) der_decode_sequence_ex(in, inlen, list, outlen, LTC_DER_SEQ_SET) #define der_length_set der_length_sequence @@ -741,10 +607,6 @@ int der_encode_setof(const ltc_asn1_list *list, unsigned long inlen, /* VA list handy helpers with triplets of */ int der_encode_sequence_multi(unsigned char *out, unsigned long *outlen, ...); int der_decode_sequence_multi(const unsigned char *in, unsigned long inlen, ...); -#ifdef LTC_SOURCE -/* internal helper functions */ -int der_decode_sequence_multi_ex(const unsigned char *in, unsigned long inlen, unsigned int flags, ...); -#endif /* LTC_SOURCE */ /* FLEXI DECODER handle unknown list decoder */ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out); @@ -809,13 +671,6 @@ int der_decode_teletex_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen); int der_length_teletex_string(const unsigned char *octets, unsigned long noctets, unsigned long *outlen); -#ifdef LTC_SOURCE -/* internal helper functions */ -int der_teletex_char_encode(int c); -int der_teletex_value_decode(int v); -#endif /* LTC_SOURCE */ - - /* PRINTABLE STRING */ int der_encode_printable_string(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen); @@ -846,10 +701,6 @@ int der_encode_utf8_string(const wchar_t *in, unsigned long inlen, int der_decode_utf8_string(const unsigned char *in, unsigned long inlen, wchar_t *out, unsigned long *outlen); unsigned long der_utf8_charsize(const wchar_t c); -#ifdef LTC_SOURCE -/* internal helper functions */ -int der_utf8_valid_char(const wchar_t c); -#endif /* LTC_SOURCE */ int der_length_utf8_string(const wchar_t *in, unsigned long noctets, unsigned long *outlen); @@ -900,18 +751,6 @@ int der_decode_generalizedtime(const unsigned char *in, unsigned long *inlen, int der_length_generalizedtime(const ltc_generalizedtime *gtime, unsigned long *outlen); -#ifdef LTC_SOURCE -/* internal helper functions */ -/* SUBJECT PUBLIC KEY INFO */ -int x509_encode_subject_public_key_info(unsigned char *out, unsigned long *outlen, - unsigned int algorithm, const void* public_key, unsigned long public_key_len, - ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long parameters_len); - -int x509_decode_subject_public_key_info(const unsigned char *in, unsigned long inlen, - unsigned int algorithm, void* public_key, unsigned long* public_key_len, - ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long *parameters_len); -#endif /* LTC_SOURCE */ - #endif /* ref: $Format:%D$ */ diff --git a/src/headers/tomcrypt_private.h b/src/headers/tomcrypt_private.h new file mode 100644 index 000000000..865b7ad2b --- /dev/null +++ b/src/headers/tomcrypt_private.h @@ -0,0 +1,334 @@ +/* LibTomCrypt, modular cryptographic library -- Tom St Denis + * + * LibTomCrypt is a library that provides various cryptographic + * algorithms in a highly modular and flexible manner. + * + * The library is free for all purposes without any express + * guarantee it works. + */ + +#include "tomcrypt.h" + +/* + * Internal Macros + */ + +#define LTC_PAD_MASK (0xF000U) + +/* + * Internal Enums + */ + +enum public_key_algorithms { + PKA_RSA, + PKA_DSA, + PKA_EC, + PKA_EC_PRIMEF +}; + +/* + * Internal Types + */ + +typedef struct Oid { + unsigned long OID[16]; + /** Number of OID digits in use */ + unsigned long OIDlen; +} oid_st; + +typedef struct { + int size; + const char *name, *base, *prime; +} ltc_dh_set_type; + + +/* + * Internal functions + */ + +/* tomcrypt_hash.h */ + +/* a simple macro for making hash "process" functions */ +#define HASH_PROCESS(func_name, compress_name, state_var, block_size) \ +int func_name (hash_state * md, const unsigned char *in, unsigned long inlen) \ +{ \ + unsigned long n; \ + int err; \ + LTC_ARGCHK(md != NULL); \ + LTC_ARGCHK(in != NULL); \ + if (md-> state_var .curlen > sizeof(md-> state_var .buf)) { \ + return CRYPT_INVALID_ARG; \ + } \ + if ((md-> state_var .length + inlen) < md-> state_var .length) { \ + return CRYPT_HASH_OVERFLOW; \ + } \ + while (inlen > 0) { \ + if (md-> state_var .curlen == 0 && inlen >= block_size) { \ + if ((err = compress_name (md, in)) != CRYPT_OK) { \ + return err; \ + } \ + md-> state_var .length += block_size * 8; \ + in += block_size; \ + inlen -= block_size; \ + } else { \ + n = MIN(inlen, (block_size - md-> state_var .curlen)); \ + XMEMCPY(md-> state_var .buf + md-> state_var.curlen, in, (size_t)n); \ + md-> state_var .curlen += n; \ + in += n; \ + inlen -= n; \ + if (md-> state_var .curlen == block_size) { \ + if ((err = compress_name (md, md-> state_var .buf)) != CRYPT_OK) { \ + return err; \ + } \ + md-> state_var .length += 8*block_size; \ + md-> state_var .curlen = 0; \ + } \ + } \ + } \ + return CRYPT_OK; \ +} + + +/* tomcrypt_mac.h */ + +int ocb3_int_ntz(unsigned long x); +void ocb3_int_xor_blocks(unsigned char *out, const unsigned char *block_a, const unsigned char *block_b, unsigned long block_len); + + +/* tomcrypt_math.h */ + +#if !defined(DESC_DEF_ONLY) + +#define MP_DIGIT_BIT ltc_mp.bits_per_digit + +/* some handy macros */ +#define mp_init(a) ltc_mp.init(a) +#define mp_init_multi ltc_init_multi +#define mp_clear(a) ltc_mp.deinit(a) +#define mp_clear_multi ltc_deinit_multi +#define mp_cleanup_multi ltc_cleanup_multi +#define mp_init_copy(a, b) ltc_mp.init_copy(a, b) + +#define mp_neg(a, b) ltc_mp.neg(a, b) +#define mp_copy(a, b) ltc_mp.copy(a, b) + +#define mp_set(a, b) ltc_mp.set_int(a, b) +#define mp_set_int(a, b) ltc_mp.set_int(a, b) +#define mp_get_int(a) ltc_mp.get_int(a) +#define mp_get_digit(a, n) ltc_mp.get_digit(a, n) +#define mp_get_digit_count(a) ltc_mp.get_digit_count(a) +#define mp_cmp(a, b) ltc_mp.compare(a, b) +#define mp_cmp_d(a, b) ltc_mp.compare_d(a, b) +#define mp_count_bits(a) ltc_mp.count_bits(a) +#define mp_cnt_lsb(a) ltc_mp.count_lsb_bits(a) +#define mp_2expt(a, b) ltc_mp.twoexpt(a, b) + +#define mp_read_radix(a, b, c) ltc_mp.read_radix(a, b, c) +#define mp_toradix(a, b, c) ltc_mp.write_radix(a, b, c) +#define mp_unsigned_bin_size(a) ltc_mp.unsigned_size(a) +#define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b) +#define mp_read_unsigned_bin(a, b, c) ltc_mp.unsigned_read(a, b, c) + +#define mp_add(a, b, c) ltc_mp.add(a, b, c) +#define mp_add_d(a, b, c) ltc_mp.addi(a, b, c) +#define mp_sub(a, b, c) ltc_mp.sub(a, b, c) +#define mp_sub_d(a, b, c) ltc_mp.subi(a, b, c) +#define mp_mul(a, b, c) ltc_mp.mul(a, b, c) +#define mp_mul_d(a, b, c) ltc_mp.muli(a, b, c) +#define mp_sqr(a, b) ltc_mp.sqr(a, b) +#define mp_sqrtmod_prime(a, b, c) ltc_mp.sqrtmod_prime(a, b, c) +#define mp_div(a, b, c, d) ltc_mp.mpdiv(a, b, c, d) +#define mp_div_2(a, b) ltc_mp.div_2(a, b) +#define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c) +#define mp_mod_d(a, b, c) ltc_mp.modi(a, b, c) +#define mp_gcd(a, b, c) ltc_mp.gcd(a, b, c) +#define mp_lcm(a, b, c) ltc_mp.lcm(a, b, c) + +#define mp_addmod(a, b, c, d) ltc_mp.addmod(a, b, c, d) +#define mp_submod(a, b, c, d) ltc_mp.submod(a, b, c, d) +#define mp_mulmod(a, b, c, d) ltc_mp.mulmod(a, b, c, d) +#define mp_sqrmod(a, b, c) ltc_mp.sqrmod(a, b, c) +#define mp_invmod(a, b, c) ltc_mp.invmod(a, b, c) + +#define mp_montgomery_setup(a, b) ltc_mp.montgomery_setup(a, b) +#define mp_montgomery_normalization(a, b) ltc_mp.montgomery_normalization(a, b) +#define mp_montgomery_reduce(a, b, c) ltc_mp.montgomery_reduce(a, b, c) +#define mp_montgomery_free(a) ltc_mp.montgomery_deinit(a) + +#define mp_exptmod(a,b,c,d) ltc_mp.exptmod(a,b,c,d) +#define mp_prime_is_prime(a, b, c) ltc_mp.isprime(a, b, c) + +#define mp_iszero(a) (mp_cmp_d(a, 0) == LTC_MP_EQ ? LTC_MP_YES : LTC_MP_NO) +#define mp_isodd(a) (mp_get_digit_count(a) > 0 ? (mp_get_digit(a, 0) & 1 ? LTC_MP_YES : LTC_MP_NO) : LTC_MP_NO) +#define mp_exch(a, b) do { void *ABC__tmp = a; a = b; b = ABC__tmp; } while(0) + +#define mp_tohex(a, b) mp_toradix(a, b, 16) + +#define mp_rand(a, b) ltc_mp.rand(a, b) + +#endif + + +/* tomcrypt_misc.h */ + +void copy_or_zeromem(const unsigned char* src, unsigned char* dest, unsigned long len, int coz); + + +/* tomcrypt_pk.h */ + +int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng); +int rand_bn_upto(void *N, void *limit, prng_state *prng, int wprng); + +int pk_get_oid(int pk, oid_st *st); +int pk_oid_str_to_num(const char *OID, unsigned long *oid, unsigned long *oidlen); +int pk_oid_num_to_str(const unsigned long *oid, unsigned long oidlen, char *OID, unsigned long *outlen); + +/* ---- DH Routines ---- */ +#ifdef LTC_MDH +extern const ltc_dh_set_type ltc_dh_sets[]; + +int dh_check_pubkey(const dh_key *key); +#endif /* LTC_MDH */ + +/* ---- ECC Routines ---- */ +#ifdef LTC_MECC +int ecc_set_dp_from_mpis(void *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key); +int ecc_copy_dp(const ecc_key *srckey, ecc_key *key); +int ecc_set_dp_by_size(int size, ecc_key *key); + +/* low level functions */ +ecc_point *ltc_ecc_new_point(void); +void ltc_ecc_del_point(ecc_point *p); +int ltc_ecc_set_point_xyz(ltc_mp_digit x, ltc_mp_digit y, ltc_mp_digit z, ecc_point *p); +int ltc_ecc_copy_point(const ecc_point *src, ecc_point *dst); +int ltc_ecc_is_point(const ltc_ecc_dp *dp, void *x, void *y); +int ltc_ecc_is_point_at_infinity(const ecc_point *P, void *modulus, int *retval); +int ltc_ecc_import_point(const unsigned char *in, unsigned long inlen, void *prime, void *a, void *b, void *x, void *y); +int ltc_ecc_export_point(unsigned char *out, unsigned long *outlen, void *x, void *y, unsigned long size, int compressed); +int ltc_ecc_verify_key(const ecc_key *key); + +/* point ops (mp == montgomery digit) */ +#if !defined(LTC_MECC_ACCEL) || defined(LTM_DESC) || defined(GMP_DESC) +/* R = 2P */ +int ltc_ecc_projective_dbl_point(const ecc_point *P, ecc_point *R, void *ma, void *modulus, void *mp); + +/* R = P + Q */ +int ltc_ecc_projective_add_point(const ecc_point *P, const ecc_point *Q, ecc_point *R, void *ma, void *modulus, void *mp); +#endif + +#if defined(LTC_MECC_FP) +/* optimized point multiplication using fixed point cache (HAC algorithm 14.117) */ +int ltc_ecc_fp_mulmod(void *k, ecc_point *G, ecc_point *R, void *a, void *modulus, int map); + +/* functions for saving/loading/freeing/adding to fixed point cache */ +int ltc_ecc_fp_save_state(unsigned char **out, unsigned long *outlen); +int ltc_ecc_fp_restore_state(unsigned char *in, unsigned long inlen); +void ltc_ecc_fp_free(void); +int ltc_ecc_fp_add_point(ecc_point *g, void *modulus, int lock); + +/* lock/unlock all points currently in fixed point cache */ +void ltc_ecc_fp_tablelock(int lock); +#endif + +/* R = kG */ +int ltc_ecc_mulmod(void *k, const ecc_point *G, ecc_point *R, void *a, void *modulus, int map); + +#ifdef LTC_ECC_SHAMIR +/* kA*A + kB*B = C */ +int ltc_ecc_mul2add(const ecc_point *A, void *kA, + const ecc_point *B, void *kB, + ecc_point *C, + void *ma, + void *modulus); + +#ifdef LTC_MECC_FP +/* Shamir's trick with optimized point multiplication using fixed point cache */ +int ltc_ecc_fp_mul2add(const ecc_point *A, void *kA, + const ecc_point *B, void *kB, + ecc_point *C, + void *ma, + void *modulus); +#endif + +#endif + + +/* map P to affine from projective */ +int ltc_ecc_map(ecc_point *P, void *modulus, void *mp); +#endif /* LTC_MECC */ + +#ifdef LTC_MDSA +int dsa_int_validate_xy(const dsa_key *key, int *stat); +int dsa_int_validate_pqg(const dsa_key *key, int *stat); +int dsa_int_validate_primes(const dsa_key *key, int *stat); +#endif /* LTC_MDSA */ + +#ifdef LTC_DER +/* DER handling */ +int der_decode_custom_type_ex(const unsigned char *in, unsigned long inlen, + ltc_asn1_list *root, + ltc_asn1_list *list, unsigned long outlen, unsigned int flags); + +int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen); +int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, ltc_asn1_list *id); +int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen); + +int der_encode_asn1_length(unsigned long len, unsigned char* out, unsigned long* outlen); +int der_decode_asn1_length(const unsigned char* len, unsigned long* lenlen, unsigned long* outlen); +int der_length_asn1_length(unsigned long len, unsigned long *outlen); + +int der_length_sequence_ex(const ltc_asn1_list *list, unsigned long inlen, + unsigned long *outlen, unsigned long *payloadlen); + +extern const ltc_asn1_type der_asn1_tag_to_type_map[]; +extern const unsigned long der_asn1_tag_to_type_map_sz; + +extern const int der_asn1_type_to_identifier_map[]; +extern const unsigned long der_asn1_type_to_identifier_map_sz; + +int der_decode_sequence_multi_ex(const unsigned char *in, unsigned long inlen, unsigned int flags, ...); + +int der_teletex_char_encode(int c); +int der_teletex_value_decode(int v); + +int der_utf8_valid_char(const wchar_t c); + +/* SUBJECT PUBLIC KEY INFO */ +int x509_encode_subject_public_key_info(unsigned char *out, unsigned long *outlen, + unsigned int algorithm, const void* public_key, unsigned long public_key_len, + ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long parameters_len); + +int x509_decode_subject_public_key_info(const unsigned char *in, unsigned long inlen, + unsigned int algorithm, void* public_key, unsigned long* public_key_len, + ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long *parameters_len); + +#endif /* LTC_DER */ + +/* tomcrypt_prng.h */ + +#define _LTC_PRNG_EXPORT(which) \ +int which ## _export(unsigned char *out, unsigned long *outlen, prng_state *prng) \ +{ \ + unsigned long len = which ## _desc.export_size; \ + \ + LTC_ARGCHK(prng != NULL); \ + LTC_ARGCHK(out != NULL); \ + LTC_ARGCHK(outlen != NULL); \ + \ + if (*outlen < len) { \ + *outlen = len; \ + return CRYPT_BUFFER_OVERFLOW; \ + } \ + \ + if (which ## _read(out, len, prng) != len) { \ + return CRYPT_ERROR_READPRNG; \ + } \ + \ + *outlen = len; \ + return CRYPT_OK; \ +} + + +/* ref: $Format:%D$ */ +/* git commit: $Format:%H$ */ +/* commit time: $Format:%ai$ */ diff --git a/src/headers/tomcrypt_prng.h b/src/headers/tomcrypt_prng.h index 3b6fe85d4..957fef368 100644 --- a/src/headers/tomcrypt_prng.h +++ b/src/headers/tomcrypt_prng.h @@ -213,31 +213,6 @@ int register_all_prngs(void); int prng_is_valid(int idx); LTC_MUTEX_PROTO(ltc_prng_mutex) -#ifdef LTC_SOURCE -/* internal helper functions */ -#define _LTC_PRNG_EXPORT(which) \ -int which ## _export(unsigned char *out, unsigned long *outlen, prng_state *prng) \ -{ \ - unsigned long len = which ## _desc.export_size; \ - \ - LTC_ARGCHK(prng != NULL); \ - LTC_ARGCHK(out != NULL); \ - LTC_ARGCHK(outlen != NULL); \ - \ - if (*outlen < len) { \ - *outlen = len; \ - return CRYPT_BUFFER_OVERFLOW; \ - } \ - \ - if (which ## _read(out, len, prng) != len) { \ - return CRYPT_ERROR_READPRNG; \ - } \ - \ - *outlen = len; \ - return CRYPT_OK; \ -} -#endif - /* Slow RNG you **might** be able to use to seed a PRNG with. Be careful as this * might not work on all platforms as planned */ From 2cb77edf4c3705f304b4a4ad6a827e880664b66f Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 31 May 2018 14:44:15 +0200 Subject: [PATCH 2/5] update makefiles etc. for tomcrypt_private.h --- helper.pl | 4 ++-- libtomcrypt_VS2008.vcproj | 4 ++++ makefile.mingw | 4 +++- makefile.msvc | 4 +++- makefile.unix | 8 +++++--- makefile_include.mk | 8 +++++--- 6 files changed, 22 insertions(+), 10 deletions(-) diff --git a/helper.pl b/helper.pl index 6ac172b51..90b743e88 100755 --- a/helper.pl +++ b/helper.pl @@ -291,7 +291,7 @@ sub process_makefiles { my @c = (); find({ no_chdir => 1, wanted => sub { push @c, $_ if -f $_ && $_ =~ /\.c$/ && $_ !~ /tab.c$/ } }, 'src'); my @h = (); - find({ no_chdir => 1, wanted => sub { push @h, $_ if -f $_ && $_ =~ /\.h$/ && $_ !~ /dh_static.h$/ } }, 'src'); + find({ no_chdir => 1, wanted => sub { push @h, $_ if -f $_ && $_ =~ /\.h$/ && $_ !~ /dh_static.h$/ && $_ !~ /tomcrypt_private.h$/ } }, 'src'); my @all = (); find({ no_chdir => 1, wanted => sub { push @all, $_ if -f $_ && $_ =~ /\.(c|h)$/ } }, 'src'); my @t = qw(); @@ -299,7 +299,7 @@ sub process_makefiles { my @o = sort ('src/ciphers/aes/aes_enc.o', map { my $x = $_; $x =~ s/\.c$/.o/; $x } @c); my $var_o = prepare_variable("OBJECTS", @o); - my $var_h = prepare_variable("HEADERS", (sort @h)); + my $var_h = prepare_variable("HEADERS_PUB", (sort @h)); (my $var_obj = $var_o) =~ s/\.o\b/.obj/sg; my $var_to = prepare_variable("TOBJECTS", sort map { my $x = $_; $x =~ s/\.c$/.o/; $x } @t); diff --git a/libtomcrypt_VS2008.vcproj b/libtomcrypt_VS2008.vcproj index ed97a90ca..2c6739b01 100644 --- a/libtomcrypt_VS2008.vcproj +++ b/libtomcrypt_VS2008.vcproj @@ -1035,6 +1035,10 @@ RelativePath="src\headers\tomcrypt_pkcs.h" > + + diff --git a/makefile.mingw b/makefile.mingw index 50b50c205..edd68f0bf 100644 --- a/makefile.mingw +++ b/makefile.mingw @@ -217,12 +217,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_ tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o #The following headers will be installed by "make install" -HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ +HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \ src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \ src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \ src/headers/tomcrypt_prng.h +HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h + #The default rule for make builds the libtomcrypt.a library (static) default: $(LIBMAIN_S) diff --git a/makefile.msvc b/makefile.msvc index d9bdc0579..d345fa0e5 100644 --- a/makefile.msvc +++ b/makefile.msvc @@ -210,12 +210,14 @@ tests/pkcs_1_oaep_test.obj tests/pkcs_1_pss_test.obj tests/pkcs_1_test.obj tests tests/rotate_test.obj tests/rsa_test.obj tests/store_test.obj tests/test.obj #The following headers will be installed by "make install" -HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ +HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \ src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \ src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \ src/headers/tomcrypt_prng.h +HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h + #The default rule for make builds the tomcrypt.lib library (static) default: $(LIBMAIN_S) diff --git a/makefile.unix b/makefile.unix index b31eac3ea..9232e207a 100644 --- a/makefile.unix +++ b/makefile.unix @@ -227,12 +227,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_ tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o #The following headers will be installed by "make install" -HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ +HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \ src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \ src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \ src/headers/tomcrypt_prng.h +HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h + #The default rule for make builds the libtomcrypt.a library (static) default: $(LIBMAIN_S) @@ -295,10 +297,10 @@ clean: -@rm -f test.exe constants.exe sizes.exe tv_gen.exe hashsum.exe ltcrypt.exe small.exe timing.exe #Install the library + headers -install: $(LIBMAIN_S) $(HEADERS) +install: $(LIBMAIN_S) @mkdir -p $(DESTDIR)$(INCPATH) $(DESTDIR)$(LIBPATH)/pkgconfig @cp $(LIBMAIN_S) $(DESTDIR)$(LIBPATH)/ - @cp $(HEADERS) $(DESTDIR)$(INCPATH)/ + @cp $(HEADERS_PUB) $(DESTDIR)$(INCPATH)/ @sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc #Install useful tools diff --git a/makefile_include.mk b/makefile_include.mk index 75bf4850e..043faab5d 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -387,12 +387,14 @@ tests/pkcs_1_oaep_test.o tests/pkcs_1_pss_test.o tests/pkcs_1_test.o tests/prng_ tests/rotate_test.o tests/rsa_test.o tests/store_test.o tests/test.o # The following headers will be installed by "make install" -HEADERS=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ +HEADERS_PUB=src/headers/tomcrypt.h src/headers/tomcrypt_argchk.h src/headers/tomcrypt_cfg.h \ src/headers/tomcrypt_cipher.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_hash.h \ src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h src/headers/tomcrypt_math.h \ src/headers/tomcrypt_misc.h src/headers/tomcrypt_pk.h src/headers/tomcrypt_pkcs.h \ src/headers/tomcrypt_prng.h +HEADERS=$(HEADERS_PUB) src/headers/tomcrypt_private.h + #These are the rules to make certain object files. src/ciphers/aes/aes.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c src/ciphers/twofish/twofish.o: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c @@ -436,7 +438,7 @@ INSTALL_OPTS ?= -m 644 install -p -d $(DESTDIR)$(INCPATH) install -p -d $(DESTDIR)$(LIBPATH) $(INSTALL_CMD) -p $(INSTALL_OPTS) $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME) - install -p -m 644 $(HEADERS) $(DESTDIR)$(INCPATH) + install -p -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH) $(DESTDIR)$(BINPATH): install -p -d $(DESTDIR)$(BINPATH) @@ -454,7 +456,7 @@ install_test: $(call print-help,install_test,Installs the self-test binary) test install_hooks: $(call print-help,install_hooks,Installs the git hooks) for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done -HEADER_FILES=$(notdir $(HEADERS)) +HEADER_FILES=$(notdir $(HEADERS_PUB)) .common_uninstall: $(UNINSTALL_CMD) $(DESTDIR)$(LIBPATH)/$(LIBNAME) rm $(HEADER_FILES:%=$(DESTDIR)$(INCPATH)/%) From 7cfc0c93e6373dcac9b08507de3b93e477fc26a6 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 31 May 2018 14:44:47 +0200 Subject: [PATCH 3/5] use tomcrypt_private.h --- demos/timing.c | 2 +- demos/tv_gen.c | 2 +- src/ciphers/aes/aes.c | 2 +- src/ciphers/anubis.c | 2 +- src/ciphers/blowfish.c | 2 +- src/ciphers/camellia.c | 2 +- src/ciphers/cast5.c | 2 +- src/ciphers/des.c | 2 +- src/ciphers/idea.c | 2 +- src/ciphers/kasumi.c | 2 +- src/ciphers/khazad.c | 2 +- src/ciphers/kseed.c | 2 +- src/ciphers/multi2.c | 2 +- src/ciphers/noekeon.c | 2 +- src/ciphers/rc2.c | 2 +- src/ciphers/rc5.c | 2 +- src/ciphers/rc6.c | 2 +- src/ciphers/safer/safer.c | 2 +- src/ciphers/safer/saferp.c | 2 +- src/ciphers/serpent.c | 2 +- src/ciphers/skipjack.c | 2 +- src/ciphers/twofish/twofish.c | 2 +- src/ciphers/xtea.c | 2 +- src/encauth/ccm/ccm_add_aad.c | 2 +- src/encauth/ccm/ccm_add_nonce.c | 2 +- src/encauth/ccm/ccm_done.c | 2 +- src/encauth/ccm/ccm_init.c | 2 +- src/encauth/ccm/ccm_memory.c | 2 +- src/encauth/ccm/ccm_process.c | 2 +- src/encauth/ccm/ccm_reset.c | 2 +- src/encauth/ccm/ccm_test.c | 2 +- src/encauth/chachapoly/chacha20poly1305_add_aad.c | 2 +- src/encauth/chachapoly/chacha20poly1305_decrypt.c | 2 +- src/encauth/chachapoly/chacha20poly1305_done.c | 2 +- src/encauth/chachapoly/chacha20poly1305_encrypt.c | 2 +- src/encauth/chachapoly/chacha20poly1305_init.c | 2 +- src/encauth/chachapoly/chacha20poly1305_memory.c | 2 +- src/encauth/chachapoly/chacha20poly1305_setiv.c | 2 +- src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c | 2 +- src/encauth/chachapoly/chacha20poly1305_test.c | 2 +- src/encauth/eax/eax_addheader.c | 2 +- src/encauth/eax/eax_decrypt.c | 2 +- src/encauth/eax/eax_decrypt_verify_memory.c | 2 +- src/encauth/eax/eax_done.c | 2 +- src/encauth/eax/eax_encrypt.c | 2 +- src/encauth/eax/eax_encrypt_authenticate_memory.c | 2 +- src/encauth/eax/eax_init.c | 2 +- src/encauth/eax/eax_test.c | 2 +- src/encauth/gcm/gcm_add_aad.c | 2 +- src/encauth/gcm/gcm_add_iv.c | 2 +- src/encauth/gcm/gcm_done.c | 2 +- src/encauth/gcm/gcm_gf_mult.c | 2 +- src/encauth/gcm/gcm_init.c | 2 +- src/encauth/gcm/gcm_memory.c | 2 +- src/encauth/gcm/gcm_mult_h.c | 2 +- src/encauth/gcm/gcm_process.c | 2 +- src/encauth/gcm/gcm_reset.c | 2 +- src/encauth/gcm/gcm_test.c | 2 +- src/encauth/ocb/ocb_decrypt.c | 2 +- src/encauth/ocb/ocb_decrypt_verify_memory.c | 2 +- src/encauth/ocb/ocb_done_decrypt.c | 2 +- src/encauth/ocb/ocb_done_encrypt.c | 2 +- src/encauth/ocb/ocb_encrypt.c | 2 +- src/encauth/ocb/ocb_encrypt_authenticate_memory.c | 2 +- src/encauth/ocb/ocb_init.c | 2 +- src/encauth/ocb/ocb_ntz.c | 2 +- src/encauth/ocb/ocb_shift_xor.c | 2 +- src/encauth/ocb/ocb_test.c | 2 +- src/encauth/ocb/s_ocb_done.c | 2 +- src/encauth/ocb3/ocb3_add_aad.c | 2 +- src/encauth/ocb3/ocb3_decrypt.c | 2 +- src/encauth/ocb3/ocb3_decrypt_last.c | 2 +- src/encauth/ocb3/ocb3_decrypt_verify_memory.c | 2 +- src/encauth/ocb3/ocb3_done.c | 2 +- src/encauth/ocb3/ocb3_encrypt.c | 2 +- src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c | 2 +- src/encauth/ocb3/ocb3_encrypt_last.c | 2 +- src/encauth/ocb3/ocb3_init.c | 2 +- src/encauth/ocb3/ocb3_int_ntz.c | 2 +- src/encauth/ocb3/ocb3_int_xor_blocks.c | 2 +- src/encauth/ocb3/ocb3_test.c | 2 +- src/hashes/blake2b.c | 2 +- src/hashes/blake2s.c | 2 +- src/hashes/chc/chc.c | 2 +- src/hashes/helper/hash_file.c | 2 +- src/hashes/helper/hash_filehandle.c | 2 +- src/hashes/helper/hash_memory.c | 2 +- src/hashes/helper/hash_memory_multi.c | 2 +- src/hashes/md2.c | 2 +- src/hashes/md4.c | 2 +- src/hashes/md5.c | 2 +- src/hashes/rmd128.c | 2 +- src/hashes/rmd160.c | 2 +- src/hashes/rmd256.c | 2 +- src/hashes/rmd320.c | 2 +- src/hashes/sha1.c | 2 +- src/hashes/sha2/sha224.c | 2 +- src/hashes/sha2/sha256.c | 2 +- src/hashes/sha2/sha384.c | 2 +- src/hashes/sha2/sha512.c | 2 +- src/hashes/sha2/sha512_224.c | 2 +- src/hashes/sha2/sha512_256.c | 2 +- src/hashes/sha3.c | 2 +- src/hashes/sha3_test.c | 2 +- src/hashes/tiger.c | 2 +- src/hashes/whirl/whirl.c | 2 +- src/mac/blake2/blake2bmac.c | 2 +- src/mac/blake2/blake2bmac_file.c | 2 +- src/mac/blake2/blake2bmac_memory.c | 2 +- src/mac/blake2/blake2bmac_memory_multi.c | 2 +- src/mac/blake2/blake2bmac_test.c | 2 +- src/mac/blake2/blake2smac.c | 2 +- src/mac/blake2/blake2smac_file.c | 2 +- src/mac/blake2/blake2smac_memory.c | 2 +- src/mac/blake2/blake2smac_memory_multi.c | 2 +- src/mac/blake2/blake2smac_test.c | 2 +- src/mac/f9/f9_done.c | 2 +- src/mac/f9/f9_file.c | 2 +- src/mac/f9/f9_init.c | 2 +- src/mac/f9/f9_memory.c | 2 +- src/mac/f9/f9_memory_multi.c | 2 +- src/mac/f9/f9_process.c | 2 +- src/mac/f9/f9_test.c | 2 +- src/mac/hmac/hmac_done.c | 2 +- src/mac/hmac/hmac_file.c | 2 +- src/mac/hmac/hmac_init.c | 2 +- src/mac/hmac/hmac_memory.c | 2 +- src/mac/hmac/hmac_memory_multi.c | 2 +- src/mac/hmac/hmac_process.c | 2 +- src/mac/hmac/hmac_test.c | 2 +- src/mac/omac/omac_done.c | 2 +- src/mac/omac/omac_file.c | 2 +- src/mac/omac/omac_init.c | 2 +- src/mac/omac/omac_memory.c | 2 +- src/mac/omac/omac_memory_multi.c | 2 +- src/mac/omac/omac_process.c | 2 +- src/mac/omac/omac_test.c | 2 +- src/mac/pelican/pelican.c | 2 +- src/mac/pelican/pelican_memory.c | 2 +- src/mac/pelican/pelican_test.c | 2 +- src/mac/pmac/pmac_done.c | 2 +- src/mac/pmac/pmac_file.c | 2 +- src/mac/pmac/pmac_init.c | 2 +- src/mac/pmac/pmac_memory.c | 2 +- src/mac/pmac/pmac_memory_multi.c | 2 +- src/mac/pmac/pmac_ntz.c | 2 +- src/mac/pmac/pmac_process.c | 2 +- src/mac/pmac/pmac_shift_xor.c | 2 +- src/mac/pmac/pmac_test.c | 2 +- src/mac/poly1305/poly1305.c | 2 +- src/mac/poly1305/poly1305_file.c | 2 +- src/mac/poly1305/poly1305_memory.c | 2 +- src/mac/poly1305/poly1305_memory_multi.c | 2 +- src/mac/poly1305/poly1305_test.c | 2 +- src/mac/xcbc/xcbc_done.c | 2 +- src/mac/xcbc/xcbc_file.c | 2 +- src/mac/xcbc/xcbc_init.c | 2 +- src/mac/xcbc/xcbc_memory.c | 2 +- src/mac/xcbc/xcbc_memory_multi.c | 2 +- src/mac/xcbc/xcbc_process.c | 2 +- src/mac/xcbc/xcbc_test.c | 2 +- src/math/fp/ltc_ecc_fp_mulmod.c | 2 +- src/math/gmp_desc.c | 2 +- src/math/ltm_desc.c | 2 +- src/math/multi.c | 2 +- src/math/radix_to_bin.c | 2 +- src/math/rand_bn.c | 2 +- src/math/rand_prime.c | 2 +- src/math/tfm_desc.c | 2 +- src/misc/adler32.c | 2 +- src/misc/base16/base16_decode.c | 2 +- src/misc/base16/base16_encode.c | 2 +- src/misc/base32/base32_decode.c | 2 +- src/misc/base32/base32_encode.c | 2 +- src/misc/base64/base64_decode.c | 2 +- src/misc/base64/base64_encode.c | 2 +- src/misc/burn_stack.c | 2 +- src/misc/compare_testvector.c | 2 +- src/misc/copy_or_zeromem.c | 2 +- src/misc/crc32.c | 2 +- src/misc/crypt/crypt.c | 2 +- src/misc/crypt/crypt_argchk.c | 2 +- src/misc/crypt/crypt_cipher_descriptor.c | 2 +- src/misc/crypt/crypt_cipher_is_valid.c | 2 +- src/misc/crypt/crypt_constants.c | 2 +- src/misc/crypt/crypt_find_cipher.c | 2 +- src/misc/crypt/crypt_find_cipher_any.c | 2 +- src/misc/crypt/crypt_find_cipher_id.c | 2 +- src/misc/crypt/crypt_find_hash.c | 2 +- src/misc/crypt/crypt_find_hash_any.c | 2 +- src/misc/crypt/crypt_find_hash_id.c | 2 +- src/misc/crypt/crypt_find_hash_oid.c | 2 +- src/misc/crypt/crypt_find_prng.c | 2 +- src/misc/crypt/crypt_fsa.c | 2 +- src/misc/crypt/crypt_hash_descriptor.c | 2 +- src/misc/crypt/crypt_hash_is_valid.c | 2 +- src/misc/crypt/crypt_inits.c | 2 +- src/misc/crypt/crypt_ltc_mp_descriptor.c | 2 +- src/misc/crypt/crypt_prng_descriptor.c | 2 +- src/misc/crypt/crypt_prng_is_valid.c | 2 +- src/misc/crypt/crypt_prng_rng_descriptor.c | 2 +- src/misc/crypt/crypt_register_all_ciphers.c | 2 +- src/misc/crypt/crypt_register_all_hashes.c | 2 +- src/misc/crypt/crypt_register_all_prngs.c | 2 +- src/misc/crypt/crypt_register_cipher.c | 2 +- src/misc/crypt/crypt_register_hash.c | 2 +- src/misc/crypt/crypt_register_prng.c | 2 +- src/misc/crypt/crypt_sizes.c | 2 +- src/misc/crypt/crypt_unregister_cipher.c | 2 +- src/misc/crypt/crypt_unregister_hash.c | 2 +- src/misc/crypt/crypt_unregister_prng.c | 2 +- src/misc/error_to_string.c | 2 +- src/misc/hkdf/hkdf.c | 2 +- src/misc/hkdf/hkdf_test.c | 2 +- src/misc/mem_neq.c | 2 +- src/misc/padding/padding_depad.c | 2 +- src/misc/padding/padding_pad.c | 2 +- src/misc/pk_get_oid.c | 2 +- src/misc/pk_oid_str.c | 2 +- src/misc/pkcs5/pkcs_5_1.c | 2 +- src/misc/pkcs5/pkcs_5_2.c | 2 +- src/misc/pkcs5/pkcs_5_test.c | 2 +- src/misc/zeromem.c | 2 +- src/modes/cbc/cbc_decrypt.c | 2 +- src/modes/cbc/cbc_done.c | 2 +- src/modes/cbc/cbc_encrypt.c | 2 +- src/modes/cbc/cbc_getiv.c | 2 +- src/modes/cbc/cbc_setiv.c | 2 +- src/modes/cbc/cbc_start.c | 2 +- src/modes/cfb/cfb_decrypt.c | 2 +- src/modes/cfb/cfb_done.c | 2 +- src/modes/cfb/cfb_encrypt.c | 2 +- src/modes/cfb/cfb_getiv.c | 2 +- src/modes/cfb/cfb_setiv.c | 2 +- src/modes/cfb/cfb_start.c | 2 +- src/modes/ctr/ctr_decrypt.c | 2 +- src/modes/ctr/ctr_done.c | 2 +- src/modes/ctr/ctr_encrypt.c | 2 +- src/modes/ctr/ctr_getiv.c | 2 +- src/modes/ctr/ctr_setiv.c | 2 +- src/modes/ctr/ctr_start.c | 2 +- src/modes/ctr/ctr_test.c | 2 +- src/modes/ecb/ecb_decrypt.c | 2 +- src/modes/ecb/ecb_done.c | 2 +- src/modes/ecb/ecb_encrypt.c | 2 +- src/modes/ecb/ecb_start.c | 2 +- src/modes/f8/f8_decrypt.c | 2 +- src/modes/f8/f8_done.c | 2 +- src/modes/f8/f8_encrypt.c | 2 +- src/modes/f8/f8_getiv.c | 2 +- src/modes/f8/f8_setiv.c | 2 +- src/modes/f8/f8_start.c | 2 +- src/modes/f8/f8_test_mode.c | 2 +- src/modes/lrw/lrw_decrypt.c | 2 +- src/modes/lrw/lrw_done.c | 2 +- src/modes/lrw/lrw_encrypt.c | 2 +- src/modes/lrw/lrw_getiv.c | 2 +- src/modes/lrw/lrw_process.c | 2 +- src/modes/lrw/lrw_setiv.c | 2 +- src/modes/lrw/lrw_start.c | 2 +- src/modes/lrw/lrw_test.c | 2 +- src/modes/ofb/ofb_decrypt.c | 2 +- src/modes/ofb/ofb_done.c | 2 +- src/modes/ofb/ofb_encrypt.c | 2 +- src/modes/ofb/ofb_getiv.c | 2 +- src/modes/ofb/ofb_setiv.c | 2 +- src/modes/ofb/ofb_start.c | 2 +- src/modes/xts/xts_decrypt.c | 2 +- src/modes/xts/xts_done.c | 2 +- src/modes/xts/xts_encrypt.c | 2 +- src/modes/xts/xts_init.c | 2 +- src/modes/xts/xts_mult_x.c | 2 +- src/modes/xts/xts_test.c | 2 +- src/pk/asn1/der/bit/der_decode_bit_string.c | 2 +- src/pk/asn1/der/bit/der_decode_raw_bit_string.c | 2 +- src/pk/asn1/der/bit/der_encode_bit_string.c | 2 +- src/pk/asn1/der/bit/der_encode_raw_bit_string.c | 2 +- src/pk/asn1/der/bit/der_length_bit_string.c | 2 +- src/pk/asn1/der/boolean/der_decode_boolean.c | 2 +- src/pk/asn1/der/boolean/der_encode_boolean.c | 2 +- src/pk/asn1/der/boolean/der_length_boolean.c | 2 +- src/pk/asn1/der/choice/der_decode_choice.c | 2 +- src/pk/asn1/der/custom_type/der_decode_custom_type.c | 2 +- src/pk/asn1/der/custom_type/der_encode_custom_type.c | 2 +- src/pk/asn1/der/custom_type/der_length_custom_type.c | 2 +- src/pk/asn1/der/general/der_asn1_maps.c | 2 +- src/pk/asn1/der/general/der_decode_asn1_identifier.c | 2 +- src/pk/asn1/der/general/der_decode_asn1_length.c | 2 +- src/pk/asn1/der/general/der_encode_asn1_identifier.c | 2 +- src/pk/asn1/der/general/der_encode_asn1_length.c | 2 +- src/pk/asn1/der/general/der_length_asn1_identifier.c | 2 +- src/pk/asn1/der/general/der_length_asn1_length.c | 2 +- src/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c | 2 +- src/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c | 2 +- src/pk/asn1/der/generalizedtime/der_length_generalizedtime.c | 2 +- src/pk/asn1/der/ia5/der_decode_ia5_string.c | 2 +- src/pk/asn1/der/ia5/der_encode_ia5_string.c | 2 +- src/pk/asn1/der/ia5/der_length_ia5_string.c | 2 +- src/pk/asn1/der/integer/der_decode_integer.c | 2 +- src/pk/asn1/der/integer/der_encode_integer.c | 2 +- src/pk/asn1/der/integer/der_length_integer.c | 2 +- .../asn1/der/object_identifier/der_decode_object_identifier.c | 2 +- .../asn1/der/object_identifier/der_encode_object_identifier.c | 2 +- .../asn1/der/object_identifier/der_length_object_identifier.c | 2 +- src/pk/asn1/der/octet/der_decode_octet_string.c | 2 +- src/pk/asn1/der/octet/der_encode_octet_string.c | 2 +- src/pk/asn1/der/octet/der_length_octet_string.c | 2 +- src/pk/asn1/der/printable_string/der_decode_printable_string.c | 2 +- src/pk/asn1/der/printable_string/der_encode_printable_string.c | 2 +- src/pk/asn1/der/printable_string/der_length_printable_string.c | 2 +- src/pk/asn1/der/sequence/der_decode_sequence_ex.c | 2 +- src/pk/asn1/der/sequence/der_decode_sequence_flexi.c | 2 +- src/pk/asn1/der/sequence/der_decode_sequence_multi.c | 2 +- src/pk/asn1/der/sequence/der_encode_sequence_ex.c | 2 +- src/pk/asn1/der/sequence/der_encode_sequence_multi.c | 2 +- src/pk/asn1/der/sequence/der_length_sequence.c | 2 +- src/pk/asn1/der/sequence/der_sequence_free.c | 2 +- src/pk/asn1/der/sequence/der_sequence_shrink.c | 2 +- src/pk/asn1/der/set/der_encode_set.c | 2 +- src/pk/asn1/der/set/der_encode_setof.c | 2 +- src/pk/asn1/der/short_integer/der_decode_short_integer.c | 2 +- src/pk/asn1/der/short_integer/der_encode_short_integer.c | 2 +- src/pk/asn1/der/short_integer/der_length_short_integer.c | 2 +- src/pk/asn1/der/teletex_string/der_decode_teletex_string.c | 2 +- src/pk/asn1/der/teletex_string/der_length_teletex_string.c | 2 +- src/pk/asn1/der/utctime/der_decode_utctime.c | 2 +- src/pk/asn1/der/utctime/der_encode_utctime.c | 2 +- src/pk/asn1/der/utctime/der_length_utctime.c | 2 +- src/pk/asn1/der/utf8/der_decode_utf8_string.c | 2 +- src/pk/asn1/der/utf8/der_encode_utf8_string.c | 2 +- src/pk/asn1/der/utf8/der_length_utf8_string.c | 2 +- src/pk/asn1/x509/x509_decode_subject_public_key_info.c | 2 +- src/pk/asn1/x509/x509_encode_subject_public_key_info.c | 2 +- src/pk/dh/dh.c | 2 +- src/pk/dh/dh_check_pubkey.c | 2 +- src/pk/dh/dh_export.c | 2 +- src/pk/dh/dh_export_key.c | 2 +- src/pk/dh/dh_free.c | 2 +- src/pk/dh/dh_generate_key.c | 2 +- src/pk/dh/dh_import.c | 2 +- src/pk/dh/dh_set.c | 2 +- src/pk/dh/dh_set_pg_dhparam.c | 2 +- src/pk/dh/dh_shared_secret.c | 2 +- src/pk/dsa/dsa_decrypt_key.c | 2 +- src/pk/dsa/dsa_encrypt_key.c | 2 +- src/pk/dsa/dsa_export.c | 2 +- src/pk/dsa/dsa_free.c | 2 +- src/pk/dsa/dsa_generate_key.c | 2 +- src/pk/dsa/dsa_generate_pqg.c | 2 +- src/pk/dsa/dsa_import.c | 2 +- src/pk/dsa/dsa_make_key.c | 2 +- src/pk/dsa/dsa_set.c | 2 +- src/pk/dsa/dsa_set_pqg_dsaparam.c | 2 +- src/pk/dsa/dsa_shared_secret.c | 2 +- src/pk/dsa/dsa_sign_hash.c | 2 +- src/pk/dsa/dsa_verify_hash.c | 2 +- src/pk/dsa/dsa_verify_key.c | 2 +- src/pk/ecc/ecc.c | 2 +- src/pk/ecc/ecc_ansi_x963_export.c | 2 +- src/pk/ecc/ecc_ansi_x963_import.c | 2 +- src/pk/ecc/ecc_decrypt_key.c | 2 +- src/pk/ecc/ecc_encrypt_key.c | 2 +- src/pk/ecc/ecc_export.c | 2 +- src/pk/ecc/ecc_free.c | 2 +- src/pk/ecc/ecc_get_curve.c | 2 +- src/pk/ecc/ecc_get_key.c | 2 +- src/pk/ecc/ecc_get_oid_str.c | 2 +- src/pk/ecc/ecc_get_size.c | 2 +- src/pk/ecc/ecc_import.c | 2 +- src/pk/ecc/ecc_make_key.c | 2 +- src/pk/ecc/ecc_set_dp.c | 2 +- src/pk/ecc/ecc_set_dp_internal.c | 2 +- src/pk/ecc/ecc_set_key.c | 2 +- src/pk/ecc/ecc_shared_secret.c | 2 +- src/pk/ecc/ecc_sign_hash.c | 2 +- src/pk/ecc/ecc_sizes.c | 2 +- src/pk/ecc/ecc_test.c | 2 +- src/pk/ecc/ecc_verify_hash.c | 2 +- src/pk/ecc/ltc_ecc_export_point.c | 2 +- src/pk/ecc/ltc_ecc_import_point.c | 2 +- src/pk/ecc/ltc_ecc_is_point.c | 2 +- src/pk/ecc/ltc_ecc_is_point_at_infinity.c | 2 +- src/pk/ecc/ltc_ecc_map.c | 2 +- src/pk/ecc/ltc_ecc_mul2add.c | 2 +- src/pk/ecc/ltc_ecc_mulmod.c | 2 +- src/pk/ecc/ltc_ecc_mulmod_timing.c | 2 +- src/pk/ecc/ltc_ecc_points.c | 2 +- src/pk/ecc/ltc_ecc_projective_add_point.c | 2 +- src/pk/ecc/ltc_ecc_projective_dbl_point.c | 2 +- src/pk/ecc/ltc_ecc_verify_key.c | 2 +- src/pk/katja/katja_decrypt_key.c | 2 +- src/pk/katja/katja_encrypt_key.c | 2 +- src/pk/katja/katja_export.c | 2 +- src/pk/katja/katja_exptmod.c | 2 +- src/pk/katja/katja_free.c | 2 +- src/pk/katja/katja_import.c | 2 +- src/pk/katja/katja_make_key.c | 2 +- src/pk/pkcs1/pkcs_1_i2osp.c | 2 +- src/pk/pkcs1/pkcs_1_mgf1.c | 2 +- src/pk/pkcs1/pkcs_1_oaep_decode.c | 2 +- src/pk/pkcs1/pkcs_1_oaep_encode.c | 2 +- src/pk/pkcs1/pkcs_1_os2ip.c | 2 +- src/pk/pkcs1/pkcs_1_pss_decode.c | 2 +- src/pk/pkcs1/pkcs_1_pss_encode.c | 2 +- src/pk/pkcs1/pkcs_1_v1_5_decode.c | 2 +- src/pk/pkcs1/pkcs_1_v1_5_encode.c | 2 +- src/pk/rsa/rsa_decrypt_key.c | 2 +- src/pk/rsa/rsa_encrypt_key.c | 2 +- src/pk/rsa/rsa_export.c | 2 +- src/pk/rsa/rsa_exptmod.c | 2 +- src/pk/rsa/rsa_free.c | 2 +- src/pk/rsa/rsa_get_size.c | 2 +- src/pk/rsa/rsa_import.c | 2 +- src/pk/rsa/rsa_import_pkcs8.c | 2 +- src/pk/rsa/rsa_import_x509.c | 2 +- src/pk/rsa/rsa_make_key.c | 2 +- src/pk/rsa/rsa_set.c | 2 +- src/pk/rsa/rsa_sign_hash.c | 2 +- src/pk/rsa/rsa_sign_saltlen_get.c | 2 +- src/pk/rsa/rsa_verify_hash.c | 2 +- src/prngs/chacha20.c | 2 +- src/prngs/fortuna.c | 2 +- src/prngs/rc4.c | 2 +- src/prngs/rng_get_bytes.c | 2 +- src/prngs/rng_make_prng.c | 2 +- src/prngs/sober128.c | 2 +- src/prngs/sprng.c | 2 +- src/prngs/yarrow.c | 2 +- src/stream/chacha/chacha_crypt.c | 2 +- src/stream/chacha/chacha_done.c | 2 +- src/stream/chacha/chacha_ivctr32.c | 2 +- src/stream/chacha/chacha_ivctr64.c | 2 +- src/stream/chacha/chacha_keystream.c | 2 +- src/stream/chacha/chacha_setup.c | 2 +- src/stream/chacha/chacha_test.c | 2 +- src/stream/rabbit/rabbit.c | 2 +- src/stream/rc4/rc4_stream.c | 2 +- src/stream/rc4/rc4_test.c | 2 +- src/stream/salsa20/salsa20_crypt.c | 2 +- src/stream/salsa20/salsa20_done.c | 2 +- src/stream/salsa20/salsa20_ivctr64.c | 2 +- src/stream/salsa20/salsa20_keystream.c | 2 +- src/stream/salsa20/salsa20_setup.c | 2 +- src/stream/salsa20/salsa20_test.c | 2 +- src/stream/sober128/sober128_stream.c | 2 +- src/stream/sober128/sober128_test.c | 2 +- src/stream/sosemanuk/sosemanuk.c | 2 +- src/stream/sosemanuk/sosemanuk_test.c | 2 +- tests/tomcrypt_test.h | 2 +- 449 files changed, 449 insertions(+), 449 deletions(-) diff --git a/demos/timing.c b/demos/timing.c index b4e3fe06e..5165d18c0 100644 --- a/demos/timing.c +++ b/demos/timing.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include +#include "tomcrypt_private.h" #if defined(_WIN32) #define PRI64 "I64d" diff --git a/demos/tv_gen.c b/demos/tv_gen.c index 2b071be2b..2c70af77b 100644 --- a/demos/tv_gen.c +++ b/demos/tv_gen.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include +#include "tomcrypt_private.h" void hash_gen(void) { diff --git a/src/ciphers/aes/aes.c b/src/ciphers/aes/aes.c index 2abff12e0..537fecefb 100644 --- a/src/ciphers/aes/aes.c +++ b/src/ciphers/aes/aes.c @@ -28,7 +28,7 @@ Implementation of AES */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RIJNDAEL diff --git a/src/ciphers/anubis.c b/src/ciphers/anubis.c index 07b22d4de..7bc359083 100644 --- a/src/ciphers/anubis.c +++ b/src/ciphers/anubis.c @@ -13,7 +13,7 @@ Authors: Paulo S.L.M. Barreto and Vincent Rijmen. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_ANUBIS diff --git a/src/ciphers/blowfish.c b/src/ciphers/blowfish.c index df4c37cea..caeb46eec 100644 --- a/src/ciphers/blowfish.c +++ b/src/ciphers/blowfish.c @@ -10,7 +10,7 @@ @file blowfish.c Implementation of the Blowfish block cipher, Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLOWFISH diff --git a/src/ciphers/camellia.c b/src/ciphers/camellia.c index a99647a8d..4e5602ee3 100644 --- a/src/ciphers/camellia.c +++ b/src/ciphers/camellia.c @@ -12,7 +12,7 @@ Implementation by Tom St Denis of Elliptic Semiconductor */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CAMELLIA diff --git a/src/ciphers/cast5.c b/src/ciphers/cast5.c index 95693d52d..1089ade32 100644 --- a/src/ciphers/cast5.c +++ b/src/ciphers/cast5.c @@ -11,7 +11,7 @@ @file cast5.c Implementation of LTC_CAST5 (RFC 2144) by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CAST5 diff --git a/src/ciphers/des.c b/src/ciphers/des.c index df8ab5ae8..a72fdf532 100644 --- a/src/ciphers/des.c +++ b/src/ciphers/des.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file des.c diff --git a/src/ciphers/idea.c b/src/ciphers/idea.c index ac3cac575..86ded4ded 100644 --- a/src/ciphers/idea.c +++ b/src/ciphers/idea.c @@ -22,7 +22,7 @@ and Japan (JP 3225440) (expired May 16, 2011). */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_IDEA diff --git a/src/ciphers/kasumi.c b/src/ciphers/kasumi.c index aba6cb261..fba9b655f 100644 --- a/src/ciphers/kasumi.c +++ b/src/ciphers/kasumi.c @@ -13,7 +13,7 @@ Derived from the 3GPP standard source code */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_KASUMI diff --git a/src/ciphers/khazad.c b/src/ciphers/khazad.c index 54637d8fa..c8d8d7a5a 100644 --- a/src/ciphers/khazad.c +++ b/src/ciphers/khazad.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file khazad.c diff --git a/src/ciphers/kseed.c b/src/ciphers/kseed.c index f4e1345e2..6d2b0847b 100644 --- a/src/ciphers/kseed.c +++ b/src/ciphers/kseed.c @@ -13,7 +13,7 @@ Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_KSEED diff --git a/src/ciphers/multi2.c b/src/ciphers/multi2.c index 5421cb2e4..39c83a1de 100644 --- a/src/ciphers/multi2.c +++ b/src/ciphers/multi2.c @@ -11,7 +11,7 @@ @file multi2.c Multi-2 implementation (not public domain, hence the default disable) */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MULTI2 diff --git a/src/ciphers/noekeon.c b/src/ciphers/noekeon.c index 71f9430db..c933d45ce 100644 --- a/src/ciphers/noekeon.c +++ b/src/ciphers/noekeon.c @@ -10,7 +10,7 @@ @file noekeon.c Implementation of the Noekeon block cipher by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_NOEKEON diff --git a/src/ciphers/rc2.c b/src/ciphers/rc2.c index fbb1690d2..61219fe7e 100644 --- a/src/ciphers/rc2.c +++ b/src/ciphers/rc2.c @@ -16,7 +16,7 @@ * Thanks to CodeView, SoftIce, and D86 for helping bring this code to * * the public. * \**********************************************************************/ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rc2.c diff --git a/src/ciphers/rc5.c b/src/ciphers/rc5.c index 5368fac3a..41305f049 100644 --- a/src/ciphers/rc5.c +++ b/src/ciphers/rc5.c @@ -12,7 +12,7 @@ LTC_RC5 code by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RC5 diff --git a/src/ciphers/rc6.c b/src/ciphers/rc6.c index 5c8a8f9ce..1a71e50a0 100644 --- a/src/ciphers/rc6.c +++ b/src/ciphers/rc6.c @@ -11,7 +11,7 @@ @file rc6.c LTC_RC6 code by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RC6 diff --git a/src/ciphers/safer/safer.c b/src/ciphers/safer/safer.c index 8e1368ff1..913e19365 100644 --- a/src/ciphers/safer/safer.c +++ b/src/ciphers/safer/safer.c @@ -26,7 +26,7 @@ * *******************************************************************************/ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SAFER diff --git a/src/ciphers/safer/saferp.c b/src/ciphers/safer/saferp.c index 65dc921a5..e6e1c909d 100644 --- a/src/ciphers/safer/saferp.c +++ b/src/ciphers/safer/saferp.c @@ -11,7 +11,7 @@ @file saferp.c LTC_SAFER+ Implementation by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SAFERP diff --git a/src/ciphers/serpent.c b/src/ciphers/serpent.c index 362ce2626..340010e52 100644 --- a/src/ciphers/serpent.c +++ b/src/ciphers/serpent.c @@ -15,7 +15,7 @@ https://en.wikipedia.org/wiki/Serpent_(cipher) */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SERPENT diff --git a/src/ciphers/skipjack.c b/src/ciphers/skipjack.c index 67be57f09..8726af23d 100644 --- a/src/ciphers/skipjack.c +++ b/src/ciphers/skipjack.c @@ -11,7 +11,7 @@ @file skipjack.c Skipjack Implementation by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SKIPJACK diff --git a/src/ciphers/twofish/twofish.c b/src/ciphers/twofish/twofish.c index 911a62944..cbc85fadd 100644 --- a/src/ciphers/twofish/twofish.c +++ b/src/ciphers/twofish/twofish.c @@ -11,7 +11,7 @@ @file twofish.c Implementation of Twofish by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_TWOFISH diff --git a/src/ciphers/xtea.c b/src/ciphers/xtea.c index 3f91bf733..b159078c6 100644 --- a/src/ciphers/xtea.c +++ b/src/ciphers/xtea.c @@ -11,7 +11,7 @@ @file xtea.c Implementation of LTC_XTEA, Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_XTEA diff --git a/src/encauth/ccm/ccm_add_aad.c b/src/encauth/ccm/ccm_add_aad.c index 9744c5702..53ff299f4 100644 --- a/src/encauth/ccm/ccm_add_aad.c +++ b/src/encauth/ccm/ccm_add_aad.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_add_nonce.c b/src/encauth/ccm/ccm_add_nonce.c index ceffb8e45..e2b0faf8e 100644 --- a/src/encauth/ccm/ccm_add_nonce.c +++ b/src/encauth/ccm/ccm_add_nonce.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_done.c b/src/encauth/ccm/ccm_done.c index 797b7d984..b379bdf35 100644 --- a/src/encauth/ccm/ccm_done.c +++ b/src/encauth/ccm/ccm_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_init.c b/src/encauth/ccm/ccm_init.c index b24e33e41..20c2a17bf 100644 --- a/src/encauth/ccm/ccm_init.c +++ b/src/encauth/ccm/ccm_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_memory.c b/src/encauth/ccm/ccm_memory.c index 0ffdbcef3..40ecba6e0 100644 --- a/src/encauth/ccm/ccm_memory.c +++ b/src/encauth/ccm/ccm_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ccm_memory.c diff --git a/src/encauth/ccm/ccm_process.c b/src/encauth/ccm/ccm_process.c index 8346d2259..6e843d124 100644 --- a/src/encauth/ccm/ccm_process.c +++ b/src/encauth/ccm/ccm_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_reset.c b/src/encauth/ccm/ccm_reset.c index c2d0cae87..24dcc3f28 100644 --- a/src/encauth/ccm/ccm_reset.c +++ b/src/encauth/ccm/ccm_reset.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CCM_MODE diff --git a/src/encauth/ccm/ccm_test.c b/src/encauth/ccm/ccm_test.c index 6d1e1e66f..a057d8040 100644 --- a/src/encauth/ccm/ccm_test.c +++ b/src/encauth/ccm/ccm_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ccm_test.c diff --git a/src/encauth/chachapoly/chacha20poly1305_add_aad.c b/src/encauth/chachapoly/chacha20poly1305_add_aad.c index 0c0cf9d58..630c38347 100644 --- a/src/encauth/chachapoly/chacha20poly1305_add_aad.c +++ b/src/encauth/chachapoly/chacha20poly1305_add_aad.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_decrypt.c b/src/encauth/chachapoly/chacha20poly1305_decrypt.c index 179793227..f19cf1814 100644 --- a/src/encauth/chachapoly/chacha20poly1305_decrypt.c +++ b/src/encauth/chachapoly/chacha20poly1305_decrypt.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_done.c b/src/encauth/chachapoly/chacha20poly1305_done.c index 127a7f046..ff1adbd56 100644 --- a/src/encauth/chachapoly/chacha20poly1305_done.c +++ b/src/encauth/chachapoly/chacha20poly1305_done.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_encrypt.c b/src/encauth/chachapoly/chacha20poly1305_encrypt.c index c53c4a657..aeecc1858 100644 --- a/src/encauth/chachapoly/chacha20poly1305_encrypt.c +++ b/src/encauth/chachapoly/chacha20poly1305_encrypt.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_init.c b/src/encauth/chachapoly/chacha20poly1305_init.c index 2799e98a2..f75ab76ce 100644 --- a/src/encauth/chachapoly/chacha20poly1305_init.c +++ b/src/encauth/chachapoly/chacha20poly1305_init.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_memory.c b/src/encauth/chachapoly/chacha20poly1305_memory.c index 54e2011d8..34da91257 100644 --- a/src/encauth/chachapoly/chacha20poly1305_memory.c +++ b/src/encauth/chachapoly/chacha20poly1305_memory.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_setiv.c b/src/encauth/chachapoly/chacha20poly1305_setiv.c index b87666e24..4e770a013 100644 --- a/src/encauth/chachapoly/chacha20poly1305_setiv.c +++ b/src/encauth/chachapoly/chacha20poly1305_setiv.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c b/src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c index 7136a1ee7..f2c5cb677 100644 --- a/src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c +++ b/src/encauth/chachapoly/chacha20poly1305_setiv_rfc7905.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/chachapoly/chacha20poly1305_test.c b/src/encauth/chachapoly/chacha20poly1305_test.c index 2ba88dd75..c1593d5c0 100644 --- a/src/encauth/chachapoly/chacha20poly1305_test.c +++ b/src/encauth/chachapoly/chacha20poly1305_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20POLY1305_MODE diff --git a/src/encauth/eax/eax_addheader.c b/src/encauth/eax/eax_addheader.c index 5545336f1..f70c638b7 100644 --- a/src/encauth/eax/eax_addheader.c +++ b/src/encauth/eax/eax_addheader.c @@ -10,7 +10,7 @@ @file eax_addheader.c EAX implementation, add meta-data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_decrypt.c b/src/encauth/eax/eax_decrypt.c index b1407163c..75001e77a 100644 --- a/src/encauth/eax/eax_decrypt.c +++ b/src/encauth/eax/eax_decrypt.c @@ -11,7 +11,7 @@ @file eax_decrypt.c EAX implementation, decrypt block, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_decrypt_verify_memory.c b/src/encauth/eax/eax_decrypt_verify_memory.c index 058a6a9a8..788ac3630 100644 --- a/src/encauth/eax/eax_decrypt_verify_memory.c +++ b/src/encauth/eax/eax_decrypt_verify_memory.c @@ -11,7 +11,7 @@ @file eax_decrypt_verify_memory.c EAX implementation, decrypt block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_done.c b/src/encauth/eax/eax_done.c index b00bfe084..ab0c6c5d4 100644 --- a/src/encauth/eax/eax_done.c +++ b/src/encauth/eax/eax_done.c @@ -11,7 +11,7 @@ @file eax_done.c EAX implementation, terminate session, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_encrypt.c b/src/encauth/eax/eax_encrypt.c index 174f263d8..7b30d1d40 100644 --- a/src/encauth/eax/eax_encrypt.c +++ b/src/encauth/eax/eax_encrypt.c @@ -11,7 +11,7 @@ @file eax_encrypt.c EAX implementation, encrypt block by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_encrypt_authenticate_memory.c b/src/encauth/eax/eax_encrypt_authenticate_memory.c index 9980fc0b3..b98aef5f9 100644 --- a/src/encauth/eax/eax_encrypt_authenticate_memory.c +++ b/src/encauth/eax/eax_encrypt_authenticate_memory.c @@ -11,7 +11,7 @@ @file eax_encrypt_authenticate_memory.c EAX implementation, encrypt a block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_init.c b/src/encauth/eax/eax_init.c index 154d7a9ac..2b2f1a67f 100644 --- a/src/encauth/eax/eax_init.c +++ b/src/encauth/eax/eax_init.c @@ -11,7 +11,7 @@ @file eax_init.c EAX implementation, initialized EAX state, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/eax/eax_test.c b/src/encauth/eax/eax_test.c index 7d29ee76b..3d3caa829 100644 --- a/src/encauth/eax/eax_test.c +++ b/src/encauth/eax/eax_test.c @@ -11,7 +11,7 @@ @file eax_test.c EAX implementation, self-test, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_EAX_MODE diff --git a/src/encauth/gcm/gcm_add_aad.c b/src/encauth/gcm/gcm_add_aad.c index cacc15ba2..4f0293b7f 100644 --- a/src/encauth/gcm/gcm_add_aad.c +++ b/src/encauth/gcm/gcm_add_aad.c @@ -11,7 +11,7 @@ @file gcm_add_aad.c GCM implementation, Add AAD data to the stream, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_add_iv.c b/src/encauth/gcm/gcm_add_iv.c index 3fd386147..2099f7b6c 100644 --- a/src/encauth/gcm/gcm_add_iv.c +++ b/src/encauth/gcm/gcm_add_iv.c @@ -11,7 +11,7 @@ @file gcm_add_iv.c GCM implementation, add IV data to the state, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_done.c b/src/encauth/gcm/gcm_done.c index ffd551e83..55a132420 100644 --- a/src/encauth/gcm/gcm_done.c +++ b/src/encauth/gcm/gcm_done.c @@ -11,7 +11,7 @@ @file gcm_done.c GCM implementation, Terminate the stream, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_gf_mult.c b/src/encauth/gcm/gcm_gf_mult.c index 2e7a9060f..b1b8e0807 100644 --- a/src/encauth/gcm/gcm_gf_mult.c +++ b/src/encauth/gcm/gcm_gf_mult.c @@ -11,7 +11,7 @@ @file gcm_gf_mult.c GCM implementation, do the GF mult, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_GCM_TABLES) || defined(LTC_LRW_TABLES) || ((defined(LTC_GCM_MODE) || defined(LTC_GCM_MODE)) && defined(LTC_FAST)) diff --git a/src/encauth/gcm/gcm_init.c b/src/encauth/gcm/gcm_init.c index 072870d01..4b5824736 100644 --- a/src/encauth/gcm/gcm_init.c +++ b/src/encauth/gcm/gcm_init.c @@ -11,7 +11,7 @@ @file gcm_init.c GCM implementation, initialize state, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_memory.c b/src/encauth/gcm/gcm_memory.c index 7b59960f8..b318f7cf4 100644 --- a/src/encauth/gcm/gcm_memory.c +++ b/src/encauth/gcm/gcm_memory.c @@ -11,7 +11,7 @@ @file gcm_memory.c GCM implementation, process a packet, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_mult_h.c b/src/encauth/gcm/gcm_mult_h.c index 4e374b410..add59c79e 100644 --- a/src/encauth/gcm/gcm_mult_h.c +++ b/src/encauth/gcm/gcm_mult_h.c @@ -11,7 +11,7 @@ @file gcm_mult_h.c GCM implementation, do the GF mult, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_GCM_MODE) /** diff --git a/src/encauth/gcm/gcm_process.c b/src/encauth/gcm/gcm_process.c index b1ec20cf2..079cdfad3 100644 --- a/src/encauth/gcm/gcm_process.c +++ b/src/encauth/gcm/gcm_process.c @@ -11,7 +11,7 @@ @file gcm_process.c GCM implementation, process message data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_reset.c b/src/encauth/gcm/gcm_reset.c index 3bd108853..bb6987f8a 100644 --- a/src/encauth/gcm/gcm_reset.c +++ b/src/encauth/gcm/gcm_reset.c @@ -11,7 +11,7 @@ @file gcm_reset.c GCM implementation, reset a used state so it can accept IV data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/gcm/gcm_test.c b/src/encauth/gcm/gcm_test.c index 5f68b30e0..728c6ffe1 100644 --- a/src/encauth/gcm/gcm_test.c +++ b/src/encauth/gcm/gcm_test.c @@ -11,7 +11,7 @@ @file gcm_test.c GCM implementation, testing, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_GCM_MODE diff --git a/src/encauth/ocb/ocb_decrypt.c b/src/encauth/ocb/ocb_decrypt.c index 5dc8dade6..8f2ae3914 100644 --- a/src/encauth/ocb/ocb_decrypt.c +++ b/src/encauth/ocb/ocb_decrypt.c @@ -11,7 +11,7 @@ @file ocb_decrypt.c OCB implementation, decrypt data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_decrypt_verify_memory.c b/src/encauth/ocb/ocb_decrypt_verify_memory.c index a7a47f06b..475eceffc 100644 --- a/src/encauth/ocb/ocb_decrypt_verify_memory.c +++ b/src/encauth/ocb/ocb_decrypt_verify_memory.c @@ -11,7 +11,7 @@ @file ocb_decrypt_verify_memory.c OCB implementation, helper to decrypt block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_done_decrypt.c b/src/encauth/ocb/ocb_done_decrypt.c index 357bd847a..c7dc7e44b 100644 --- a/src/encauth/ocb/ocb_done_decrypt.c +++ b/src/encauth/ocb/ocb_done_decrypt.c @@ -11,7 +11,7 @@ @file ocb_done_decrypt.c OCB implementation, terminate decryption, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_done_encrypt.c b/src/encauth/ocb/ocb_done_encrypt.c index 12ea68f4c..aa398fda3 100644 --- a/src/encauth/ocb/ocb_done_encrypt.c +++ b/src/encauth/ocb/ocb_done_encrypt.c @@ -11,7 +11,7 @@ @file ocb_done_encrypt.c OCB implementation, terminate encryption, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_encrypt.c b/src/encauth/ocb/ocb_encrypt.c index aad76a08b..45af54d76 100644 --- a/src/encauth/ocb/ocb_encrypt.c +++ b/src/encauth/ocb/ocb_encrypt.c @@ -11,7 +11,7 @@ @file ocb_encrypt.c OCB implementation, encrypt data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_encrypt_authenticate_memory.c b/src/encauth/ocb/ocb_encrypt_authenticate_memory.c index 1793a6489..1a87dc0bc 100644 --- a/src/encauth/ocb/ocb_encrypt_authenticate_memory.c +++ b/src/encauth/ocb/ocb_encrypt_authenticate_memory.c @@ -11,7 +11,7 @@ @file ocb_encrypt_authenticate_memory.c OCB implementation, encrypt block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_init.c b/src/encauth/ocb/ocb_init.c index e008a44fb..727eddd6e 100644 --- a/src/encauth/ocb/ocb_init.c +++ b/src/encauth/ocb/ocb_init.c @@ -11,7 +11,7 @@ @file ocb_init.c OCB implementation, initialize state, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_ntz.c b/src/encauth/ocb/ocb_ntz.c index cfdc66702..bba8c97d3 100644 --- a/src/encauth/ocb/ocb_ntz.c +++ b/src/encauth/ocb/ocb_ntz.c @@ -12,7 +12,7 @@ OCB implementation, internal function, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_shift_xor.c b/src/encauth/ocb/ocb_shift_xor.c index 8a8ad2ddd..57e85564f 100644 --- a/src/encauth/ocb/ocb_shift_xor.c +++ b/src/encauth/ocb/ocb_shift_xor.c @@ -11,7 +11,7 @@ @file ocb_shift_xor.c OCB implementation, internal function, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/ocb_test.c b/src/encauth/ocb/ocb_test.c index 74431f7d7..f6864a578 100644 --- a/src/encauth/ocb/ocb_test.c +++ b/src/encauth/ocb/ocb_test.c @@ -11,7 +11,7 @@ @file ocb_test.c OCB implementation, self-test by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb/s_ocb_done.c b/src/encauth/ocb/s_ocb_done.c index e0501ede2..ff562f5d4 100644 --- a/src/encauth/ocb/s_ocb_done.c +++ b/src/encauth/ocb/s_ocb_done.c @@ -11,7 +11,7 @@ @file s_ocb_done.c OCB implementation, internal helper, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB_MODE diff --git a/src/encauth/ocb3/ocb3_add_aad.c b/src/encauth/ocb3/ocb3_add_aad.c index 70e3211a9..625e4b9bd 100644 --- a/src/encauth/ocb3/ocb3_add_aad.c +++ b/src/encauth/ocb3/ocb3_add_aad.c @@ -11,7 +11,7 @@ @file ocb3_add_aad.c OCB implementation, add AAD data, by Karel Miko */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_decrypt.c b/src/encauth/ocb3/ocb3_decrypt.c index 4973bd2fa..3c57fda0c 100644 --- a/src/encauth/ocb3/ocb3_decrypt.c +++ b/src/encauth/ocb3/ocb3_decrypt.c @@ -11,7 +11,7 @@ @file ocb3_decrypt.c OCB implementation, decrypt data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_decrypt_last.c b/src/encauth/ocb3/ocb3_decrypt_last.c index 70608dc76..cb0b6eadf 100644 --- a/src/encauth/ocb3/ocb3_decrypt_last.c +++ b/src/encauth/ocb3/ocb3_decrypt_last.c @@ -11,7 +11,7 @@ @file ocb3_decrypt_last.c OCB implementation, internal helper, by Karel Miko */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_decrypt_verify_memory.c b/src/encauth/ocb3/ocb3_decrypt_verify_memory.c index 066b62cb6..f6c102323 100644 --- a/src/encauth/ocb3/ocb3_decrypt_verify_memory.c +++ b/src/encauth/ocb3/ocb3_decrypt_verify_memory.c @@ -11,7 +11,7 @@ @file ocb3_decrypt_verify_memory.c OCB implementation, helper to decrypt block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_done.c b/src/encauth/ocb3/ocb3_done.c index b913d3a43..0331ccef7 100644 --- a/src/encauth/ocb3/ocb3_done.c +++ b/src/encauth/ocb3/ocb3_done.c @@ -11,7 +11,7 @@ @file ocb3_done.c OCB implementation, INTERNAL ONLY helper, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_encrypt.c b/src/encauth/ocb3/ocb3_encrypt.c index 337b02530..3fd9596fb 100644 --- a/src/encauth/ocb3/ocb3_encrypt.c +++ b/src/encauth/ocb3/ocb3_encrypt.c @@ -11,7 +11,7 @@ @file ocb3_encrypt.c OCB implementation, encrypt data, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c b/src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c index efc1a8fb2..5261e94e6 100644 --- a/src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c +++ b/src/encauth/ocb3/ocb3_encrypt_authenticate_memory.c @@ -11,7 +11,7 @@ @file ocb3_encrypt_authenticate_memory.c OCB implementation, encrypt block of memory, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_encrypt_last.c b/src/encauth/ocb3/ocb3_encrypt_last.c index 8110a3c05..5834ef4aa 100644 --- a/src/encauth/ocb3/ocb3_encrypt_last.c +++ b/src/encauth/ocb3/ocb3_encrypt_last.c @@ -11,7 +11,7 @@ @file ocb3_encrypt_last.c OCB implementation, internal helper, by Karel Miko */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_init.c b/src/encauth/ocb3/ocb3_init.c index a3cabae8b..3ad4ab08b 100644 --- a/src/encauth/ocb3/ocb3_init.c +++ b/src/encauth/ocb3/ocb3_init.c @@ -11,7 +11,7 @@ @file ocb3_init.c OCB implementation, initialize state, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_int_ntz.c b/src/encauth/ocb3/ocb3_int_ntz.c index 3c5b18d0a..d2dc4b4cc 100644 --- a/src/encauth/ocb3/ocb3_int_ntz.c +++ b/src/encauth/ocb3/ocb3_int_ntz.c @@ -11,7 +11,7 @@ @file ocb3_int_ntz.c OCB implementation, INTERNAL ONLY helper, by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_int_xor_blocks.c b/src/encauth/ocb3/ocb3_int_xor_blocks.c index 798bddcd6..bb7d6eb0d 100644 --- a/src/encauth/ocb3/ocb3_int_xor_blocks.c +++ b/src/encauth/ocb3/ocb3_int_xor_blocks.c @@ -11,7 +11,7 @@ @file ocb3_int_xor_blocks.c OCB implementation, INTERNAL ONLY helper, by Karel Miko */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/encauth/ocb3/ocb3_test.c b/src/encauth/ocb3/ocb3_test.c index a3e5062bb..b31931c8d 100644 --- a/src/encauth/ocb3/ocb3_test.c +++ b/src/encauth/ocb3/ocb3_test.c @@ -11,7 +11,7 @@ @file ocb3_test.c OCB implementation, self-test by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_OCB3_MODE diff --git a/src/hashes/blake2b.c b/src/hashes/blake2b.c index cd5115ca9..ee6ec05f3 100644 --- a/src/hashes/blake2b.c +++ b/src/hashes/blake2b.c @@ -23,7 +23,7 @@ */ /* see also https://www.ietf.org/rfc/rfc7693.txt */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2B diff --git a/src/hashes/blake2s.c b/src/hashes/blake2s.c index e3e90f86b..28ad6663a 100644 --- a/src/hashes/blake2s.c +++ b/src/hashes/blake2s.c @@ -23,7 +23,7 @@ */ /* see also https://www.ietf.org/rfc/rfc7693.txt */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2S diff --git a/src/hashes/chc/chc.c b/src/hashes/chc/chc.c index dc3505299..bcb6947ab 100644 --- a/src/hashes/chc/chc.c +++ b/src/hashes/chc/chc.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file chc.c diff --git a/src/hashes/helper/hash_file.c b/src/hashes/helper/hash_file.c index 0b96eaee5..9c8493b06 100644 --- a/src/hashes/helper/hash_file.c +++ b/src/hashes/helper/hash_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifndef LTC_NO_FILE /** diff --git a/src/hashes/helper/hash_filehandle.c b/src/hashes/helper/hash_filehandle.c index 0e4d7a64c..521aa8053 100644 --- a/src/hashes/helper/hash_filehandle.c +++ b/src/hashes/helper/hash_filehandle.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifndef LTC_NO_FILE /** diff --git a/src/hashes/helper/hash_memory.c b/src/hashes/helper/hash_memory.c index e8471acf0..483552de5 100644 --- a/src/hashes/helper/hash_memory.c +++ b/src/hashes/helper/hash_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_HASH_HELPERS /** diff --git a/src/hashes/helper/hash_memory_multi.c b/src/hashes/helper/hash_memory_multi.c index d10b4582d..5200d9aee 100644 --- a/src/hashes/helper/hash_memory_multi.c +++ b/src/hashes/helper/hash_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include #ifdef LTC_HASH_HELPERS diff --git a/src/hashes/md2.c b/src/hashes/md2.c index 36cc8aeca..b3fc88af5 100644 --- a/src/hashes/md2.c +++ b/src/hashes/md2.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @param md2.c diff --git a/src/hashes/md4.c b/src/hashes/md4.c index e3bc0c551..0dd207484 100644 --- a/src/hashes/md4.c +++ b/src/hashes/md4.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @param md4.c diff --git a/src/hashes/md5.c b/src/hashes/md5.c index a417970af..f37a4726c 100644 --- a/src/hashes/md5.c +++ b/src/hashes/md5.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** diff --git a/src/hashes/rmd128.c b/src/hashes/rmd128.c index b60cb0ad5..a9c26fc44 100644 --- a/src/hashes/rmd128.c +++ b/src/hashes/rmd128.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @param rmd128.c diff --git a/src/hashes/rmd160.c b/src/hashes/rmd160.c index d38d2beb5..550e3ed1e 100644 --- a/src/hashes/rmd160.c +++ b/src/hashes/rmd160.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rmd160.c diff --git a/src/hashes/rmd256.c b/src/hashes/rmd256.c index da51a1d9b..f3ca10613 100644 --- a/src/hashes/rmd256.c +++ b/src/hashes/rmd256.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @param rmd256.c diff --git a/src/hashes/rmd320.c b/src/hashes/rmd320.c index ba6ba9e15..06f27644b 100644 --- a/src/hashes/rmd320.c +++ b/src/hashes/rmd320.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rmd320.c diff --git a/src/hashes/sha1.c b/src/hashes/sha1.c index f78ef75c8..debf9b0f8 100644 --- a/src/hashes/sha1.c +++ b/src/hashes/sha1.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file sha1.c diff --git a/src/hashes/sha2/sha224.c b/src/hashes/sha2/sha224.c index 773a2c521..bb68abc0c 100644 --- a/src/hashes/sha2/sha224.c +++ b/src/hashes/sha2/sha224.c @@ -11,7 +11,7 @@ LTC_SHA-224 new NIST standard based off of LTC_SHA-256 truncated to 224 bits (Tom St Denis) */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_SHA224) && defined(LTC_SHA256) diff --git a/src/hashes/sha2/sha256.c b/src/hashes/sha2/sha256.c index 3b9c4e249..c553fd086 100644 --- a/src/hashes/sha2/sha256.c +++ b/src/hashes/sha2/sha256.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file sha256.c diff --git a/src/hashes/sha2/sha384.c b/src/hashes/sha2/sha384.c index 16238127b..973625fcf 100644 --- a/src/hashes/sha2/sha384.c +++ b/src/hashes/sha2/sha384.c @@ -11,7 +11,7 @@ LTC_SHA384 hash included in sha512.c, Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_SHA384) && defined(LTC_SHA512) diff --git a/src/hashes/sha2/sha512.c b/src/hashes/sha2/sha512.c index c7bffd17e..5e4ad1539 100644 --- a/src/hashes/sha2/sha512.c +++ b/src/hashes/sha2/sha512.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @param sha512.c diff --git a/src/hashes/sha2/sha512_224.c b/src/hashes/sha2/sha512_224.c index 48bb93845..ad0f95b79 100644 --- a/src/hashes/sha2/sha512_224.c +++ b/src/hashes/sha2/sha512_224.c @@ -11,7 +11,7 @@ SHA512/224 hash included in sha512.c */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_SHA512_224) && defined(LTC_SHA512) diff --git a/src/hashes/sha2/sha512_256.c b/src/hashes/sha2/sha512_256.c index 943adaa6f..fda0339cb 100644 --- a/src/hashes/sha2/sha512_256.c +++ b/src/hashes/sha2/sha512_256.c @@ -11,7 +11,7 @@ SHA512/256 hash included in sha512.c */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_SHA512_256) && defined(LTC_SHA512) diff --git a/src/hashes/sha3.c b/src/hashes/sha3.c index 5e91538f5..d9bbc8af0 100644 --- a/src/hashes/sha3.c +++ b/src/hashes/sha3.c @@ -9,7 +9,7 @@ /* based on https://github.com/brainhub/SHA3IUF (public domain) */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SHA3 diff --git a/src/hashes/sha3_test.c b/src/hashes/sha3_test.c index 2bf74823d..3f119a6c7 100644 --- a/src/hashes/sha3_test.c +++ b/src/hashes/sha3_test.c @@ -9,7 +9,7 @@ /* based on https://github.com/brainhub/SHA3IUF (public domain) */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SHA3 diff --git a/src/hashes/tiger.c b/src/hashes/tiger.c index c6dce7cf8..0d3ba1025 100644 --- a/src/hashes/tiger.c +++ b/src/hashes/tiger.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file tiger.c diff --git a/src/hashes/whirl/whirl.c b/src/hashes/whirl/whirl.c index 636f03a4d..1f374f86b 100644 --- a/src/hashes/whirl/whirl.c +++ b/src/hashes/whirl/whirl.c @@ -12,7 +12,7 @@ LTC_WHIRLPOOL (using their new sbox) hash function by Tom St Denis */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_WHIRLPOOL diff --git a/src/mac/blake2/blake2bmac.c b/src/mac/blake2/blake2bmac.c index 1c80b1c0a..fc20cd996 100644 --- a/src/mac/blake2/blake2bmac.c +++ b/src/mac/blake2/blake2bmac.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2BMAC diff --git a/src/mac/blake2/blake2bmac_file.c b/src/mac/blake2/blake2bmac_file.c index c1e9c6b52..6d436a677 100644 --- a/src/mac/blake2/blake2bmac_file.c +++ b/src/mac/blake2/blake2bmac_file.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2BMAC diff --git a/src/mac/blake2/blake2bmac_memory.c b/src/mac/blake2/blake2bmac_memory.c index 45ddd6fb1..c0a09b721 100644 --- a/src/mac/blake2/blake2bmac_memory.c +++ b/src/mac/blake2/blake2bmac_memory.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2BMAC diff --git a/src/mac/blake2/blake2bmac_memory_multi.c b/src/mac/blake2/blake2bmac_memory_multi.c index 2b875d7fa..e135f6fe7 100644 --- a/src/mac/blake2/blake2bmac_memory_multi.c +++ b/src/mac/blake2/blake2bmac_memory_multi.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include #ifdef LTC_BLAKE2BMAC diff --git a/src/mac/blake2/blake2bmac_test.c b/src/mac/blake2/blake2bmac_test.c index ae7005610..d339fc3b1 100644 --- a/src/mac/blake2/blake2bmac_test.c +++ b/src/mac/blake2/blake2bmac_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2BMAC diff --git a/src/mac/blake2/blake2smac.c b/src/mac/blake2/blake2smac.c index 080241b75..77ef17dd1 100644 --- a/src/mac/blake2/blake2smac.c +++ b/src/mac/blake2/blake2smac.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2SMAC diff --git a/src/mac/blake2/blake2smac_file.c b/src/mac/blake2/blake2smac_file.c index 1ac667970..9d31a18df 100644 --- a/src/mac/blake2/blake2smac_file.c +++ b/src/mac/blake2/blake2smac_file.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2SMAC diff --git a/src/mac/blake2/blake2smac_memory.c b/src/mac/blake2/blake2smac_memory.c index 1661fb064..487a810be 100644 --- a/src/mac/blake2/blake2smac_memory.c +++ b/src/mac/blake2/blake2smac_memory.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2SMAC diff --git a/src/mac/blake2/blake2smac_memory_multi.c b/src/mac/blake2/blake2smac_memory_multi.c index 0985c428f..2e96c7576 100644 --- a/src/mac/blake2/blake2smac_memory_multi.c +++ b/src/mac/blake2/blake2smac_memory_multi.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include #ifdef LTC_BLAKE2SMAC diff --git a/src/mac/blake2/blake2smac_test.c b/src/mac/blake2/blake2smac_test.c index a44ab8d26..8e0bdb0b0 100644 --- a/src/mac/blake2/blake2smac_test.c +++ b/src/mac/blake2/blake2smac_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BLAKE2SMAC diff --git a/src/mac/f9/f9_done.c b/src/mac/f9/f9_done.c index 8d2ccb056..b43daa816 100644 --- a/src/mac/f9/f9_done.c +++ b/src/mac/f9/f9_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_done.c diff --git a/src/mac/f9/f9_file.c b/src/mac/f9/f9_file.c index 04d509bfc..f9969bb1d 100644 --- a/src/mac/f9/f9_file.c +++ b/src/mac/f9/f9_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_file.c diff --git a/src/mac/f9/f9_init.c b/src/mac/f9/f9_init.c index ba59b20e9..cc416561e 100644 --- a/src/mac/f9/f9_init.c +++ b/src/mac/f9/f9_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_init.c diff --git a/src/mac/f9/f9_memory.c b/src/mac/f9/f9_memory.c index 70c694b31..16d40ef15 100644 --- a/src/mac/f9/f9_memory.c +++ b/src/mac/f9/f9_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_process.c diff --git a/src/mac/f9/f9_memory_multi.c b/src/mac/f9/f9_memory_multi.c index 2c1d31a0d..580980c42 100644 --- a/src/mac/f9/f9_memory_multi.c +++ b/src/mac/f9/f9_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/mac/f9/f9_process.c b/src/mac/f9/f9_process.c index ba4d39fff..b945ef429 100644 --- a/src/mac/f9/f9_process.c +++ b/src/mac/f9/f9_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_process.c diff --git a/src/mac/f9/f9_test.c b/src/mac/f9/f9_test.c index ca23acc58..0743da0a1 100644 --- a/src/mac/f9/f9_test.c +++ b/src/mac/f9/f9_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f9_test.c diff --git a/src/mac/hmac/hmac_done.c b/src/mac/hmac/hmac_done.c index 3c09df161..58d3c4907 100644 --- a/src/mac/hmac/hmac_done.c +++ b/src/mac/hmac/hmac_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_done.c diff --git a/src/mac/hmac/hmac_file.c b/src/mac/hmac/hmac_file.c index 0e1a16310..0ea680b6e 100644 --- a/src/mac/hmac/hmac_file.c +++ b/src/mac/hmac/hmac_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_file.c diff --git a/src/mac/hmac/hmac_init.c b/src/mac/hmac/hmac_init.c index 16e58d5be..fadc839e2 100644 --- a/src/mac/hmac/hmac_init.c +++ b/src/mac/hmac/hmac_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_init.c diff --git a/src/mac/hmac/hmac_memory.c b/src/mac/hmac/hmac_memory.c index 9a3a199b7..e4bfa87fa 100644 --- a/src/mac/hmac/hmac_memory.c +++ b/src/mac/hmac/hmac_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_memory.c diff --git a/src/mac/hmac/hmac_memory_multi.c b/src/mac/hmac/hmac_memory_multi.c index 6e3d0fefe..8e3e401d3 100644 --- a/src/mac/hmac/hmac_memory_multi.c +++ b/src/mac/hmac/hmac_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/mac/hmac/hmac_process.c b/src/mac/hmac/hmac_process.c index 8da62c130..a8714dee8 100644 --- a/src/mac/hmac/hmac_process.c +++ b/src/mac/hmac/hmac_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_process.c diff --git a/src/mac/hmac/hmac_test.c b/src/mac/hmac/hmac_test.c index 1570a76ef..cf4d8160d 100644 --- a/src/mac/hmac/hmac_test.c +++ b/src/mac/hmac/hmac_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hmac_test.c diff --git a/src/mac/omac/omac_done.c b/src/mac/omac/omac_done.c index bf22523f8..338a4ccef 100644 --- a/src/mac/omac/omac_done.c +++ b/src/mac/omac/omac_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_done.c diff --git a/src/mac/omac/omac_file.c b/src/mac/omac/omac_file.c index 3f6a85d0c..11cc1b1b8 100644 --- a/src/mac/omac/omac_file.c +++ b/src/mac/omac/omac_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_file.c diff --git a/src/mac/omac/omac_init.c b/src/mac/omac/omac_init.c index 55de2a619..70caee67e 100644 --- a/src/mac/omac/omac_init.c +++ b/src/mac/omac/omac_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_init.c diff --git a/src/mac/omac/omac_memory.c b/src/mac/omac/omac_memory.c index 1b57db854..5bbc95f59 100644 --- a/src/mac/omac/omac_memory.c +++ b/src/mac/omac/omac_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_memory.c diff --git a/src/mac/omac/omac_memory_multi.c b/src/mac/omac/omac_memory_multi.c index 50f26e6af..c0922d6dc 100644 --- a/src/mac/omac/omac_memory_multi.c +++ b/src/mac/omac/omac_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/mac/omac/omac_process.c b/src/mac/omac/omac_process.c index 4ae2bd11c..2024d3e6a 100644 --- a/src/mac/omac/omac_process.c +++ b/src/mac/omac/omac_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_process.c diff --git a/src/mac/omac/omac_test.c b/src/mac/omac/omac_test.c index 9bf392c79..ed7615b75 100644 --- a/src/mac/omac/omac_test.c +++ b/src/mac/omac/omac_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file omac_test.c diff --git a/src/mac/pelican/pelican.c b/src/mac/pelican/pelican.c index 6a4dde649..e8cea6424 100644 --- a/src/mac/pelican/pelican.c +++ b/src/mac/pelican/pelican.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pelican.c diff --git a/src/mac/pelican/pelican_memory.c b/src/mac/pelican/pelican_memory.c index 08607a0d3..11ba07cc7 100644 --- a/src/mac/pelican/pelican_memory.c +++ b/src/mac/pelican/pelican_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pelican_memory.c diff --git a/src/mac/pelican/pelican_test.c b/src/mac/pelican/pelican_test.c index 32a7df3a7..eac82b5fc 100644 --- a/src/mac/pelican/pelican_test.c +++ b/src/mac/pelican/pelican_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pelican_test.c diff --git a/src/mac/pmac/pmac_done.c b/src/mac/pmac/pmac_done.c index de7a5aa08..18296e025 100644 --- a/src/mac/pmac/pmac_done.c +++ b/src/mac/pmac/pmac_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_done.c diff --git a/src/mac/pmac/pmac_file.c b/src/mac/pmac/pmac_file.c index fe202a2f5..bdd7b8250 100644 --- a/src/mac/pmac/pmac_file.c +++ b/src/mac/pmac/pmac_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_file.c diff --git a/src/mac/pmac/pmac_init.c b/src/mac/pmac/pmac_init.c index b1bb400d1..15d433afa 100644 --- a/src/mac/pmac/pmac_init.c +++ b/src/mac/pmac/pmac_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_init.c diff --git a/src/mac/pmac/pmac_memory.c b/src/mac/pmac/pmac_memory.c index 78427811f..77223d953 100644 --- a/src/mac/pmac/pmac_memory.c +++ b/src/mac/pmac/pmac_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_memory.c diff --git a/src/mac/pmac/pmac_memory_multi.c b/src/mac/pmac/pmac_memory_multi.c index f3de4b591..19915a9e1 100644 --- a/src/mac/pmac/pmac_memory_multi.c +++ b/src/mac/pmac/pmac_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/mac/pmac/pmac_ntz.c b/src/mac/pmac/pmac_ntz.c index 2c7dec567..bb262f85c 100644 --- a/src/mac/pmac/pmac_ntz.c +++ b/src/mac/pmac/pmac_ntz.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_ntz.c diff --git a/src/mac/pmac/pmac_process.c b/src/mac/pmac/pmac_process.c index 018fa275c..d12684b50 100644 --- a/src/mac/pmac/pmac_process.c +++ b/src/mac/pmac/pmac_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_process.c diff --git a/src/mac/pmac/pmac_shift_xor.c b/src/mac/pmac/pmac_shift_xor.c index 49d48f981..8895d9702 100644 --- a/src/mac/pmac/pmac_shift_xor.c +++ b/src/mac/pmac/pmac_shift_xor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_shift_xor.c diff --git a/src/mac/pmac/pmac_test.c b/src/mac/pmac/pmac_test.c index 19329c67c..614be9de9 100644 --- a/src/mac/pmac/pmac_test.c +++ b/src/mac/pmac/pmac_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pmac_test.c diff --git a/src/mac/poly1305/poly1305.c b/src/mac/poly1305/poly1305.c index f709f7205..1cd7a0ac7 100644 --- a/src/mac/poly1305/poly1305.c +++ b/src/mac/poly1305/poly1305.c @@ -12,7 +12,7 @@ * https://github.com/floodyberry/poly1305-donna */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_POLY1305 diff --git a/src/mac/poly1305/poly1305_file.c b/src/mac/poly1305/poly1305_file.c index e57437b3e..946d3997c 100644 --- a/src/mac/poly1305/poly1305_file.c +++ b/src/mac/poly1305/poly1305_file.c @@ -12,7 +12,7 @@ * https://github.com/floodyberry/poly1305-donna */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_POLY1305 diff --git a/src/mac/poly1305/poly1305_memory.c b/src/mac/poly1305/poly1305_memory.c index a827f8d38..e9d2ff278 100644 --- a/src/mac/poly1305/poly1305_memory.c +++ b/src/mac/poly1305/poly1305_memory.c @@ -12,7 +12,7 @@ * https://github.com/floodyberry/poly1305-donna */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_POLY1305 diff --git a/src/mac/poly1305/poly1305_memory_multi.c b/src/mac/poly1305/poly1305_memory_multi.c index f22f25531..952bd6cf3 100644 --- a/src/mac/poly1305/poly1305_memory_multi.c +++ b/src/mac/poly1305/poly1305_memory_multi.c @@ -12,7 +12,7 @@ * https://github.com/floodyberry/poly1305-donna */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include #ifdef LTC_POLY1305 diff --git a/src/mac/poly1305/poly1305_test.c b/src/mac/poly1305/poly1305_test.c index 5e4535b3e..da7a64daf 100644 --- a/src/mac/poly1305/poly1305_test.c +++ b/src/mac/poly1305/poly1305_test.c @@ -12,7 +12,7 @@ * https://github.com/floodyberry/poly1305-donna */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_POLY1305 diff --git a/src/mac/xcbc/xcbc_done.c b/src/mac/xcbc/xcbc_done.c index 133d16fd1..0ae96c10d 100644 --- a/src/mac/xcbc/xcbc_done.c +++ b/src/mac/xcbc/xcbc_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_done.c diff --git a/src/mac/xcbc/xcbc_file.c b/src/mac/xcbc/xcbc_file.c index 27eb0dec4..bfd5d3e5b 100644 --- a/src/mac/xcbc/xcbc_file.c +++ b/src/mac/xcbc/xcbc_file.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_file.c diff --git a/src/mac/xcbc/xcbc_init.c b/src/mac/xcbc/xcbc_init.c index 4eccd5e4e..0d80c27a1 100644 --- a/src/mac/xcbc/xcbc_init.c +++ b/src/mac/xcbc/xcbc_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_init.c diff --git a/src/mac/xcbc/xcbc_memory.c b/src/mac/xcbc/xcbc_memory.c index a1bc0455d..65f558f07 100644 --- a/src/mac/xcbc/xcbc_memory.c +++ b/src/mac/xcbc/xcbc_memory.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_process.c diff --git a/src/mac/xcbc/xcbc_memory_multi.c b/src/mac/xcbc/xcbc_memory_multi.c index a5b9d9174..db1b8c4a9 100644 --- a/src/mac/xcbc/xcbc_memory_multi.c +++ b/src/mac/xcbc/xcbc_memory_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/mac/xcbc/xcbc_process.c b/src/mac/xcbc/xcbc_process.c index 12e25c5f3..1407a1c9f 100644 --- a/src/mac/xcbc/xcbc_process.c +++ b/src/mac/xcbc/xcbc_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_process.c diff --git a/src/mac/xcbc/xcbc_test.c b/src/mac/xcbc/xcbc_test.c index 6a0ecdf0d..03784a8f6 100644 --- a/src/mac/xcbc/xcbc_test.c +++ b/src/mac/xcbc/xcbc_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file xcbc_test.c diff --git a/src/math/fp/ltc_ecc_fp_mulmod.c b/src/math/fp/ltc_ecc_fp_mulmod.c index eed4483aa..757488b4a 100644 --- a/src/math/fp/ltc_ecc_fp_mulmod.c +++ b/src/math/fp/ltc_ecc_fp_mulmod.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_fp_mulmod.c diff --git a/src/math/gmp_desc.c b/src/math/gmp_desc.c index 8c68eca86..b9ce2c169 100644 --- a/src/math/gmp_desc.c +++ b/src/math/gmp_desc.c @@ -8,7 +8,7 @@ */ #define DESC_DEF_ONLY -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef GMP_DESC diff --git a/src/math/ltm_desc.c b/src/math/ltm_desc.c index 474965775..0ee7958dd 100644 --- a/src/math/ltm_desc.c +++ b/src/math/ltm_desc.c @@ -8,7 +8,7 @@ */ #define DESC_DEF_ONLY -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTM_DESC diff --git a/src/math/multi.c b/src/math/multi.c index cfe145125..4b3178f8e 100644 --- a/src/math/multi.c +++ b/src/math/multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MPI #include diff --git a/src/math/radix_to_bin.c b/src/math/radix_to_bin.c index 409bd20d5..83eda819a 100644 --- a/src/math/radix_to_bin.c +++ b/src/math/radix_to_bin.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file radix_to_bin.c diff --git a/src/math/rand_bn.c b/src/math/rand_bn.c index aa6539ccf..9c87336df 100644 --- a/src/math/rand_bn.c +++ b/src/math/rand_bn.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_MDSA) || defined(LTC_MECC) /** diff --git a/src/math/rand_prime.c b/src/math/rand_prime.c index 4dd5764dc..97c82c747 100644 --- a/src/math/rand_prime.c +++ b/src/math/rand_prime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #if defined(LTC_MRSA) || (!defined(LTC_NO_MATH) && !defined(LTC_NO_PRNGS)) diff --git a/src/math/tfm_desc.c b/src/math/tfm_desc.c index 81f14b805..e42d24697 100644 --- a/src/math/tfm_desc.c +++ b/src/math/tfm_desc.c @@ -8,7 +8,7 @@ */ #define DESC_DEF_ONLY -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef TFM_DESC diff --git a/src/misc/adler32.c b/src/misc/adler32.c index 49ce7d705..c1d7c86ff 100644 --- a/src/misc/adler32.c +++ b/src/misc/adler32.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file adler32.c diff --git a/src/misc/base16/base16_decode.c b/src/misc/base16/base16_decode.c index 67382852e..fb8c07eea 100644 --- a/src/misc/base16/base16_decode.c +++ b/src/misc/base16/base16_decode.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file base16_decode.c diff --git a/src/misc/base16/base16_encode.c b/src/misc/base16/base16_encode.c index 428002a9c..7e68dce4b 100644 --- a/src/misc/base16/base16_encode.c +++ b/src/misc/base16/base16_encode.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file base16_encode.c diff --git a/src/misc/base32/base32_decode.c b/src/misc/base32/base32_decode.c index 5809553e1..91db6eedd 100644 --- a/src/misc/base32/base32_decode.c +++ b/src/misc/base32/base32_decode.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BASE32 diff --git a/src/misc/base32/base32_encode.c b/src/misc/base32/base32_encode.c index 81fa97a89..9e407458e 100644 --- a/src/misc/base32/base32_encode.c +++ b/src/misc/base32/base32_encode.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_BASE32 diff --git a/src/misc/base64/base64_decode.c b/src/misc/base64/base64_decode.c index 6af4eb5c1..7506d50bc 100644 --- a/src/misc/base64/base64_decode.c +++ b/src/misc/base64/base64_decode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file base64_decode.c diff --git a/src/misc/base64/base64_encode.c b/src/misc/base64/base64_encode.c index 788c9d50a..a6b7b9bbe 100644 --- a/src/misc/base64/base64_encode.c +++ b/src/misc/base64/base64_encode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file base64_encode.c diff --git a/src/misc/burn_stack.c b/src/misc/burn_stack.c index afbafee4b..b79f5409d 100644 --- a/src/misc/burn_stack.c +++ b/src/misc/burn_stack.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file burn_stack.c diff --git a/src/misc/compare_testvector.c b/src/misc/compare_testvector.c index 74cebcc39..842678a40 100644 --- a/src/misc/compare_testvector.c +++ b/src/misc/compare_testvector.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file compare_testvector.c diff --git a/src/misc/copy_or_zeromem.c b/src/misc/copy_or_zeromem.c index 237f7123b..1cfd2bdc2 100644 --- a/src/misc/copy_or_zeromem.c +++ b/src/misc/copy_or_zeromem.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file copy_or_zeromem.c diff --git a/src/misc/crc32.c b/src/misc/crc32.c index a1bdc8e9e..5c49f421a 100644 --- a/src/misc/crc32.c +++ b/src/misc/crc32.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crc32.c diff --git a/src/misc/crypt/crypt.c b/src/misc/crypt/crypt.c index 71d4bd958..c624adaaa 100644 --- a/src/misc/crypt/crypt.c +++ b/src/misc/crypt/crypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt.c diff --git a/src/misc/crypt/crypt_argchk.c b/src/misc/crypt/crypt_argchk.c index da7306b17..479c6a4e8 100644 --- a/src/misc/crypt/crypt_argchk.c +++ b/src/misc/crypt/crypt_argchk.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_argchk.c diff --git a/src/misc/crypt/crypt_cipher_descriptor.c b/src/misc/crypt/crypt_cipher_descriptor.c index ccc989041..77411e6eb 100644 --- a/src/misc/crypt/crypt_cipher_descriptor.c +++ b/src/misc/crypt/crypt_cipher_descriptor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_cipher_descriptor.c diff --git a/src/misc/crypt/crypt_cipher_is_valid.c b/src/misc/crypt/crypt_cipher_is_valid.c index aebc94cc5..449024346 100644 --- a/src/misc/crypt/crypt_cipher_is_valid.c +++ b/src/misc/crypt/crypt_cipher_is_valid.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_cipher_is_valid.c diff --git a/src/misc/crypt/crypt_constants.c b/src/misc/crypt/crypt_constants.c index 902b77492..e29361ac9 100644 --- a/src/misc/crypt/crypt_constants.c +++ b/src/misc/crypt/crypt_constants.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_constants.c diff --git a/src/misc/crypt/crypt_find_cipher.c b/src/misc/crypt/crypt_find_cipher.c index ba908f4ec..a6a9d45f8 100644 --- a/src/misc/crypt/crypt_find_cipher.c +++ b/src/misc/crypt/crypt_find_cipher.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_cipher.c diff --git a/src/misc/crypt/crypt_find_cipher_any.c b/src/misc/crypt/crypt_find_cipher_any.c index 5cdcdf892..93b5039c7 100644 --- a/src/misc/crypt/crypt_find_cipher_any.c +++ b/src/misc/crypt/crypt_find_cipher_any.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_cipher_any.c diff --git a/src/misc/crypt/crypt_find_cipher_id.c b/src/misc/crypt/crypt_find_cipher_id.c index 34d004997..62b326634 100644 --- a/src/misc/crypt/crypt_find_cipher_id.c +++ b/src/misc/crypt/crypt_find_cipher_id.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_cipher_id.c diff --git a/src/misc/crypt/crypt_find_hash.c b/src/misc/crypt/crypt_find_hash.c index 19ee55cbe..f418c2726 100644 --- a/src/misc/crypt/crypt_find_hash.c +++ b/src/misc/crypt/crypt_find_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_hash.c diff --git a/src/misc/crypt/crypt_find_hash_any.c b/src/misc/crypt/crypt_find_hash_any.c index 413809fb4..a50f915a2 100644 --- a/src/misc/crypt/crypt_find_hash_any.c +++ b/src/misc/crypt/crypt_find_hash_any.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_hash_any.c diff --git a/src/misc/crypt/crypt_find_hash_id.c b/src/misc/crypt/crypt_find_hash_id.c index ea784e8ac..f8c2e7942 100644 --- a/src/misc/crypt/crypt_find_hash_id.c +++ b/src/misc/crypt/crypt_find_hash_id.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_hash_id.c diff --git a/src/misc/crypt/crypt_find_hash_oid.c b/src/misc/crypt/crypt_find_hash_oid.c index 026cc73da..797e9ca29 100644 --- a/src/misc/crypt/crypt_find_hash_oid.c +++ b/src/misc/crypt/crypt_find_hash_oid.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_hash_oid.c diff --git a/src/misc/crypt/crypt_find_prng.c b/src/misc/crypt/crypt_find_prng.c index a0cad16f7..8b7e0dce1 100644 --- a/src/misc/crypt/crypt_find_prng.c +++ b/src/misc/crypt/crypt_find_prng.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_find_prng.c diff --git a/src/misc/crypt/crypt_fsa.c b/src/misc/crypt/crypt_fsa.c index dc2a570cf..827b94d46 100644 --- a/src/misc/crypt/crypt_fsa.c +++ b/src/misc/crypt/crypt_fsa.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include /** diff --git a/src/misc/crypt/crypt_hash_descriptor.c b/src/misc/crypt/crypt_hash_descriptor.c index 6e1103f2c..730800371 100644 --- a/src/misc/crypt/crypt_hash_descriptor.c +++ b/src/misc/crypt/crypt_hash_descriptor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_hash_descriptor.c diff --git a/src/misc/crypt/crypt_hash_is_valid.c b/src/misc/crypt/crypt_hash_is_valid.c index ca75f0502..956c81795 100644 --- a/src/misc/crypt/crypt_hash_is_valid.c +++ b/src/misc/crypt/crypt_hash_is_valid.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_hash_is_valid.c diff --git a/src/misc/crypt/crypt_inits.c b/src/misc/crypt/crypt_inits.c index 871417caa..407b7c8c6 100644 --- a/src/misc/crypt/crypt_inits.c +++ b/src/misc/crypt/crypt_inits.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_inits.c diff --git a/src/misc/crypt/crypt_ltc_mp_descriptor.c b/src/misc/crypt/crypt_ltc_mp_descriptor.c index 0f1407c5e..2b9382d80 100644 --- a/src/misc/crypt/crypt_ltc_mp_descriptor.c +++ b/src/misc/crypt/crypt_ltc_mp_descriptor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /* Initialize ltc_mp to nulls, to force allocation on all platforms, including macOS. */ ltc_math_descriptor ltc_mp = { 0 }; diff --git a/src/misc/crypt/crypt_prng_descriptor.c b/src/misc/crypt/crypt_prng_descriptor.c index 276047c56..9f35c7d54 100644 --- a/src/misc/crypt/crypt_prng_descriptor.c +++ b/src/misc/crypt/crypt_prng_descriptor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_prng_descriptor.c diff --git a/src/misc/crypt/crypt_prng_is_valid.c b/src/misc/crypt/crypt_prng_is_valid.c index 9930a06c1..e6f4936fb 100644 --- a/src/misc/crypt/crypt_prng_is_valid.c +++ b/src/misc/crypt/crypt_prng_is_valid.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_prng_is_valid.c diff --git a/src/misc/crypt/crypt_prng_rng_descriptor.c b/src/misc/crypt/crypt_prng_rng_descriptor.c index 1a7933743..bdaf8b2e9 100644 --- a/src/misc/crypt/crypt_prng_rng_descriptor.c +++ b/src/misc/crypt/crypt_prng_rng_descriptor.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_PRNG_ENABLE_LTC_RNG unsigned long (*ltc_rng)(unsigned char *out, unsigned long outlen, void (*callback)(void)); diff --git a/src/misc/crypt/crypt_register_all_ciphers.c b/src/misc/crypt/crypt_register_all_ciphers.c index 8d1c939fb..d2512e034 100644 --- a/src/misc/crypt/crypt_register_all_ciphers.c +++ b/src/misc/crypt/crypt_register_all_ciphers.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_all_ciphers.c diff --git a/src/misc/crypt/crypt_register_all_hashes.c b/src/misc/crypt/crypt_register_all_hashes.c index 585b9b61c..a16a403cd 100644 --- a/src/misc/crypt/crypt_register_all_hashes.c +++ b/src/misc/crypt/crypt_register_all_hashes.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_all_hashes.c diff --git a/src/misc/crypt/crypt_register_all_prngs.c b/src/misc/crypt/crypt_register_all_prngs.c index aca8a369c..46cdfc969 100644 --- a/src/misc/crypt/crypt_register_all_prngs.c +++ b/src/misc/crypt/crypt_register_all_prngs.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_all_prngs.c diff --git a/src/misc/crypt/crypt_register_cipher.c b/src/misc/crypt/crypt_register_cipher.c index 85178d23b..1dc85ddcf 100644 --- a/src/misc/crypt/crypt_register_cipher.c +++ b/src/misc/crypt/crypt_register_cipher.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_cipher.c diff --git a/src/misc/crypt/crypt_register_hash.c b/src/misc/crypt/crypt_register_hash.c index fc7f4e02a..5b4c59915 100644 --- a/src/misc/crypt/crypt_register_hash.c +++ b/src/misc/crypt/crypt_register_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_hash.c diff --git a/src/misc/crypt/crypt_register_prng.c b/src/misc/crypt/crypt_register_prng.c index 9cbd634d2..d58501c1a 100644 --- a/src/misc/crypt/crypt_register_prng.c +++ b/src/misc/crypt/crypt_register_prng.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_register_prng.c diff --git a/src/misc/crypt/crypt_sizes.c b/src/misc/crypt/crypt_sizes.c index af70061c2..1f52f693d 100644 --- a/src/misc/crypt/crypt_sizes.c +++ b/src/misc/crypt/crypt_sizes.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_sizes.c diff --git a/src/misc/crypt/crypt_unregister_cipher.c b/src/misc/crypt/crypt_unregister_cipher.c index b57c73652..b7f713f7a 100644 --- a/src/misc/crypt/crypt_unregister_cipher.c +++ b/src/misc/crypt/crypt_unregister_cipher.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_unregister_cipher.c diff --git a/src/misc/crypt/crypt_unregister_hash.c b/src/misc/crypt/crypt_unregister_hash.c index dbbff330b..dee46ca11 100644 --- a/src/misc/crypt/crypt_unregister_hash.c +++ b/src/misc/crypt/crypt_unregister_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_unregister_hash.c diff --git a/src/misc/crypt/crypt_unregister_prng.c b/src/misc/crypt/crypt_unregister_prng.c index f7606effd..f784b4c7b 100644 --- a/src/misc/crypt/crypt_unregister_prng.c +++ b/src/misc/crypt/crypt_unregister_prng.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file crypt_unregister_prng.c diff --git a/src/misc/error_to_string.c b/src/misc/error_to_string.c index 3d1682861..64e5e6daa 100644 --- a/src/misc/error_to_string.c +++ b/src/misc/error_to_string.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file error_to_string.c diff --git a/src/misc/hkdf/hkdf.c b/src/misc/hkdf/hkdf.c index 0db4ed980..1ca3ae3fe 100644 --- a/src/misc/hkdf/hkdf.c +++ b/src/misc/hkdf/hkdf.c @@ -11,7 +11,7 @@ #include #include -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_HKDF diff --git a/src/misc/hkdf/hkdf_test.c b/src/misc/hkdf/hkdf_test.c index 0c5825580..e9d5d4f29 100644 --- a/src/misc/hkdf/hkdf_test.c +++ b/src/misc/hkdf/hkdf_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hkdf_test.c diff --git a/src/misc/mem_neq.c b/src/misc/mem_neq.c index fbd0cce1c..8bcc6e396 100644 --- a/src/misc/mem_neq.c +++ b/src/misc/mem_neq.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file mem_neq.c diff --git a/src/misc/padding/padding_depad.c b/src/misc/padding/padding_depad.c index 806035860..e02077fd4 100644 --- a/src/misc/padding/padding_depad.c +++ b/src/misc/padding/padding_depad.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_PADDING diff --git a/src/misc/padding/padding_pad.c b/src/misc/padding/padding_pad.c index 653e31db7..ae1a8ae2e 100644 --- a/src/misc/padding/padding_pad.c +++ b/src/misc/padding/padding_pad.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_PADDING diff --git a/src/misc/pk_get_oid.c b/src/misc/pk_get_oid.c index 4f75c5e42..587c75cc9 100644 --- a/src/misc/pk_get_oid.c +++ b/src/misc/pk_get_oid.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_DER static const oid_st rsa_oid = { diff --git a/src/misc/pk_oid_str.c b/src/misc/pk_oid_str.c index 84a47e15f..ef83fb183 100644 --- a/src/misc/pk_oid_str.c +++ b/src/misc/pk_oid_str.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" int pk_oid_str_to_num(const char *OID, unsigned long *oid, unsigned long *oidlen) { diff --git a/src/misc/pkcs5/pkcs_5_1.c b/src/misc/pkcs5/pkcs_5_1.c index 10325de22..079469839 100644 --- a/src/misc/pkcs5/pkcs_5_1.c +++ b/src/misc/pkcs5/pkcs_5_1.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_5_1.c diff --git a/src/misc/pkcs5/pkcs_5_2.c b/src/misc/pkcs5/pkcs_5_2.c index 2265bcb27..8d45a0e75 100644 --- a/src/misc/pkcs5/pkcs_5_2.c +++ b/src/misc/pkcs5/pkcs_5_2.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_5_2.c diff --git a/src/misc/pkcs5/pkcs_5_test.c b/src/misc/pkcs5/pkcs_5_test.c index f6e413b28..de2b30f93 100644 --- a/src/misc/pkcs5/pkcs_5_test.c +++ b/src/misc/pkcs5/pkcs_5_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file hkdf_test.c diff --git a/src/misc/zeromem.c b/src/misc/zeromem.c index 1a3b8ed3a..d5312d04e 100644 --- a/src/misc/zeromem.c +++ b/src/misc/zeromem.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file zeromem.c diff --git a/src/modes/cbc/cbc_decrypt.c b/src/modes/cbc/cbc_decrypt.c index e9f2785ac..9cbf6f30a 100644 --- a/src/modes/cbc/cbc_decrypt.c +++ b/src/modes/cbc/cbc_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_decrypt.c diff --git a/src/modes/cbc/cbc_done.c b/src/modes/cbc/cbc_done.c index 2f1293dff..da624dac6 100644 --- a/src/modes/cbc/cbc_done.c +++ b/src/modes/cbc/cbc_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_done.c diff --git a/src/modes/cbc/cbc_encrypt.c b/src/modes/cbc/cbc_encrypt.c index 00d85fcbc..6ba9a0ca3 100644 --- a/src/modes/cbc/cbc_encrypt.c +++ b/src/modes/cbc/cbc_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_encrypt.c diff --git a/src/modes/cbc/cbc_getiv.c b/src/modes/cbc/cbc_getiv.c index c3e3bd175..7fd4450e8 100644 --- a/src/modes/cbc/cbc_getiv.c +++ b/src/modes/cbc/cbc_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_getiv.c diff --git a/src/modes/cbc/cbc_setiv.c b/src/modes/cbc/cbc_setiv.c index 255d6419c..2952d1b68 100644 --- a/src/modes/cbc/cbc_setiv.c +++ b/src/modes/cbc/cbc_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_setiv.c diff --git a/src/modes/cbc/cbc_start.c b/src/modes/cbc/cbc_start.c index 6c5c52c80..5e51b1732 100644 --- a/src/modes/cbc/cbc_start.c +++ b/src/modes/cbc/cbc_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cbc_start.c diff --git a/src/modes/cfb/cfb_decrypt.c b/src/modes/cfb/cfb_decrypt.c index 9749a0bee..46c8f9573 100644 --- a/src/modes/cfb/cfb_decrypt.c +++ b/src/modes/cfb/cfb_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_decrypt.c diff --git a/src/modes/cfb/cfb_done.c b/src/modes/cfb/cfb_done.c index 24576c827..fecf91256 100644 --- a/src/modes/cfb/cfb_done.c +++ b/src/modes/cfb/cfb_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_done.c diff --git a/src/modes/cfb/cfb_encrypt.c b/src/modes/cfb/cfb_encrypt.c index 4503e5b06..eaefd3205 100644 --- a/src/modes/cfb/cfb_encrypt.c +++ b/src/modes/cfb/cfb_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_encrypt.c diff --git a/src/modes/cfb/cfb_getiv.c b/src/modes/cfb/cfb_getiv.c index 8efc7c68f..5bfefbe11 100644 --- a/src/modes/cfb/cfb_getiv.c +++ b/src/modes/cfb/cfb_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_getiv.c diff --git a/src/modes/cfb/cfb_setiv.c b/src/modes/cfb/cfb_setiv.c index 4495bf5fc..b1801e15d 100644 --- a/src/modes/cfb/cfb_setiv.c +++ b/src/modes/cfb/cfb_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_setiv.c diff --git a/src/modes/cfb/cfb_start.c b/src/modes/cfb/cfb_start.c index e49b119b6..caccb5aa5 100644 --- a/src/modes/cfb/cfb_start.c +++ b/src/modes/cfb/cfb_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file cfb_start.c diff --git a/src/modes/ctr/ctr_decrypt.c b/src/modes/ctr/ctr_decrypt.c index 500808907..16d7593c5 100644 --- a/src/modes/ctr/ctr_decrypt.c +++ b/src/modes/ctr/ctr_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_decrypt.c diff --git a/src/modes/ctr/ctr_done.c b/src/modes/ctr/ctr_done.c index 3de13c2b7..55e349267 100644 --- a/src/modes/ctr/ctr_done.c +++ b/src/modes/ctr/ctr_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_done.c diff --git a/src/modes/ctr/ctr_encrypt.c b/src/modes/ctr/ctr_encrypt.c index eb7328c2d..a5c093935 100644 --- a/src/modes/ctr/ctr_encrypt.c +++ b/src/modes/ctr/ctr_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_encrypt.c diff --git a/src/modes/ctr/ctr_getiv.c b/src/modes/ctr/ctr_getiv.c index 1d950de39..c822ef8f9 100644 --- a/src/modes/ctr/ctr_getiv.c +++ b/src/modes/ctr/ctr_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_getiv.c diff --git a/src/modes/ctr/ctr_setiv.c b/src/modes/ctr/ctr_setiv.c index 64d73a1f4..81b9c227e 100644 --- a/src/modes/ctr/ctr_setiv.c +++ b/src/modes/ctr/ctr_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_setiv.c diff --git a/src/modes/ctr/ctr_start.c b/src/modes/ctr/ctr_start.c index 039fdd6f5..3ef3adec7 100644 --- a/src/modes/ctr/ctr_start.c +++ b/src/modes/ctr/ctr_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_start.c diff --git a/src/modes/ctr/ctr_test.c b/src/modes/ctr/ctr_test.c index 878d42556..42f742e06 100644 --- a/src/modes/ctr/ctr_test.c +++ b/src/modes/ctr/ctr_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ctr_test.c diff --git a/src/modes/ecb/ecb_decrypt.c b/src/modes/ecb/ecb_decrypt.c index 213b253a8..b8727d2f5 100644 --- a/src/modes/ecb/ecb_decrypt.c +++ b/src/modes/ecb/ecb_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecb_decrypt.c diff --git a/src/modes/ecb/ecb_done.c b/src/modes/ecb/ecb_done.c index 6df7eecf6..1a441b474 100644 --- a/src/modes/ecb/ecb_done.c +++ b/src/modes/ecb/ecb_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecb_done.c diff --git a/src/modes/ecb/ecb_encrypt.c b/src/modes/ecb/ecb_encrypt.c index 5d4661f57..d31635ba3 100644 --- a/src/modes/ecb/ecb_encrypt.c +++ b/src/modes/ecb/ecb_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecb_encrypt.c diff --git a/src/modes/ecb/ecb_start.c b/src/modes/ecb/ecb_start.c index ecd301bd9..fd25d31da 100644 --- a/src/modes/ecb/ecb_start.c +++ b/src/modes/ecb/ecb_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecb_start.c diff --git a/src/modes/f8/f8_decrypt.c b/src/modes/f8/f8_decrypt.c index 9c92952b7..1ab12911c 100644 --- a/src/modes/f8/f8_decrypt.c +++ b/src/modes/f8/f8_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_decrypt.c diff --git a/src/modes/f8/f8_done.c b/src/modes/f8/f8_done.c index 3f0af661b..2767d9b30 100644 --- a/src/modes/f8/f8_done.c +++ b/src/modes/f8/f8_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_done.c diff --git a/src/modes/f8/f8_encrypt.c b/src/modes/f8/f8_encrypt.c index 058f25aa4..ce7726476 100644 --- a/src/modes/f8/f8_encrypt.c +++ b/src/modes/f8/f8_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_encrypt.c diff --git a/src/modes/f8/f8_getiv.c b/src/modes/f8/f8_getiv.c index 19915d616..60e86420c 100644 --- a/src/modes/f8/f8_getiv.c +++ b/src/modes/f8/f8_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_getiv.c diff --git a/src/modes/f8/f8_setiv.c b/src/modes/f8/f8_setiv.c index 8f45a3f44..b6105dcb7 100644 --- a/src/modes/f8/f8_setiv.c +++ b/src/modes/f8/f8_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_setiv.c diff --git a/src/modes/f8/f8_start.c b/src/modes/f8/f8_start.c index 680170294..b3a855196 100644 --- a/src/modes/f8/f8_start.c +++ b/src/modes/f8/f8_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_start.c diff --git a/src/modes/f8/f8_test_mode.c b/src/modes/f8/f8_test_mode.c index 778cd354d..5a0784742 100644 --- a/src/modes/f8/f8_test_mode.c +++ b/src/modes/f8/f8_test_mode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file f8_test_mode.c diff --git a/src/modes/lrw/lrw_decrypt.c b/src/modes/lrw/lrw_decrypt.c index bfedb64da..ef013f322 100644 --- a/src/modes/lrw/lrw_decrypt.c +++ b/src/modes/lrw/lrw_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_decrypt.c diff --git a/src/modes/lrw/lrw_done.c b/src/modes/lrw/lrw_done.c index 0088f6287..e730de8c7 100644 --- a/src/modes/lrw/lrw_done.c +++ b/src/modes/lrw/lrw_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_done.c diff --git a/src/modes/lrw/lrw_encrypt.c b/src/modes/lrw/lrw_encrypt.c index 0738648e1..b9331a4ff 100644 --- a/src/modes/lrw/lrw_encrypt.c +++ b/src/modes/lrw/lrw_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_encrypt.c diff --git a/src/modes/lrw/lrw_getiv.c b/src/modes/lrw/lrw_getiv.c index f0c30d845..aeb3cec6d 100644 --- a/src/modes/lrw/lrw_getiv.c +++ b/src/modes/lrw/lrw_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_getiv.c diff --git a/src/modes/lrw/lrw_process.c b/src/modes/lrw/lrw_process.c index 0896bc641..106e875ab 100644 --- a/src/modes/lrw/lrw_process.c +++ b/src/modes/lrw/lrw_process.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_process.c diff --git a/src/modes/lrw/lrw_setiv.c b/src/modes/lrw/lrw_setiv.c index 5c04157a6..4d25bc752 100644 --- a/src/modes/lrw/lrw_setiv.c +++ b/src/modes/lrw/lrw_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_setiv.c diff --git a/src/modes/lrw/lrw_start.c b/src/modes/lrw/lrw_start.c index e13d3bdd3..e8c367862 100644 --- a/src/modes/lrw/lrw_start.c +++ b/src/modes/lrw/lrw_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_start.c diff --git a/src/modes/lrw/lrw_test.c b/src/modes/lrw/lrw_test.c index 7762d47d8..8101e7c36 100644 --- a/src/modes/lrw/lrw_test.c +++ b/src/modes/lrw/lrw_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file lrw_test.c diff --git a/src/modes/ofb/ofb_decrypt.c b/src/modes/ofb/ofb_decrypt.c index f40280263..37afc1c1c 100644 --- a/src/modes/ofb/ofb_decrypt.c +++ b/src/modes/ofb/ofb_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_decrypt.c diff --git a/src/modes/ofb/ofb_done.c b/src/modes/ofb/ofb_done.c index 9caddbeb5..53937b455 100644 --- a/src/modes/ofb/ofb_done.c +++ b/src/modes/ofb/ofb_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_done.c diff --git a/src/modes/ofb/ofb_encrypt.c b/src/modes/ofb/ofb_encrypt.c index 415842d3e..f23c168b4 100644 --- a/src/modes/ofb/ofb_encrypt.c +++ b/src/modes/ofb/ofb_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_encrypt.c diff --git a/src/modes/ofb/ofb_getiv.c b/src/modes/ofb/ofb_getiv.c index bfa4eb226..9525cb8a0 100644 --- a/src/modes/ofb/ofb_getiv.c +++ b/src/modes/ofb/ofb_getiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_getiv.c diff --git a/src/modes/ofb/ofb_setiv.c b/src/modes/ofb/ofb_setiv.c index 005dbc7ad..e8e7c15dd 100644 --- a/src/modes/ofb/ofb_setiv.c +++ b/src/modes/ofb/ofb_setiv.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_setiv.c diff --git a/src/modes/ofb/ofb_start.c b/src/modes/ofb/ofb_start.c index fe7a764fd..2a19e6be7 100644 --- a/src/modes/ofb/ofb_start.c +++ b/src/modes/ofb/ofb_start.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ofb_start.c diff --git a/src/modes/xts/xts_decrypt.c b/src/modes/xts/xts_decrypt.c index ec6d06a07..ab7d2b6a9 100644 --- a/src/modes/xts/xts_decrypt.c +++ b/src/modes/xts/xts_decrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects diff --git a/src/modes/xts/xts_done.c b/src/modes/xts/xts_done.c index 558c04327..26b6fae67 100644 --- a/src/modes/xts/xts_done.c +++ b/src/modes/xts/xts_done.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects diff --git a/src/modes/xts/xts_encrypt.c b/src/modes/xts/xts_encrypt.c index 00c790589..af7d5644f 100644 --- a/src/modes/xts/xts_encrypt.c +++ b/src/modes/xts/xts_encrypt.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects diff --git a/src/modes/xts/xts_init.c b/src/modes/xts/xts_init.c index be0ac6ad4..01a47c7c1 100644 --- a/src/modes/xts/xts_init.c +++ b/src/modes/xts/xts_init.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects diff --git a/src/modes/xts/xts_mult_x.c b/src/modes/xts/xts_mult_x.c index 3fad22bd8..74aa404d5 100644 --- a/src/modes/xts/xts_mult_x.c +++ b/src/modes/xts/xts_mult_x.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects diff --git a/src/modes/xts/xts_test.c b/src/modes/xts/xts_test.c index 4b73b1cd5..9d41fe6de 100644 --- a/src/modes/xts/xts_test.c +++ b/src/modes/xts/xts_test.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_XTS_MODE diff --git a/src/pk/asn1/der/bit/der_decode_bit_string.c b/src/pk/asn1/der/bit/der_decode_bit_string.c index 6f25cd9af..42b3523e4 100644 --- a/src/pk/asn1/der/bit/der_decode_bit_string.c +++ b/src/pk/asn1/der/bit/der_decode_bit_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_bit_string.c diff --git a/src/pk/asn1/der/bit/der_decode_raw_bit_string.c b/src/pk/asn1/der/bit/der_decode_raw_bit_string.c index 7e7a4608b..ed6440e71 100644 --- a/src/pk/asn1/der/bit/der_decode_raw_bit_string.c +++ b/src/pk/asn1/der/bit/der_decode_raw_bit_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_bit_string.c diff --git a/src/pk/asn1/der/bit/der_encode_bit_string.c b/src/pk/asn1/der/bit/der_encode_bit_string.c index 7b2c6afac..562173379 100644 --- a/src/pk/asn1/der/bit/der_encode_bit_string.c +++ b/src/pk/asn1/der/bit/der_encode_bit_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_bit_string.c diff --git a/src/pk/asn1/der/bit/der_encode_raw_bit_string.c b/src/pk/asn1/der/bit/der_encode_raw_bit_string.c index e884dabe6..a98a29708 100644 --- a/src/pk/asn1/der/bit/der_encode_raw_bit_string.c +++ b/src/pk/asn1/der/bit/der_encode_raw_bit_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_bit_string.c diff --git a/src/pk/asn1/der/bit/der_length_bit_string.c b/src/pk/asn1/der/bit/der_length_bit_string.c index 7a6520841..edfcc8486 100644 --- a/src/pk/asn1/der/bit/der_length_bit_string.c +++ b/src/pk/asn1/der/bit/der_length_bit_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_bit_string.c diff --git a/src/pk/asn1/der/boolean/der_decode_boolean.c b/src/pk/asn1/der/boolean/der_decode_boolean.c index da60ca902..0fddf5ca7 100644 --- a/src/pk/asn1/der/boolean/der_decode_boolean.c +++ b/src/pk/asn1/der/boolean/der_decode_boolean.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_boolean.c diff --git a/src/pk/asn1/der/boolean/der_encode_boolean.c b/src/pk/asn1/der/boolean/der_encode_boolean.c index c5cacdd41..71bdf8d7a 100644 --- a/src/pk/asn1/der/boolean/der_encode_boolean.c +++ b/src/pk/asn1/der/boolean/der_encode_boolean.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_boolean.c diff --git a/src/pk/asn1/der/boolean/der_length_boolean.c b/src/pk/asn1/der/boolean/der_length_boolean.c index a1a3a7b92..6840e5c7a 100644 --- a/src/pk/asn1/der/boolean/der_length_boolean.c +++ b/src/pk/asn1/der/boolean/der_length_boolean.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_boolean.c diff --git a/src/pk/asn1/der/choice/der_decode_choice.c b/src/pk/asn1/der/choice/der_decode_choice.c index 6e17a4b70..e2ba83423 100644 --- a/src/pk/asn1/der/choice/der_decode_choice.c +++ b/src/pk/asn1/der/choice/der_decode_choice.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_choice.c diff --git a/src/pk/asn1/der/custom_type/der_decode_custom_type.c b/src/pk/asn1/der/custom_type/der_decode_custom_type.c index 8a0bc85d5..17e24b6ab 100644 --- a/src/pk/asn1/der/custom_type/der_decode_custom_type.c +++ b/src/pk/asn1/der/custom_type/der_decode_custom_type.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** diff --git a/src/pk/asn1/der/custom_type/der_encode_custom_type.c b/src/pk/asn1/der/custom_type/der_encode_custom_type.c index d19774c47..5bbd65bee 100644 --- a/src/pk/asn1/der/custom_type/der_encode_custom_type.c +++ b/src/pk/asn1/der/custom_type/der_encode_custom_type.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** diff --git a/src/pk/asn1/der/custom_type/der_length_custom_type.c b/src/pk/asn1/der/custom_type/der_length_custom_type.c index aecc46476..67b40b4ac 100644 --- a/src/pk/asn1/der/custom_type/der_length_custom_type.c +++ b/src/pk/asn1/der/custom_type/der_length_custom_type.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_custom_type.c diff --git a/src/pk/asn1/der/general/der_asn1_maps.c b/src/pk/asn1/der/general/der_asn1_maps.c index ba9820f4e..a49504e75 100644 --- a/src/pk/asn1/der/general/der_asn1_maps.c +++ b/src/pk/asn1/der/general/der_asn1_maps.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_asn1_maps.c diff --git a/src/pk/asn1/der/general/der_decode_asn1_identifier.c b/src/pk/asn1/der/general/der_decode_asn1_identifier.c index 27296fcd3..26cf20af3 100644 --- a/src/pk/asn1/der/general/der_decode_asn1_identifier.c +++ b/src/pk/asn1/der/general/der_decode_asn1_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_asn1_identifier.c diff --git a/src/pk/asn1/der/general/der_decode_asn1_length.c b/src/pk/asn1/der/general/der_decode_asn1_length.c index 0e1bc6c2b..0021eea95 100644 --- a/src/pk/asn1/der/general/der_decode_asn1_length.c +++ b/src/pk/asn1/der/general/der_decode_asn1_length.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_asn1_length.c diff --git a/src/pk/asn1/der/general/der_encode_asn1_identifier.c b/src/pk/asn1/der/general/der_encode_asn1_identifier.c index 82145d568..c366ad3fd 100644 --- a/src/pk/asn1/der/general/der_encode_asn1_identifier.c +++ b/src/pk/asn1/der/general/der_encode_asn1_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_asn1_identifier.c diff --git a/src/pk/asn1/der/general/der_encode_asn1_length.c b/src/pk/asn1/der/general/der_encode_asn1_length.c index 0d871afeb..645626a5f 100644 --- a/src/pk/asn1/der/general/der_encode_asn1_length.c +++ b/src/pk/asn1/der/general/der_encode_asn1_length.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_asn1_length.c diff --git a/src/pk/asn1/der/general/der_length_asn1_identifier.c b/src/pk/asn1/der/general/der_length_asn1_identifier.c index 40e76f028..ac5007572 100644 --- a/src/pk/asn1/der/general/der_length_asn1_identifier.c +++ b/src/pk/asn1/der/general/der_length_asn1_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_asn1_identifier.c diff --git a/src/pk/asn1/der/general/der_length_asn1_length.c b/src/pk/asn1/der/general/der_length_asn1_length.c index 1271e1cbc..1ce8be4fc 100644 --- a/src/pk/asn1/der/general/der_length_asn1_length.c +++ b/src/pk/asn1/der/general/der_length_asn1_length.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_asn1_length.c diff --git a/src/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c b/src/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c index 016a4c2c2..a5f847392 100644 --- a/src/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c +++ b/src/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_generalizedtime.c diff --git a/src/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c b/src/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c index d7c813428..018d2efe6 100644 --- a/src/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c +++ b/src/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_utctime.c diff --git a/src/pk/asn1/der/generalizedtime/der_length_generalizedtime.c b/src/pk/asn1/der/generalizedtime/der_length_generalizedtime.c index f3fbcc6fb..a3ba1899b 100644 --- a/src/pk/asn1/der/generalizedtime/der_length_generalizedtime.c +++ b/src/pk/asn1/der/generalizedtime/der_length_generalizedtime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_utctime.c diff --git a/src/pk/asn1/der/ia5/der_decode_ia5_string.c b/src/pk/asn1/der/ia5/der_decode_ia5_string.c index 15e90f88a..e5aed676d 100644 --- a/src/pk/asn1/der/ia5/der_decode_ia5_string.c +++ b/src/pk/asn1/der/ia5/der_decode_ia5_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_ia5_string.c diff --git a/src/pk/asn1/der/ia5/der_encode_ia5_string.c b/src/pk/asn1/der/ia5/der_encode_ia5_string.c index fee1c703e..fb6a4f8ef 100644 --- a/src/pk/asn1/der/ia5/der_encode_ia5_string.c +++ b/src/pk/asn1/der/ia5/der_encode_ia5_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_ia5_string.c diff --git a/src/pk/asn1/der/ia5/der_length_ia5_string.c b/src/pk/asn1/der/ia5/der_length_ia5_string.c index 422c4d337..027629999 100644 --- a/src/pk/asn1/der/ia5/der_length_ia5_string.c +++ b/src/pk/asn1/der/ia5/der_length_ia5_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_ia5_string.c diff --git a/src/pk/asn1/der/integer/der_decode_integer.c b/src/pk/asn1/der/integer/der_decode_integer.c index e5c5c122b..aed4c86cc 100644 --- a/src/pk/asn1/der/integer/der_decode_integer.c +++ b/src/pk/asn1/der/integer/der_decode_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_integer.c diff --git a/src/pk/asn1/der/integer/der_encode_integer.c b/src/pk/asn1/der/integer/der_encode_integer.c index 3bd959320..3bead0a01 100644 --- a/src/pk/asn1/der/integer/der_encode_integer.c +++ b/src/pk/asn1/der/integer/der_encode_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_integer.c diff --git a/src/pk/asn1/der/integer/der_length_integer.c b/src/pk/asn1/der/integer/der_length_integer.c index 60daffa7b..7dce18ef5 100644 --- a/src/pk/asn1/der/integer/der_length_integer.c +++ b/src/pk/asn1/der/integer/der_length_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_integer.c diff --git a/src/pk/asn1/der/object_identifier/der_decode_object_identifier.c b/src/pk/asn1/der/object_identifier/der_decode_object_identifier.c index 48a954730..f49786272 100644 --- a/src/pk/asn1/der/object_identifier/der_decode_object_identifier.c +++ b/src/pk/asn1/der/object_identifier/der_decode_object_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_object_identifier.c diff --git a/src/pk/asn1/der/object_identifier/der_encode_object_identifier.c b/src/pk/asn1/der/object_identifier/der_encode_object_identifier.c index af2a8f73b..881809f64 100644 --- a/src/pk/asn1/der/object_identifier/der_encode_object_identifier.c +++ b/src/pk/asn1/der/object_identifier/der_encode_object_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_object_identifier.c diff --git a/src/pk/asn1/der/object_identifier/der_length_object_identifier.c b/src/pk/asn1/der/object_identifier/der_length_object_identifier.c index 9db5fe1ef..cc22a3c9b 100644 --- a/src/pk/asn1/der/object_identifier/der_length_object_identifier.c +++ b/src/pk/asn1/der/object_identifier/der_length_object_identifier.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_object_identifier.c diff --git a/src/pk/asn1/der/octet/der_decode_octet_string.c b/src/pk/asn1/der/octet/der_decode_octet_string.c index a9b3cdc56..f6006378b 100644 --- a/src/pk/asn1/der/octet/der_decode_octet_string.c +++ b/src/pk/asn1/der/octet/der_decode_octet_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_octet_string.c diff --git a/src/pk/asn1/der/octet/der_encode_octet_string.c b/src/pk/asn1/der/octet/der_encode_octet_string.c index fd79c6732..f27451587 100644 --- a/src/pk/asn1/der/octet/der_encode_octet_string.c +++ b/src/pk/asn1/der/octet/der_encode_octet_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_octet_string.c diff --git a/src/pk/asn1/der/octet/der_length_octet_string.c b/src/pk/asn1/der/octet/der_length_octet_string.c index 9e5386a3f..8c3db1c1b 100644 --- a/src/pk/asn1/der/octet/der_length_octet_string.c +++ b/src/pk/asn1/der/octet/der_length_octet_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_octet_string.c diff --git a/src/pk/asn1/der/printable_string/der_decode_printable_string.c b/src/pk/asn1/der/printable_string/der_decode_printable_string.c index 1ec9e3c71..2cd88242c 100644 --- a/src/pk/asn1/der/printable_string/der_decode_printable_string.c +++ b/src/pk/asn1/der/printable_string/der_decode_printable_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_printable_string.c diff --git a/src/pk/asn1/der/printable_string/der_encode_printable_string.c b/src/pk/asn1/der/printable_string/der_encode_printable_string.c index bd5939167..c2132de71 100644 --- a/src/pk/asn1/der/printable_string/der_encode_printable_string.c +++ b/src/pk/asn1/der/printable_string/der_encode_printable_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_printable_string.c diff --git a/src/pk/asn1/der/printable_string/der_length_printable_string.c b/src/pk/asn1/der/printable_string/der_length_printable_string.c index b6eb85023..3d48c77a8 100644 --- a/src/pk/asn1/der/printable_string/der_length_printable_string.c +++ b/src/pk/asn1/der/printable_string/der_length_printable_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_printable_string.c diff --git a/src/pk/asn1/der/sequence/der_decode_sequence_ex.c b/src/pk/asn1/der/sequence/der_decode_sequence_ex.c index 10cfd218e..8143530e8 100644 --- a/src/pk/asn1/der/sequence/der_decode_sequence_ex.c +++ b/src/pk/asn1/der/sequence/der_decode_sequence_ex.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** diff --git a/src/pk/asn1/der/sequence/der_decode_sequence_flexi.c b/src/pk/asn1/der/sequence/der_decode_sequence_flexi.c index a6c3cf76d..94c398831 100644 --- a/src/pk/asn1/der/sequence/der_decode_sequence_flexi.c +++ b/src/pk/asn1/der/sequence/der_decode_sequence_flexi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_sequence_flexi.c diff --git a/src/pk/asn1/der/sequence/der_decode_sequence_multi.c b/src/pk/asn1/der/sequence/der_decode_sequence_multi.c index 280d7cdb5..1bb75d27a 100644 --- a/src/pk/asn1/der/sequence/der_decode_sequence_multi.c +++ b/src/pk/asn1/der/sequence/der_decode_sequence_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include diff --git a/src/pk/asn1/der/sequence/der_encode_sequence_ex.c b/src/pk/asn1/der/sequence/der_encode_sequence_ex.c index a69db8f80..50b3a4cd0 100644 --- a/src/pk/asn1/der/sequence/der_encode_sequence_ex.c +++ b/src/pk/asn1/der/sequence/der_encode_sequence_ex.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** diff --git a/src/pk/asn1/der/sequence/der_encode_sequence_multi.c b/src/pk/asn1/der/sequence/der_encode_sequence_multi.c index c8ec59a95..febb4d4ca 100644 --- a/src/pk/asn1/der/sequence/der_encode_sequence_multi.c +++ b/src/pk/asn1/der/sequence/der_encode_sequence_multi.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #include diff --git a/src/pk/asn1/der/sequence/der_length_sequence.c b/src/pk/asn1/der/sequence/der_length_sequence.c index 74628545a..df7f2aafd 100644 --- a/src/pk/asn1/der/sequence/der_length_sequence.c +++ b/src/pk/asn1/der/sequence/der_length_sequence.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_sequence.c diff --git a/src/pk/asn1/der/sequence/der_sequence_free.c b/src/pk/asn1/der/sequence/der_sequence_free.c index 3c2a66383..bff190942 100644 --- a/src/pk/asn1/der/sequence/der_sequence_free.c +++ b/src/pk/asn1/der/sequence/der_sequence_free.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_sequence_free.c diff --git a/src/pk/asn1/der/sequence/der_sequence_shrink.c b/src/pk/asn1/der/sequence/der_sequence_shrink.c index fdfe91bbb..eb9335fd6 100644 --- a/src/pk/asn1/der/sequence/der_sequence_shrink.c +++ b/src/pk/asn1/der/sequence/der_sequence_shrink.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_sequence_shrink.c diff --git a/src/pk/asn1/der/set/der_encode_set.c b/src/pk/asn1/der/set/der_encode_set.c index eba52422a..636669c71 100644 --- a/src/pk/asn1/der/set/der_encode_set.c +++ b/src/pk/asn1/der/set/der_encode_set.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_set.c diff --git a/src/pk/asn1/der/set/der_encode_setof.c b/src/pk/asn1/der/set/der_encode_setof.c index 3bac34596..d1dc73b4d 100644 --- a/src/pk/asn1/der/set/der_encode_setof.c +++ b/src/pk/asn1/der/set/der_encode_setof.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_setof.c diff --git a/src/pk/asn1/der/short_integer/der_decode_short_integer.c b/src/pk/asn1/der/short_integer/der_decode_short_integer.c index 71debf310..3b01323e1 100644 --- a/src/pk/asn1/der/short_integer/der_decode_short_integer.c +++ b/src/pk/asn1/der/short_integer/der_decode_short_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_short_integer.c diff --git a/src/pk/asn1/der/short_integer/der_encode_short_integer.c b/src/pk/asn1/der/short_integer/der_encode_short_integer.c index ea413ebc4..ddab980da 100644 --- a/src/pk/asn1/der/short_integer/der_encode_short_integer.c +++ b/src/pk/asn1/der/short_integer/der_encode_short_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_short_integer.c diff --git a/src/pk/asn1/der/short_integer/der_length_short_integer.c b/src/pk/asn1/der/short_integer/der_length_short_integer.c index 8c1de2896..75c719b8f 100644 --- a/src/pk/asn1/der/short_integer/der_length_short_integer.c +++ b/src/pk/asn1/der/short_integer/der_length_short_integer.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_short_integer.c diff --git a/src/pk/asn1/der/teletex_string/der_decode_teletex_string.c b/src/pk/asn1/der/teletex_string/der_decode_teletex_string.c index cd530a2be..9389369a0 100644 --- a/src/pk/asn1/der/teletex_string/der_decode_teletex_string.c +++ b/src/pk/asn1/der/teletex_string/der_decode_teletex_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_teletex_string.c diff --git a/src/pk/asn1/der/teletex_string/der_length_teletex_string.c b/src/pk/asn1/der/teletex_string/der_length_teletex_string.c index a35c6d769..13b448796 100644 --- a/src/pk/asn1/der/teletex_string/der_length_teletex_string.c +++ b/src/pk/asn1/der/teletex_string/der_length_teletex_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_teletex_string.c diff --git a/src/pk/asn1/der/utctime/der_decode_utctime.c b/src/pk/asn1/der/utctime/der_decode_utctime.c index 07fcb8070..fba9184b4 100644 --- a/src/pk/asn1/der/utctime/der_decode_utctime.c +++ b/src/pk/asn1/der/utctime/der_decode_utctime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_utctime.c diff --git a/src/pk/asn1/der/utctime/der_encode_utctime.c b/src/pk/asn1/der/utctime/der_encode_utctime.c index 19aa9da34..258afcad8 100644 --- a/src/pk/asn1/der/utctime/der_encode_utctime.c +++ b/src/pk/asn1/der/utctime/der_encode_utctime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_utctime.c diff --git a/src/pk/asn1/der/utctime/der_length_utctime.c b/src/pk/asn1/der/utctime/der_length_utctime.c index c0d1b57bc..c85a93573 100644 --- a/src/pk/asn1/der/utctime/der_length_utctime.c +++ b/src/pk/asn1/der/utctime/der_length_utctime.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_utctime.c diff --git a/src/pk/asn1/der/utf8/der_decode_utf8_string.c b/src/pk/asn1/der/utf8/der_decode_utf8_string.c index c86d66039..94555b99f 100644 --- a/src/pk/asn1/der/utf8/der_decode_utf8_string.c +++ b/src/pk/asn1/der/utf8/der_decode_utf8_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_decode_utf8_string.c diff --git a/src/pk/asn1/der/utf8/der_encode_utf8_string.c b/src/pk/asn1/der/utf8/der_encode_utf8_string.c index 1c6e09b5e..5deb11ae7 100644 --- a/src/pk/asn1/der/utf8/der_encode_utf8_string.c +++ b/src/pk/asn1/der/utf8/der_encode_utf8_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_encode_utf8_string.c diff --git a/src/pk/asn1/der/utf8/der_length_utf8_string.c b/src/pk/asn1/der/utf8/der_length_utf8_string.c index b4292846d..48eed3bb4 100644 --- a/src/pk/asn1/der/utf8/der_length_utf8_string.c +++ b/src/pk/asn1/der/utf8/der_length_utf8_string.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file der_length_utf8_string.c diff --git a/src/pk/asn1/x509/x509_decode_subject_public_key_info.c b/src/pk/asn1/x509/x509_decode_subject_public_key_info.c index 134eac2bf..ba51f2929 100644 --- a/src/pk/asn1/x509/x509_decode_subject_public_key_info.c +++ b/src/pk/asn1/x509/x509_decode_subject_public_key_info.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file x509_decode_subject_public_key_info.c diff --git a/src/pk/asn1/x509/x509_encode_subject_public_key_info.c b/src/pk/asn1/x509/x509_encode_subject_public_key_info.c index 25c1195d3..bb29fed82 100644 --- a/src/pk/asn1/x509/x509_encode_subject_public_key_info.c +++ b/src/pk/asn1/x509/x509_encode_subject_public_key_info.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file x509_encode_subject_public_key_info.c diff --git a/src/pk/dh/dh.c b/src/pk/dh/dh.c index 199a83d97..793b5f0c0 100644 --- a/src/pk/dh/dh.c +++ b/src/pk/dh/dh.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_check_pubkey.c b/src/pk/dh/dh_check_pubkey.c index 5fee5505a..bdd07031d 100644 --- a/src/pk/dh/dh_check_pubkey.c +++ b/src/pk/dh/dh_check_pubkey.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_export.c b/src/pk/dh/dh_export.c index f28ec10a5..7a94fa296 100644 --- a/src/pk/dh/dh_export.c +++ b/src/pk/dh/dh_export.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_export_key.c b/src/pk/dh/dh_export_key.c index afcbce534..d42844aee 100644 --- a/src/pk/dh/dh_export_key.c +++ b/src/pk/dh/dh_export_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_free.c b/src/pk/dh/dh_free.c index b4f58cacf..32510061c 100644 --- a/src/pk/dh/dh_free.c +++ b/src/pk/dh/dh_free.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_generate_key.c b/src/pk/dh/dh_generate_key.c index 69fb6f9d9..ba737fcf6 100644 --- a/src/pk/dh/dh_generate_key.c +++ b/src/pk/dh/dh_generate_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_import.c b/src/pk/dh/dh_import.c index 601e5e747..2e8d2f2ee 100644 --- a/src/pk/dh/dh_import.c +++ b/src/pk/dh/dh_import.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_set.c b/src/pk/dh/dh_set.c index 8d0af7d20..fd9163fd0 100644 --- a/src/pk/dh/dh_set.c +++ b/src/pk/dh/dh_set.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_set_pg_dhparam.c b/src/pk/dh/dh_set_pg_dhparam.c index 7003011d1..98599c30b 100644 --- a/src/pk/dh/dh_set_pg_dhparam.c +++ b/src/pk/dh/dh_set_pg_dhparam.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dh/dh_shared_secret.c b/src/pk/dh/dh_shared_secret.c index da36408c6..a3890a5f0 100644 --- a/src/pk/dh/dh_shared_secret.c +++ b/src/pk/dh/dh_shared_secret.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDH diff --git a/src/pk/dsa/dsa_decrypt_key.c b/src/pk/dsa/dsa_decrypt_key.c index aa7ac678a..754a07b7c 100644 --- a/src/pk/dsa/dsa_decrypt_key.c +++ b/src/pk/dsa/dsa_decrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_decrypt_key.c diff --git a/src/pk/dsa/dsa_encrypt_key.c b/src/pk/dsa/dsa_encrypt_key.c index 61dfbbd2a..628698539 100644 --- a/src/pk/dsa/dsa_encrypt_key.c +++ b/src/pk/dsa/dsa_encrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_encrypt_key.c diff --git a/src/pk/dsa/dsa_export.c b/src/pk/dsa/dsa_export.c index e406cd8e2..9058dd315 100644 --- a/src/pk/dsa/dsa_export.c +++ b/src/pk/dsa/dsa_export.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_export.c diff --git a/src/pk/dsa/dsa_free.c b/src/pk/dsa/dsa_free.c index 5cac656f6..dc9d4367c 100644 --- a/src/pk/dsa/dsa_free.c +++ b/src/pk/dsa/dsa_free.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_free.c diff --git a/src/pk/dsa/dsa_generate_key.c b/src/pk/dsa/dsa_generate_key.c index 18b2df631..9e7489e3e 100644 --- a/src/pk/dsa/dsa_generate_key.c +++ b/src/pk/dsa/dsa_generate_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_make_key.c diff --git a/src/pk/dsa/dsa_generate_pqg.c b/src/pk/dsa/dsa_generate_pqg.c index 8c5f55829..94a1c4047 100644 --- a/src/pk/dsa/dsa_generate_pqg.c +++ b/src/pk/dsa/dsa_generate_pqg.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_generate_pqg.c diff --git a/src/pk/dsa/dsa_import.c b/src/pk/dsa/dsa_import.c index 5e77b1e73..b43daeb56 100644 --- a/src/pk/dsa/dsa_import.c +++ b/src/pk/dsa/dsa_import.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_import.c diff --git a/src/pk/dsa/dsa_make_key.c b/src/pk/dsa/dsa_make_key.c index 8ac08f845..e7628e1e1 100644 --- a/src/pk/dsa/dsa_make_key.c +++ b/src/pk/dsa/dsa_make_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_make_key.c diff --git a/src/pk/dsa/dsa_set.c b/src/pk/dsa/dsa_set.c index a4d4042fe..77461e113 100644 --- a/src/pk/dsa/dsa_set.c +++ b/src/pk/dsa/dsa_set.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDSA diff --git a/src/pk/dsa/dsa_set_pqg_dsaparam.c b/src/pk/dsa/dsa_set_pqg_dsaparam.c index edbed1c4e..2d55985e8 100644 --- a/src/pk/dsa/dsa_set_pqg_dsaparam.c +++ b/src/pk/dsa/dsa_set_pqg_dsaparam.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MDSA diff --git a/src/pk/dsa/dsa_shared_secret.c b/src/pk/dsa/dsa_shared_secret.c index 0568834f6..ca6ce7fbb 100644 --- a/src/pk/dsa/dsa_shared_secret.c +++ b/src/pk/dsa/dsa_shared_secret.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_shared_secret.c diff --git a/src/pk/dsa/dsa_sign_hash.c b/src/pk/dsa/dsa_sign_hash.c index 04ca330b9..cd58292a2 100644 --- a/src/pk/dsa/dsa_sign_hash.c +++ b/src/pk/dsa/dsa_sign_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_sign_hash.c diff --git a/src/pk/dsa/dsa_verify_hash.c b/src/pk/dsa/dsa_verify_hash.c index ea7d5ada6..6bf3a0198 100644 --- a/src/pk/dsa/dsa_verify_hash.c +++ b/src/pk/dsa/dsa_verify_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_verify_hash.c diff --git a/src/pk/dsa/dsa_verify_key.c b/src/pk/dsa/dsa_verify_key.c index 9061f45f5..5818879b7 100644 --- a/src/pk/dsa/dsa_verify_key.c +++ b/src/pk/dsa/dsa_verify_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file dsa_verify_key.c diff --git a/src/pk/ecc/ecc.c b/src/pk/ecc/ecc.c index 802097f40..50470ee25 100644 --- a/src/pk/ecc/ecc.c +++ b/src/pk/ecc/ecc.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc.c diff --git a/src/pk/ecc/ecc_ansi_x963_export.c b/src/pk/ecc/ecc_ansi_x963_export.c index 3578ef1ea..ebecf24d5 100644 --- a/src/pk/ecc/ecc_ansi_x963_export.c +++ b/src/pk/ecc/ecc_ansi_x963_export.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_ansi_x963_export.c diff --git a/src/pk/ecc/ecc_ansi_x963_import.c b/src/pk/ecc/ecc_ansi_x963_import.c index 12b034dae..6dbdd2150 100644 --- a/src/pk/ecc/ecc_ansi_x963_import.c +++ b/src/pk/ecc/ecc_ansi_x963_import.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_ansi_x963_import.c diff --git a/src/pk/ecc/ecc_decrypt_key.c b/src/pk/ecc/ecc_decrypt_key.c index 6ce93d526..8c29a1744 100644 --- a/src/pk/ecc/ecc_decrypt_key.c +++ b/src/pk/ecc/ecc_decrypt_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_decrypt_key.c diff --git a/src/pk/ecc/ecc_encrypt_key.c b/src/pk/ecc/ecc_encrypt_key.c index 3d038c707..17201df6e 100644 --- a/src/pk/ecc/ecc_encrypt_key.c +++ b/src/pk/ecc/ecc_encrypt_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_encrypt_key.c diff --git a/src/pk/ecc/ecc_export.c b/src/pk/ecc/ecc_export.c index eab854a5d..268e43063 100644 --- a/src/pk/ecc/ecc_export.c +++ b/src/pk/ecc/ecc_export.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_export.c diff --git a/src/pk/ecc/ecc_free.c b/src/pk/ecc/ecc_free.c index 47d31297c..d15709e99 100644 --- a/src/pk/ecc/ecc_free.c +++ b/src/pk/ecc/ecc_free.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_free.c diff --git a/src/pk/ecc/ecc_get_curve.c b/src/pk/ecc/ecc_get_curve.c index 7f0386213..a2f52b0a1 100644 --- a/src/pk/ecc/ecc_get_curve.c +++ b/src/pk/ecc/ecc_get_curve.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_get_key.c b/src/pk/ecc/ecc_get_key.c index 2154e7f5e..abae6da12 100644 --- a/src/pk/ecc/ecc_get_key.c +++ b/src/pk/ecc/ecc_get_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_get_oid_str.c b/src/pk/ecc/ecc_get_oid_str.c index 35cba5869..70386c626 100644 --- a/src/pk/ecc/ecc_get_oid_str.c +++ b/src/pk/ecc/ecc_get_oid_str.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_get_size.c b/src/pk/ecc/ecc_get_size.c index 3f5810cc6..3dada78af 100644 --- a/src/pk/ecc/ecc_get_size.c +++ b/src/pk/ecc/ecc_get_size.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_get_size.c diff --git a/src/pk/ecc/ecc_import.c b/src/pk/ecc/ecc_import.c index 6deea284d..e691add59 100644 --- a/src/pk/ecc/ecc_import.c +++ b/src/pk/ecc/ecc_import.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_import.c diff --git a/src/pk/ecc/ecc_make_key.c b/src/pk/ecc/ecc_make_key.c index 5aeb4f77f..da595850c 100644 --- a/src/pk/ecc/ecc_make_key.c +++ b/src/pk/ecc/ecc_make_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_make_key.c diff --git a/src/pk/ecc/ecc_set_dp.c b/src/pk/ecc/ecc_set_dp.c index cecca68d4..4c4f48775 100644 --- a/src/pk/ecc/ecc_set_dp.c +++ b/src/pk/ecc/ecc_set_dp.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_set_dp_internal.c b/src/pk/ecc/ecc_set_dp_internal.c index eca703133..cf9020bf0 100644 --- a/src/pk/ecc/ecc_set_dp_internal.c +++ b/src/pk/ecc/ecc_set_dp_internal.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_set_key.c b/src/pk/ecc/ecc_set_key.c index 9fabcf2e3..75e047b72 100644 --- a/src/pk/ecc/ecc_set_key.c +++ b/src/pk/ecc/ecc_set_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_shared_secret.c b/src/pk/ecc/ecc_shared_secret.c index afb869194..bdefd0211 100644 --- a/src/pk/ecc/ecc_shared_secret.c +++ b/src/pk/ecc/ecc_shared_secret.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_shared_secret.c diff --git a/src/pk/ecc/ecc_sign_hash.c b/src/pk/ecc/ecc_sign_hash.c index 297364585..360807ec8 100644 --- a/src/pk/ecc/ecc_sign_hash.c +++ b/src/pk/ecc/ecc_sign_hash.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ecc_sizes.c b/src/pk/ecc/ecc_sizes.c index 165c849c3..f57f02b58 100644 --- a/src/pk/ecc/ecc_sizes.c +++ b/src/pk/ecc/ecc_sizes.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_sizes.c diff --git a/src/pk/ecc/ecc_test.c b/src/pk/ecc/ecc_test.c index e92b336d2..590a19022 100644 --- a/src/pk/ecc/ecc_test.c +++ b/src/pk/ecc/ecc_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ecc_test.c diff --git a/src/pk/ecc/ecc_verify_hash.c b/src/pk/ecc/ecc_verify_hash.c index 5127953aa..f2a58940b 100644 --- a/src/pk/ecc/ecc_verify_hash.c +++ b/src/pk/ecc/ecc_verify_hash.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ltc_ecc_export_point.c b/src/pk/ecc/ltc_ecc_export_point.c index 84750c804..c64e6b60f 100644 --- a/src/pk/ecc/ltc_ecc_export_point.c +++ b/src/pk/ecc/ltc_ecc_export_point.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ltc_ecc_import_point.c b/src/pk/ecc/ltc_ecc_import_point.c index 7e103f473..2b776f6e3 100644 --- a/src/pk/ecc/ltc_ecc_import_point.c +++ b/src/pk/ecc/ltc_ecc_import_point.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ltc_ecc_is_point.c b/src/pk/ecc/ltc_ecc_is_point.c index 46e1a6d41..efd954b8d 100644 --- a/src/pk/ecc/ltc_ecc_is_point.c +++ b/src/pk/ecc/ltc_ecc_is_point.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ltc_ecc_is_point_at_infinity.c b/src/pk/ecc/ltc_ecc_is_point_at_infinity.c index faf7631d1..85bd47a17 100644 --- a/src/pk/ecc/ltc_ecc_is_point_at_infinity.c +++ b/src/pk/ecc/ltc_ecc_is_point_at_infinity.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MECC diff --git a/src/pk/ecc/ltc_ecc_map.c b/src/pk/ecc/ltc_ecc_map.c index 3c57019fb..14ec47e23 100644 --- a/src/pk/ecc/ltc_ecc_map.c +++ b/src/pk/ecc/ltc_ecc_map.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_map.c diff --git a/src/pk/ecc/ltc_ecc_mul2add.c b/src/pk/ecc/ltc_ecc_mul2add.c index a2dcf5f26..c9913ff38 100644 --- a/src/pk/ecc/ltc_ecc_mul2add.c +++ b/src/pk/ecc/ltc_ecc_mul2add.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_mul2add.c diff --git a/src/pk/ecc/ltc_ecc_mulmod.c b/src/pk/ecc/ltc_ecc_mulmod.c index ec8ba9cf8..d6f038d3d 100644 --- a/src/pk/ecc/ltc_ecc_mulmod.c +++ b/src/pk/ecc/ltc_ecc_mulmod.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_mulmod.c diff --git a/src/pk/ecc/ltc_ecc_mulmod_timing.c b/src/pk/ecc/ltc_ecc_mulmod_timing.c index 9ff37d83b..a10285d1a 100644 --- a/src/pk/ecc/ltc_ecc_mulmod_timing.c +++ b/src/pk/ecc/ltc_ecc_mulmod_timing.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_mulmod_timing.c diff --git a/src/pk/ecc/ltc_ecc_points.c b/src/pk/ecc/ltc_ecc_points.c index 4a890fdce..cf029db42 100644 --- a/src/pk/ecc/ltc_ecc_points.c +++ b/src/pk/ecc/ltc_ecc_points.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_points.c diff --git a/src/pk/ecc/ltc_ecc_projective_add_point.c b/src/pk/ecc/ltc_ecc_projective_add_point.c index eff35c93b..8bd91c13f 100644 --- a/src/pk/ecc/ltc_ecc_projective_add_point.c +++ b/src/pk/ecc/ltc_ecc_projective_add_point.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file ltc_ecc_projective_add_point.c diff --git a/src/pk/ecc/ltc_ecc_projective_dbl_point.c b/src/pk/ecc/ltc_ecc_projective_dbl_point.c index 1b46457b4..da6d5150b 100644 --- a/src/pk/ecc/ltc_ecc_projective_dbl_point.c +++ b/src/pk/ecc/ltc_ecc_projective_dbl_point.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /* ### Point doubling in Jacobian coordinate system ### * diff --git a/src/pk/ecc/ltc_ecc_verify_key.c b/src/pk/ecc/ltc_ecc_verify_key.c index 3d763415e..b75af1040 100644 --- a/src/pk/ecc/ltc_ecc_verify_key.c +++ b/src/pk/ecc/ltc_ecc_verify_key.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /* origin of this code - OLPC */ diff --git a/src/pk/katja/katja_decrypt_key.c b/src/pk/katja/katja_decrypt_key.c index 72009b0fb..ff89dc1ab 100644 --- a/src/pk/katja/katja_decrypt_key.c +++ b/src/pk/katja/katja_decrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_decrypt_key.c diff --git a/src/pk/katja/katja_encrypt_key.c b/src/pk/katja/katja_encrypt_key.c index 9ed72fb0d..2a2f786a9 100644 --- a/src/pk/katja/katja_encrypt_key.c +++ b/src/pk/katja/katja_encrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_encrypt_key.c diff --git a/src/pk/katja/katja_export.c b/src/pk/katja/katja_export.c index 0412e655d..ae9d59fa2 100644 --- a/src/pk/katja/katja_export.c +++ b/src/pk/katja/katja_export.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_export.c diff --git a/src/pk/katja/katja_exptmod.c b/src/pk/katja/katja_exptmod.c index afc847f15..4f490d4ff 100644 --- a/src/pk/katja/katja_exptmod.c +++ b/src/pk/katja/katja_exptmod.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_exptmod.c diff --git a/src/pk/katja/katja_free.c b/src/pk/katja/katja_free.c index 117bbf451..d3da8c02f 100644 --- a/src/pk/katja/katja_free.c +++ b/src/pk/katja/katja_free.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_free.c diff --git a/src/pk/katja/katja_import.c b/src/pk/katja/katja_import.c index 98357c03d..b36bc3243 100644 --- a/src/pk/katja/katja_import.c +++ b/src/pk/katja/katja_import.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_import.c diff --git a/src/pk/katja/katja_make_key.c b/src/pk/katja/katja_make_key.c index 6f83bcc3a..eee149edb 100644 --- a/src/pk/katja/katja_make_key.c +++ b/src/pk/katja/katja_make_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file katja_make_key.c diff --git a/src/pk/pkcs1/pkcs_1_i2osp.c b/src/pk/pkcs1/pkcs_1_i2osp.c index 5324c1ea1..5e3e072ad 100644 --- a/src/pk/pkcs1/pkcs_1_i2osp.c +++ b/src/pk/pkcs1/pkcs_1_i2osp.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_i2osp.c diff --git a/src/pk/pkcs1/pkcs_1_mgf1.c b/src/pk/pkcs1/pkcs_1_mgf1.c index c6283ca70..c0db55980 100644 --- a/src/pk/pkcs1/pkcs_1_mgf1.c +++ b/src/pk/pkcs1/pkcs_1_mgf1.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_mgf1.c diff --git a/src/pk/pkcs1/pkcs_1_oaep_decode.c b/src/pk/pkcs1/pkcs_1_oaep_decode.c index 27c92456c..62855024f 100644 --- a/src/pk/pkcs1/pkcs_1_oaep_decode.c +++ b/src/pk/pkcs1/pkcs_1_oaep_decode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_oaep_decode.c diff --git a/src/pk/pkcs1/pkcs_1_oaep_encode.c b/src/pk/pkcs1/pkcs_1_oaep_encode.c index 50429467f..87e7fa98a 100644 --- a/src/pk/pkcs1/pkcs_1_oaep_encode.c +++ b/src/pk/pkcs1/pkcs_1_oaep_encode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_oaep_encode.c diff --git a/src/pk/pkcs1/pkcs_1_os2ip.c b/src/pk/pkcs1/pkcs_1_os2ip.c index 743c70b30..f3dce66c1 100644 --- a/src/pk/pkcs1/pkcs_1_os2ip.c +++ b/src/pk/pkcs1/pkcs_1_os2ip.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_os2ip.c diff --git a/src/pk/pkcs1/pkcs_1_pss_decode.c b/src/pk/pkcs1/pkcs_1_pss_decode.c index 8e112a14c..a70d2964a 100644 --- a/src/pk/pkcs1/pkcs_1_pss_decode.c +++ b/src/pk/pkcs1/pkcs_1_pss_decode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_pss_decode.c diff --git a/src/pk/pkcs1/pkcs_1_pss_encode.c b/src/pk/pkcs1/pkcs_1_pss_encode.c index c795114b9..b09d3006e 100644 --- a/src/pk/pkcs1/pkcs_1_pss_encode.c +++ b/src/pk/pkcs1/pkcs_1_pss_encode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_pss_encode.c diff --git a/src/pk/pkcs1/pkcs_1_v1_5_decode.c b/src/pk/pkcs1/pkcs_1_v1_5_decode.c index 94e1b2a39..4835ddf83 100644 --- a/src/pk/pkcs1/pkcs_1_v1_5_decode.c +++ b/src/pk/pkcs1/pkcs_1_v1_5_decode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file pkcs_1_v1_5_decode.c * diff --git a/src/pk/pkcs1/pkcs_1_v1_5_encode.c b/src/pk/pkcs1/pkcs_1_v1_5_encode.c index dd92c64e9..493e50b62 100644 --- a/src/pk/pkcs1/pkcs_1_v1_5_encode.c +++ b/src/pk/pkcs1/pkcs_1_v1_5_encode.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /*! \file pkcs_1_v1_5_encode.c * diff --git a/src/pk/rsa/rsa_decrypt_key.c b/src/pk/rsa/rsa_decrypt_key.c index 0b54dc806..704b98cdb 100644 --- a/src/pk/rsa/rsa_decrypt_key.c +++ b/src/pk/rsa/rsa_decrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_decrypt_key.c diff --git a/src/pk/rsa/rsa_encrypt_key.c b/src/pk/rsa/rsa_encrypt_key.c index cfe80ac0d..57b6dce03 100644 --- a/src/pk/rsa/rsa_encrypt_key.c +++ b/src/pk/rsa/rsa_encrypt_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_encrypt_key.c diff --git a/src/pk/rsa/rsa_export.c b/src/pk/rsa/rsa_export.c index e18554099..6bd2199ec 100644 --- a/src/pk/rsa/rsa_export.c +++ b/src/pk/rsa/rsa_export.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_export.c diff --git a/src/pk/rsa/rsa_exptmod.c b/src/pk/rsa/rsa_exptmod.c index 1a79dfe1a..ea6e29830 100644 --- a/src/pk/rsa/rsa_exptmod.c +++ b/src/pk/rsa/rsa_exptmod.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_exptmod.c diff --git a/src/pk/rsa/rsa_free.c b/src/pk/rsa/rsa_free.c index 1e62f097e..f2251dd62 100644 --- a/src/pk/rsa/rsa_free.c +++ b/src/pk/rsa/rsa_free.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_free.c diff --git a/src/pk/rsa/rsa_get_size.c b/src/pk/rsa/rsa_get_size.c index f58f256cd..748314e99 100644 --- a/src/pk/rsa/rsa_get_size.c +++ b/src/pk/rsa/rsa_get_size.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_get_size.c diff --git a/src/pk/rsa/rsa_import.c b/src/pk/rsa/rsa_import.c index 857717837..bb8793ddf 100644 --- a/src/pk/rsa/rsa_import.c +++ b/src/pk/rsa/rsa_import.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_import.c diff --git a/src/pk/rsa/rsa_import_pkcs8.c b/src/pk/rsa/rsa_import_pkcs8.c index 0546eb06a..4deab5baf 100644 --- a/src/pk/rsa/rsa_import_pkcs8.c +++ b/src/pk/rsa/rsa_import_pkcs8.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_import_pkcs8.c diff --git a/src/pk/rsa/rsa_import_x509.c b/src/pk/rsa/rsa_import_x509.c index aa35e644e..c615b7720 100644 --- a/src/pk/rsa/rsa_import_x509.c +++ b/src/pk/rsa/rsa_import_x509.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_import.c diff --git a/src/pk/rsa/rsa_make_key.c b/src/pk/rsa/rsa_make_key.c index c5c4c2884..9226b234f 100644 --- a/src/pk/rsa/rsa_make_key.c +++ b/src/pk/rsa/rsa_make_key.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_make_key.c diff --git a/src/pk/rsa/rsa_set.c b/src/pk/rsa/rsa_set.c index 0d540c4d4..c89ab2198 100644 --- a/src/pk/rsa/rsa_set.c +++ b/src/pk/rsa/rsa_set.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_MRSA diff --git a/src/pk/rsa/rsa_sign_hash.c b/src/pk/rsa/rsa_sign_hash.c index ef9fd4441..630a20383 100644 --- a/src/pk/rsa/rsa_sign_hash.c +++ b/src/pk/rsa/rsa_sign_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_sign_hash.c diff --git a/src/pk/rsa/rsa_sign_saltlen_get.c b/src/pk/rsa/rsa_sign_saltlen_get.c index c8f796f36..fb9bbd2fd 100644 --- a/src/pk/rsa/rsa_sign_saltlen_get.c +++ b/src/pk/rsa/rsa_sign_saltlen_get.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_sign_saltlen_get.c diff --git a/src/pk/rsa/rsa_verify_hash.c b/src/pk/rsa/rsa_verify_hash.c index a454ab2e7..f4b6af14c 100644 --- a/src/pk/rsa/rsa_verify_hash.c +++ b/src/pk/rsa/rsa_verify_hash.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file rsa_verify_hash.c diff --git a/src/prngs/chacha20.c b/src/prngs/chacha20.c index 59b232276..1c52a6958 100644 --- a/src/prngs/chacha20.c +++ b/src/prngs/chacha20.c @@ -11,7 +11,7 @@ * http://bxr.su/OpenBSD/lib/libc/crypt/arc4random.c */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA20_PRNG diff --git a/src/prngs/fortuna.c b/src/prngs/fortuna.c index 2e7a28c20..b05cc3fb3 100644 --- a/src/prngs/fortuna.c +++ b/src/prngs/fortuna.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_FORTUNA_RESEED_RATELIMIT_TIMED #if defined(_WIN32) diff --git a/src/prngs/rc4.c b/src/prngs/rc4.c index 7611151de..6f11f5939 100644 --- a/src/prngs/rc4.c +++ b/src/prngs/rc4.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file prngs/rc4.c diff --git a/src/prngs/rng_get_bytes.c b/src/prngs/rng_get_bytes.c index 4e9a0634e..10b3cadd6 100644 --- a/src/prngs/rng_get_bytes.c +++ b/src/prngs/rng_get_bytes.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RNG_GET_BYTES /** diff --git a/src/prngs/rng_make_prng.c b/src/prngs/rng_make_prng.c index 19ac1ee3b..fba069473 100644 --- a/src/prngs/rng_make_prng.c +++ b/src/prngs/rng_make_prng.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RNG_MAKE_PRNG /** diff --git a/src/prngs/sober128.c b/src/prngs/sober128.c index 951365952..ed370c360 100644 --- a/src/prngs/sober128.c +++ b/src/prngs/sober128.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file prngs/sober128.c diff --git a/src/prngs/sprng.c b/src/prngs/sprng.c index b74d8da7c..a58760653 100644 --- a/src/prngs/sprng.c +++ b/src/prngs/sprng.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file sprng.c diff --git a/src/prngs/yarrow.c b/src/prngs/yarrow.c index 6b5057f47..88a5fb8b0 100644 --- a/src/prngs/yarrow.c +++ b/src/prngs/yarrow.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file yarrow.c diff --git a/src/stream/chacha/chacha_crypt.c b/src/stream/chacha/chacha_crypt.c index 6814058fe..d72c84e7e 100644 --- a/src/stream/chacha/chacha_crypt.c +++ b/src/stream/chacha/chacha_crypt.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_done.c b/src/stream/chacha/chacha_done.c index 9f0196e2a..dbf6f246a 100644 --- a/src/stream/chacha/chacha_done.c +++ b/src/stream/chacha/chacha_done.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_ivctr32.c b/src/stream/chacha/chacha_ivctr32.c index c9a6dbb53..72856a090 100644 --- a/src/stream/chacha/chacha_ivctr32.c +++ b/src/stream/chacha/chacha_ivctr32.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_ivctr64.c b/src/stream/chacha/chacha_ivctr64.c index 643d11fee..f7cf721fa 100644 --- a/src/stream/chacha/chacha_ivctr64.c +++ b/src/stream/chacha/chacha_ivctr64.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_keystream.c b/src/stream/chacha/chacha_keystream.c index 25eb63ad8..e399d087a 100644 --- a/src/stream/chacha/chacha_keystream.c +++ b/src/stream/chacha/chacha_keystream.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_setup.c b/src/stream/chacha/chacha_setup.c index e34370b86..e997fc951 100644 --- a/src/stream/chacha/chacha_setup.c +++ b/src/stream/chacha/chacha_setup.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/chacha/chacha_test.c b/src/stream/chacha/chacha_test.c index 649ebf93a..899780146 100644 --- a/src/stream/chacha/chacha_test.c +++ b/src/stream/chacha/chacha_test.c @@ -12,7 +12,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_CHACHA diff --git a/src/stream/rabbit/rabbit.c b/src/stream/rabbit/rabbit.c index cf6ec0b84..4607bc9ed 100644 --- a/src/stream/rabbit/rabbit.c +++ b/src/stream/rabbit/rabbit.c @@ -62,7 +62,7 @@ ******************************************************************************/ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RABBIT diff --git a/src/stream/rc4/rc4_stream.c b/src/stream/rc4/rc4_stream.c index 178489d72..f1c225d01 100644 --- a/src/stream/rc4/rc4_stream.c +++ b/src/stream/rc4/rc4_stream.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RC4_STREAM diff --git a/src/stream/rc4/rc4_test.c b/src/stream/rc4/rc4_test.c index a7e48879c..9563e8244 100644 --- a/src/stream/rc4/rc4_test.c +++ b/src/stream/rc4/rc4_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_RC4_STREAM diff --git a/src/stream/salsa20/salsa20_crypt.c b/src/stream/salsa20/salsa20_crypt.c index 7e43df798..bf1b00167 100644 --- a/src/stream/salsa20/salsa20_crypt.c +++ b/src/stream/salsa20/salsa20_crypt.c @@ -13,7 +13,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/salsa20/salsa20_done.c b/src/stream/salsa20/salsa20_done.c index 4b7a9f905..086f263a7 100644 --- a/src/stream/salsa20/salsa20_done.c +++ b/src/stream/salsa20/salsa20_done.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/salsa20/salsa20_ivctr64.c b/src/stream/salsa20/salsa20_ivctr64.c index 06771533b..9c7ac74f7 100644 --- a/src/stream/salsa20/salsa20_ivctr64.c +++ b/src/stream/salsa20/salsa20_ivctr64.c @@ -13,7 +13,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/salsa20/salsa20_keystream.c b/src/stream/salsa20/salsa20_keystream.c index c443a3e41..dddfeaa1e 100644 --- a/src/stream/salsa20/salsa20_keystream.c +++ b/src/stream/salsa20/salsa20_keystream.c @@ -13,7 +13,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/salsa20/salsa20_setup.c b/src/stream/salsa20/salsa20_setup.c index 6eb65e818..872bd121d 100644 --- a/src/stream/salsa20/salsa20_setup.c +++ b/src/stream/salsa20/salsa20_setup.c @@ -13,7 +13,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/salsa20/salsa20_test.c b/src/stream/salsa20/salsa20_test.c index 100d17260..6d1d82d5f 100644 --- a/src/stream/salsa20/salsa20_test.c +++ b/src/stream/salsa20/salsa20_test.c @@ -13,7 +13,7 @@ * Public domain from D. J. Bernstein */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SALSA20 diff --git a/src/stream/sober128/sober128_stream.c b/src/stream/sober128/sober128_stream.c index 7b21edfff..44e0c3278 100644 --- a/src/stream/sober128/sober128_stream.c +++ b/src/stream/sober128/sober128_stream.c @@ -6,7 +6,7 @@ * The library is free for all purposes without any express * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" /** @file sober128_stream.c diff --git a/src/stream/sober128/sober128_test.c b/src/stream/sober128/sober128_test.c index 32ea461c4..13c8c21a1 100644 --- a/src/stream/sober128/sober128_test.c +++ b/src/stream/sober128/sober128_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SOBER128 diff --git a/src/stream/sosemanuk/sosemanuk.c b/src/stream/sosemanuk/sosemanuk.c index ded4a67e4..7c5a602dd 100644 --- a/src/stream/sosemanuk/sosemanuk.c +++ b/src/stream/sosemanuk/sosemanuk.c @@ -30,7 +30,7 @@ * */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SOSEMANUK diff --git a/src/stream/sosemanuk/sosemanuk_test.c b/src/stream/sosemanuk/sosemanuk_test.c index ff967b6c4..e5514df10 100644 --- a/src/stream/sosemanuk/sosemanuk_test.c +++ b/src/stream/sosemanuk/sosemanuk_test.c @@ -7,7 +7,7 @@ * guarantee it works. */ -#include "tomcrypt.h" +#include "tomcrypt_private.h" #ifdef LTC_SOSEMANUK int sosemanuk_test(void) diff --git a/tests/tomcrypt_test.h b/tests/tomcrypt_test.h index eb12afb9e..3a6fc2e9f 100644 --- a/tests/tomcrypt_test.h +++ b/tests/tomcrypt_test.h @@ -10,7 +10,7 @@ #ifndef __TEST_H_ #define __TEST_H_ -#include +#include "tomcrypt_private.h" #include "common.h" From d752f90d18b7e897df34c33bdad349f68c7ad6fd Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sat, 2 Jun 2018 13:11:36 +0200 Subject: [PATCH 4/5] fix Doxygen docs --- doc/Doxyfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/Doxyfile b/doc/Doxyfile index 67c9f40ec..546af8375 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -2037,8 +2037,7 @@ INCLUDE_FILE_PATTERNS = # recursively expanded use the := operator instead of the = operator. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -PREDEFINED = LTC_SOURCE \ - LTM_DESC \ +PREDEFINED = LTM_DESC \ GMP_DESC \ TFM_DESC From c725be276a8ff06cc95c2cdebb62ce3a66878143 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 3 Jun 2018 13:28:29 +0200 Subject: [PATCH 5/5] add blake2-hash API documentation --- src/hashes/blake2b.c | 46 ++++++++++++++++++++++++++++++++++++++++++++ src/hashes/blake2s.c | 46 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/src/hashes/blake2b.c b/src/hashes/blake2b.c index ee6ec05f3..6b91a8516 100644 --- a/src/hashes/blake2b.c +++ b/src/hashes/blake2b.c @@ -199,6 +199,19 @@ static int blake2b_init_param(hash_state *md, const unsigned char *P) return CRYPT_OK; } +/** + Initialize the hash/MAC state + + Use this function to init for arbitrary sizes. + + Give a key and keylen to init for MAC mode. + + @param md The hash state you wish to initialize + @param outlen The desired output-length + @param key The key of the MAC + @param keylen The length of the key + @return CRYPT_OK if successful +*/ int blake2b_init(hash_state *md, unsigned long outlen, const unsigned char *key, unsigned long keylen) { unsigned char P[BLAKE2B_PARAM_SIZE]; @@ -237,12 +250,32 @@ int blake2b_init(hash_state *md, unsigned long outlen, const unsigned char *key, return CRYPT_OK; } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2b_160_init(hash_state *md) { return blake2b_init(md, 20, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2b_256_init(hash_state *md) { return blake2b_init(md, 32, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2b_384_init(hash_state *md) { return blake2b_init(md, 48, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2b_512_init(hash_state *md) { return blake2b_init(md, 64, NULL, 0); } #define G(r, i, a, b, c, d) \ @@ -328,6 +361,13 @@ static int blake2b_compress(hash_state *md, const unsigned char *buf) } #endif +/** + Process a block of memory through the hash + @param md The hash state + @param in The data to hash + @param inlen The length of the data (octets) + @return CRYPT_OK if successful +*/ int blake2b_process(hash_state *md, const unsigned char *in, unsigned long inlen) { LTC_ARGCHK(md != NULL); @@ -360,6 +400,12 @@ int blake2b_process(hash_state *md, const unsigned char *in, unsigned long inlen return CRYPT_OK; } +/** + Terminate the hash to get the digest + @param md The hash state + @param out [out] The destination of the hash (size depending on the length used on init) + @return CRYPT_OK if successful +*/ int blake2b_done(hash_state *md, unsigned char *out) { unsigned char buffer[BLAKE2B_OUTBYTES] = { 0 }; diff --git a/src/hashes/blake2s.c b/src/hashes/blake2s.c index 28ad6663a..96439eb6b 100644 --- a/src/hashes/blake2s.c +++ b/src/hashes/blake2s.c @@ -193,6 +193,19 @@ static int blake2s_init_param(hash_state *md, const unsigned char *P) return CRYPT_OK; } +/** + Initialize the hash/MAC state + + Use this function to init for arbitrary sizes. + + Give a key and keylen to init for MAC mode. + + @param md The hash state you wish to initialize + @param outlen The desired output-length + @param key The key of the MAC + @param keylen The length of the key + @return CRYPT_OK if successful +*/ int blake2s_init(hash_state *md, unsigned long outlen, const unsigned char *key, unsigned long keylen) { unsigned char P[BLAKE2S_PARAM_SIZE]; @@ -230,12 +243,32 @@ int blake2s_init(hash_state *md, unsigned long outlen, const unsigned char *key, return CRYPT_OK; } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2s_128_init(hash_state *md) { return blake2s_init(md, 16, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2s_160_init(hash_state *md) { return blake2s_init(md, 20, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2s_224_init(hash_state *md) { return blake2s_init(md, 28, NULL, 0); } +/** + Initialize the hash state + @param md The hash state you wish to initialize + @return CRYPT_OK if successful +*/ int blake2s_256_init(hash_state *md) { return blake2s_init(md, 32, NULL, 0); } #define G(r, i, a, b, c, d) \ @@ -316,6 +349,13 @@ static int blake2s_compress(hash_state *md, const unsigned char *buf) } #endif +/** + Process a block of memory through the hash + @param md The hash state + @param in The data to hash + @param inlen The length of the data (octets) + @return CRYPT_OK if successful +*/ int blake2s_process(hash_state *md, const unsigned char *in, unsigned long inlen) { LTC_ARGCHK(md != NULL); @@ -348,6 +388,12 @@ int blake2s_process(hash_state *md, const unsigned char *in, unsigned long inlen return CRYPT_OK; } +/** + Terminate the hash to get the digest + @param md The hash state + @param out [out] The destination of the hash (size depending on the length used on init) + @return CRYPT_OK if successful +*/ int blake2s_done(hash_state *md, unsigned char *out) { unsigned char buffer[BLAKE2S_OUTBYTES] = { 0 };