aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/newhope/newhope.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-08-30 10:54:07 -0400
committerJack Lloyd <[email protected]>2016-08-30 10:54:07 -0400
commit36e84df0ab53861b9d764473f8ce85cb747a6d16 (patch)
tree8a2a7afc801778ab6cc7bfbd30afc30845663192 /src/lib/pubkey/newhope/newhope.h
parent114b8e854170b4662a50b29bded3090b9800086a (diff)
Avoid requiring alignment (think this was just for the AVX2 version)
Change to standard int types
Diffstat (limited to 'src/lib/pubkey/newhope/newhope.h')
-rw-r--r--src/lib/pubkey/newhope/newhope.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/pubkey/newhope/newhope.h b/src/lib/pubkey/newhope/newhope.h
index 189833f8d..794f0750f 100644
--- a/src/lib/pubkey/newhope/newhope.h
+++ b/src/lib/pubkey/newhope/newhope.h
@@ -26,18 +26,17 @@ namespace Botan {
typedef struct {
uint16_t coeffs[1024];
-} newhope_poly __attribute__ ((aligned (32)));
+} newhope_poly;
-
-void BOTAN_DLL newhope_keygen(unsigned char *send, newhope_poly *sk, RandomNumberGenerator& rng);
-void BOTAN_DLL newhope_sharedb(unsigned char *sharedkey, unsigned char *send, const unsigned char *received, RandomNumberGenerator& rng);
-void BOTAN_DLL newhope_shareda(unsigned char *sharedkey, const newhope_poly *ska, const unsigned char *received);
+void BOTAN_DLL newhope_keygen(uint8_t *send, newhope_poly *sk, RandomNumberGenerator& rng);
+void BOTAN_DLL newhope_sharedb(uint8_t *sharedkey, uint8_t *send, const uint8_t *received, RandomNumberGenerator& rng);
+void BOTAN_DLL newhope_shareda(uint8_t *sharedkey, const newhope_poly *ska, const uint8_t *received);
/*
* This is just exposed for testing
*/
-void BOTAN_DLL newhope_hash(unsigned char *output, const unsigned char *input, unsigned int inputByteLen);
+void BOTAN_DLL newhope_hash(uint8_t *output, const uint8_t *input, size_t inputByteLen);
}