]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - bigint/bigint.h
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / bigint / bigint.h
index f9097953e7bc8dbaf34b31e068808fcd2c64584d..0ae129ccb9bbb0b04ac7d9f02832ba5ce0a78607 100644 (file)
@@ -1,7 +1,7 @@
 /* bigint.h */
 /*
     This file is part of the ARM-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -68,8 +68,8 @@ typedef struct{
 /******************************************************************************/
 
 void   bigint_adjust(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);
+int32_t bigint_get_first_set_bit(const bigint_t *a);
+int32_t bigint_get_last_set_bit(const bigint_t *a);
 bigint_length_t bigint_length_b(const bigint_t *a);
 bigint_length_t bigint_length_B(const bigint_t *a);
 void   bigint_copy(bigint_t *dest, const bigint_t *src);
@@ -80,7 +80,10 @@ int8_t bigint_cmp_u(const bigint_t * a, const bigint_t * b);
 void   bigint_add_s(bigint_t *dest, const bigint_t *a, const bigint_t *b);
 void   bigint_sub_s(bigint_t *dest, const bigint_t *a, const bigint_t *b);
 int8_t bigint_cmp_s(const bigint_t *a, const bigint_t *b);
+void   bigint_shiftleft_bits(bigint_t *a, uint8_t shift);
 void   bigint_shiftleft(bigint_t *a, bigint_length_t shift);
+void   bigint_shiftright_1bit(bigint_t *a);
+void   bigint_shiftright_1word(bigint_t *a);
 void   bigint_shiftright(bigint_t *a, bigint_length_t shift);
 void   bigint_xor(bigint_t *dest, const bigint_t *a);
 void   bigint_set_zero(bigint_t *a);