]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - bigint/bigint.h
updated bigint & rsa
[arm-crypto-lib.git] / bigint / bigint.h
index 2f45d1d3eea174cdd9bad6b6f2f0a6bea7194428..71b86f50ada497738c84b6fce1fec2f7720d7983 100644 (file)
@@ -1,6 +1,6 @@
 /* bigint.h */
 /*
-    This file is part of the AVR-Crypto-Lib.
+    This file is part of the ARM-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
@@ -43,11 +43,15 @@ typedef struct{
        bigint_word_t *wordv; /* word vector, pointing to the LSB */
 }bigint_t;
 
-
+typedef uint32_t bigint_ptr_int_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);
+uint16_t bigint_length_b(bigint_t* a);
+uint16_t bigint_length_B(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);