]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - rsa/rsa_basic.c
fixing problem with shifting 0
[avr-crypto-lib.git] / rsa / rsa_basic.c
index 3d6581fe5fcf13ea1fd0f56f492239bfa9849758..a7c321964aa86602605a392cf6535332a5eae099 100644 (file)
@@ -28,6 +28,7 @@
 
 #if DEBUG
 #include "cli.h"
+#include <stdio.h>
 #endif
 
 void rsa_enc(bigint_t *data, const rsa_publickey_t *key){
@@ -101,7 +102,7 @@ uint8_t rsa_dec_crt_mono(bigint_t *data, const rsa_privatekey_t *key){
        while(BIGINT_NEG_MASK & m1.info){
 #if DEBUG
        cli_putstr_P(PSTR("\r\nDBG: adding "));
-       bigint_print_hex(key->components[0]);
+       bigint_print_hex(&key->components[0]);
        cli_putstr_P(PSTR("\r\nDBG: to "));
        bigint_print_hex(&m1);
 #endif