aboutsummaryrefslogtreecommitdiff
path: root/ecdsa.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-02 18:35:36 -0400
committerRob Austein <sra@hactrn.net>2015-09-02 18:35:36 -0400
commit12ed3abeb24bbd5d59b760640a35ead0874fd3fe (patch)
tree1dcc0db3d543e7b740238ea911b7f448c704e70b /ecdsa.c
parent55116cc564649433cf4a8515d4a37cbf00dd6199 (diff)
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.
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ecdsa.c b/ecdsa.c
index 09ab3f6..610c3de 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -153,21 +153,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
* asks for any of them.