-
- hfal_hash_init(shavs_algo, &ctx);
- cli_putstr_P(PSTR("\r\n"));
+ uint8_t ret;
+// cli_putstr_P(PSTR("\r\n HFAL init"));
+ ret = hfal_hash_init(shavs_algo, &ctx);
+ if(ret){
+ cli_putstr_P(PSTR("\r\n HFAL init returned with: "));
+ cli_hexdump(&ret, 1);
+ free(buffer);
+ return;
+ }
+// cli_putstr_P(PSTR("\r\n"));