X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bigint%2Fbigint.h;h=2acfdaa5877fdd41db9c94fb5d03330ab6d3864b;hp=1256079aec8b2c91d0e7e9f2875379d70427bb75;hb=27f4804c185ae24b3b6367bb2fdb898d6692d0f6;hpb=7715ef86b09869014eb5afd319e4acc2ce157b00 diff --git a/bigint/bigint.h b/bigint/bigint.h index 1256079..2acfdaa 100644 --- a/bigint/bigint.h +++ b/bigint/bigint.h @@ -33,7 +33,6 @@ typedef uint8_t bigint_word_t; typedef uint16_t bigint_wordplus_t; typedef int16_t bigint_wordplus_signed_t; -typedef uint16_t bigint_ptr_int_t; /* this must be an integer of the size of a pointer for the target architecture */ #define BIGINT_WORD_SIZE 8 #define BIGINT_FBS_MASK (BIGINT_WORD_SIZE-1) /* the last five bits indicate which is the first bit set */ @@ -49,10 +48,10 @@ typedef struct{ /******************************************************************************/ 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); -uint16_t bigint_length_b(bigint_t* a); -uint16_t bigint_length_B(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);