Rename poly1305_setkey() to poly1305_starts()
For consistency with the existing CMAC and HMAC APIs
diff --git a/library/poly1305.c b/library/poly1305.c
index 5a09658..66f932c 100644
--- a/library/poly1305.c
+++ b/library/poly1305.c
@@ -256,7 +256,7 @@
}
}
-int mbedtls_poly1305_setkey( mbedtls_poly1305_context *ctx,
+int mbedtls_poly1305_starts( mbedtls_poly1305_context *ctx,
const unsigned char key[32] )
{
if ( ctx == NULL )
@@ -400,7 +400,7 @@
mbedtls_poly1305_init( &ctx );
- result = mbedtls_poly1305_setkey( &ctx, key );
+ result = mbedtls_poly1305_starts( &ctx, key );
if ( result != 0 )
goto cleanup;