X-Git-Url: https://git.cryptolib.org/avr-crypto-lib.git?p=avr-crypto-lib.git;a=blobdiff_plain;f=rsa%2Frsa_basic.c;h=a7c321964aa86602605a392cf6535332a5eae099;hp=3d6581fe5fcf13ea1fd0f56f492239bfa9849758;hb=01b5d29136b37105c7e533bd3ec2299d31551627;hpb=d796b12dbb838974705d995369161d3836f9dad2 diff --git a/rsa/rsa_basic.c b/rsa/rsa_basic.c index 3d6581f..a7c3219 100644 --- a/rsa/rsa_basic.c +++ b/rsa/rsa_basic.c @@ -28,6 +28,7 @@ #if DEBUG #include "cli.h" +#include #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