From f40c79272f7892d4b16108593aeb1c6f80616987 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Thu, 16 Jul 2020 21:02:02 +0300 Subject: [PATCH] tinycrypt: use fast integer types Signed-off-by: Kevin Bracey --- include/tinycrypt/ecc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tinycrypt/ecc.h b/include/tinycrypt/ecc.h index f2a5ad67d..cdb5762a2 100644 --- a/include/tinycrypt/ecc.h +++ b/include/tinycrypt/ecc.h @@ -98,10 +98,10 @@ extern "C" { #endif /* defining data types to store word and bit counts: */ -typedef int8_t wordcount_t; -typedef int16_t bitcount_t; +typedef int_fast8_t wordcount_t; +typedef int_fast16_t bitcount_t; /* defining data type for comparison result: */ -typedef int8_t cmpresult_t; +typedef int_fast8_t cmpresult_t; /* defining data type to store ECC coordinate/point in 32bits words: */ typedef unsigned int uECC_word_t; /* defining data type to store an ECC coordinate/point in 64bits words: */