X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=bigint%2Fbigint.h;h=4272aa0c13d63aaef9ebce09f5c20538d618563a;hb=257ce629ccb9d28193912b855322c91408fd19a7;hp=63938f8066fdcc04c0a9afbde5b950f1d2151456;hpb=3edc70ba3f2306ec503fb5e99858d28659dcac65;p=arm-crypto-lib.git diff --git a/bigint/bigint.h b/bigint/bigint.h index 63938f8..4272aa0 100644 --- a/bigint/bigint.h +++ b/bigint/bigint.h @@ -43,13 +43,13 @@ typedef struct{ bigint_word_t *wordv; /* word vector, pointing to the LSB */ }bigint_t; - - /******************************************************************************/ void bigint_adjust(bigint_t* a); -uint32_t bigint_get_first_set_bit(bigint_t* a); -uint32_t bigint_get_last_set_bit(bigint_t* a); +uint32_t bigint_get_first_set_bit(const bigint_t* a); +uint32_t bigint_get_last_set_bit(const bigint_t* a); +uint16_t bigint_length_b(const bigint_t* a); +uint16_t bigint_length_B(const bigint_t* a); void bigint_copy(bigint_t* dest, const bigint_t* src); void bigint_add_u(bigint_t* dest, const bigint_t* a, const bigint_t* b); void bigint_add_scale_u(bigint_t* dest, const bigint_t* a, uint16_t scale);