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.
This commit is contained in:
Manuel Pégourié-Gonnard
2018-05-09 09:25:00 +02:00
parent 6048e05d5c
commit 9b7a93cf1f
5 changed files with 20 additions and 20 deletions

View File

@@ -538,7 +538,7 @@ int main( int argc, char *argv[] )
#if defined(MBEDTLS_POLY1305_C)
if ( todo.poly1305 )
{
TIME_AND_TSC( "Poly1305", mbedtls_poly1305_mac( buf, BUFSIZE, buf, buf ) );
TIME_AND_TSC( "Poly1305", mbedtls_poly1305_mac( buf, buf, BUFSIZE, buf ) );
}
#endif