diff options
author | Rob Austein <sra@hactrn.net> | 2015-09-02 18:35:36 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-09-02 18:35:36 -0400 |
commit | 12ed3abeb24bbd5d59b760640a35ead0874fd3fe (patch) | |
tree | 1dcc0db3d543e7b740238ea911b7f448c704e70b /ecdsa.c | |
parent | 55116cc564649433cf4a8515d4a37cbf00dd6199 (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.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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. |