diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-30 05:34:49 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-30 05:35:18 +0100 |
commit | aa1d894e102e23d162b8e2bccd4b3bf1700de2f2 (patch) | |
tree | 3027bc84e829650a798071ad9e13f4391260328b /src/fastd.h | |
parent | 5f7258ade2dd8bad076d17d3a85fb04d9bf71bda (diff) | |
download | fastd-aa1d894e102e23d162b8e2bccd4b3bf1700de2f2.tar fastd-aa1d894e102e23d162b8e2bccd4b3bf1700de2f2.zip |
Make the crypto implementations independent of fastd.h (and fix more minor bugs)
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/fastd.h b/src/fastd.h index ebbcf86..90f1f8f 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -478,22 +478,4 @@ static inline size_t min_size_t(size_t a, size_t b) { return (a < b) ? a : b; } -static inline void secure_memzero(void *s, size_t n) { - memset(s, 0, n); - __asm__ volatile("" : : "m"(s)); -} - -static inline void xor(fastd_block128_t *x, fastd_block128_t a, fastd_block128_t b) { - x->qw[0] = a.qw[0] ^ b.qw[0]; - x->qw[1] = a.qw[1] ^ b.qw[1]; -} - -static inline void xor_a(fastd_block128_t *x, fastd_block128_t a) { - xor(x, *x, a); -} - -static inline bool fastd_true(void) { - return true; -} - #endif /* _FASTD_FASTD_H_ */ |