poly1305: adjust parameter order
This module used (len, pointer) while (pointer, len) is more common in the
rest of the library, in particular it's what's used in the CMAC API that is
very comparable to Poly1305, so switch to (pointer, len) for consistency.
diff --git a/include/mbedtls/poly1305.h b/include/mbedtls/poly1305.h
index c2e2655..19f5237 100644
--- a/include/mbedtls/poly1305.h
+++ b/include/mbedtls/poly1305.h
@@ -121,8 +121,8 @@
* if ctx or input are NULL.
*/
int mbedtls_poly1305_update( mbedtls_poly1305_context *ctx,
- size_t ilen,
- const unsigned char *input );
+ const unsigned char *input,
+ size_t ilen );
/**
* \brief This function generates the Poly1305 Message
@@ -158,8 +158,8 @@
* if key, input, or mac are NULL.
*/
int mbedtls_poly1305_mac( const unsigned char key[32],
- size_t ilen,
const unsigned char *input,
+ size_t ilen,
unsigned char mac[16] );
/**