From aa1d894e102e23d162b8e2bccd4b3bf1700de2f2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Nov 2013 05:34:49 +0100 Subject: Make the crypto implementations independent of fastd.h (and fix more minor bugs) --- src/fastd.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/fastd.h') 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_ */ -- cgit v1.2.3