Commit 4e076d74 authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

Debug function.

parent 13e435eb
...@@ -36,6 +36,16 @@ static union _Pool ...@@ -36,6 +36,16 @@ static union _Pool
} Pool[POOL_SIZE]; } Pool[POOL_SIZE];
static char pool_used = 0; static char pool_used = 0;
static void print_hex(unsigned char *data, unsigned len)
{
while (len > 0)
{
printf("%02x", *data++);
--len;
}
printf("\n");
}
static int rsasha1_set_signature(VerifyAlgCtx *ctx_, unsigned char *data, unsigned len) static int rsasha1_set_signature(VerifyAlgCtx *ctx_, unsigned char *data, unsigned len)
{ {
VACTX_rsasha1 *ctx = (VACTX_rsasha1 *)ctx_; VACTX_rsasha1 *ctx = (VACTX_rsasha1 *)ctx_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment