From baebc99c0b66c3c9d9474ddc1d793209bf0fd17e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 27 Oct 2013 19:09:02 +0100 Subject: Remove deprecated definitions --- include/libuecc/ecc.h | 103 -------------------------------------------------- 1 file changed, 103 deletions(-) (limited to 'include') diff --git a/include/libuecc/ecc.h b/include/libuecc/ecc.h index 8b09ccd..c456ac3 100644 --- a/include/libuecc/ecc.h +++ b/include/libuecc/ecc.h @@ -27,10 +27,6 @@ #ifndef _LIBUECC_ECC_H_ #define _LIBUECC_ECC_H_ -#ifndef DEPRECATED -#define DEPRECATED __attribute__((deprecated)) -#endif - /** * A 256 bit integer * @@ -39,12 +35,6 @@ typedef union _ecc_int256 { /** Data bytes */ unsigned char p[32]; - - /** - * Old name of p - * \deprecated Use \ref ecc_int256_t::p instead. - */ - unsigned char s[32] DEPRECATED; } ecc_int256_t; /** @@ -96,97 +86,4 @@ void ecc_25519_gf_sanitize_secret(ecc_int256_t *out, const ecc_int256_t *in); /**@}*/ -/* declarations for the old names */ - -/** - * Old name of \ref ecc_int256_t - * \deprecated Use \ref ecc_int256_t instead. - */ -typedef ecc_int256_t ecc_secret_key_256 DEPRECATED; - -/** - * Old name of \ref ecc_int256_t - * \deprecated Use \ref ecc_int256_t instead. - */ -typedef ecc_int256_t ecc_public_key_256 DEPRECATED; - -/** - * Old name of \ref ecc_25519_work_t - * \deprecated Use \ref ecc_25519_work_t instead. - */ -typedef ecc_25519_work_t ecc_25519_work DEPRECATED; - - -/** - * Loads a packed point into its unpacked representation - * - * \deprecated Use \ref ecc_25519_load_packed instead. - */ -DEPRECATED static inline void ecc_25519_load(ecc_25519_work_t *out, const ecc_int256_t *in) { - ecc_25519_load_packed(out, in); -} - -/** - * Stores a point into its packed representation - * - * \deprecated Use \ref ecc_25519_store_packed instead. - */ -DEPRECATED static inline void ecc_25519_store(ecc_int256_t *out, const ecc_25519_work_t *in) { - ecc_25519_store_packed(out, in); -} - -/** - * Checks if an integer is equal to zero (after reduction) - * - * \deprecated Use \ref ecc_25519_gf_is_zero instead. - */ -DEPRECATED static inline int ecc_25519_secret_is_zero(const ecc_int256_t *in) { - return ecc_25519_gf_is_zero(in); -} - -/** - * Adds two integers as Galois field elements - * - * \deprecated Use \ref ecc_25519_gf_add instead. - */ -DEPRECATED static inline void ecc_25519_secret_add(ecc_int256_t *out, const ecc_int256_t *in1, const ecc_int256_t *in2) { - ecc_25519_gf_add(out, in1, in2); -} - -/** - * Subtracts two integers as Galois field elements - * - * \deprecated Use \ref ecc_25519_gf_sub instead. - */ -DEPRECATED static inline void ecc_25519_secret_sub(ecc_int256_t *out, const ecc_int256_t *in1, const ecc_int256_t *in2) { - ecc_25519_gf_sub(out, in1, in2); -} - -/** - * Reduces an integer to a unique representation in the range \f$ [0,q-1] \f$ - * - * \deprecated Use \ref ecc_25519_gf_reduce instead. - */ -DEPRECATED static inline void ecc_25519_secret_reduce(ecc_int256_t *out, const ecc_int256_t *in) { - ecc_25519_gf_reduce(out, in); -} - -/** - * Multiplies to integers as Galois field elements - * - * \deprecated Use \ref ecc_25519_gf_mult instead. - */ -DEPRECATED static inline void ecc_25519_secret_mult(ecc_int256_t *out, const ecc_int256_t *in1, const ecc_int256_t *in2) { - ecc_25519_gf_mult(out, in1, in2); -} - -/** - * Ensures some properties of a Galois field element to make it fit for use as a secret key - * - * \deprecated Use \ref ecc_25519_gf_sanitize_secret instead. - */ -DEPRECATED static inline void ecc_25519_secret_sanitize(ecc_int256_t *out, const ecc_int256_t *in) { - ecc_25519_gf_sanitize_secret(out, in); -} - #endif /* _LIBUECC_ECC_H_ */ -- cgit v1.2.3