From 12ed3abeb24bbd5d59b760640a35ead0874fd3fe Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 2 Sep 2015 18:35:36 -0400 Subject: Clean up excessively complicated handling of opaque types in hash and RSA code; use simpler model (pointer to incomplete structure) used in ECDSA code. Refactor RSA code to use shared ASN.1 routines. --- ecdsa.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ecdsa.c') diff --git a/ecdsa.c b/ecdsa.c index 09ab3f6..610c3de 100644 --- a/ecdsa.c +++ b/ecdsa.c @@ -152,21 +152,6 @@ const size_t hal_ecdsa_key_t_size = sizeof(struct hal_ecdsa_key); #define lose(_code_) do { err = _code_; goto fail; } while (0) -/* - * Functions to strip const qualifiers from arguments to libtfm calls - * in a relatively type-safe manner. - */ - -static inline fp_int *unconst_fp_int(const fp_int * const arg) -{ - return (fp_int *) arg; -} - -static inline uint8_t *unconst_uint8_t(const uint8_t * const arg) -{ - return (uint8_t *) arg; -} - /* * We can't (usefully) initialize fp_int variables at compile time, so * instead we load all the curve parameters the first time anything -- cgit v1.2.3