chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integer arithmetic types: do not use unsigned for lengths
[secnet]
/
rsa.c
diff --git
a/rsa.c
b/rsa.c
index 4702fe97d9292e08d22d2bc6965b2469c26a6414..caa030bd0223656c065a7013775df69523b714f7 100644
(file)
--- a/
rsa.c
+++ b/
rsa.c
@@
-36,7
+36,7
@@
struct rsapub {
static const char *hexchars="0123456789abcdef";
static const char *hexchars="0123456789abcdef";
-static string_t rsa_sign(void *sst, uint8_t *data,
u
int32_t datalen)
+static string_t rsa_sign(void *sst, uint8_t *data, int32_t datalen)
{
struct rsapriv *st=sst;
MP_INT a, b, u, v, tmp, tmp2;
{
struct rsapriv *st=sst;
MP_INT a, b, u, v, tmp, tmp2;
@@
-130,7
+130,7
@@
static string_t rsa_sign(void *sst, uint8_t *data, uint32_t datalen)
}
static rsa_checksig_fn rsa_sig_check;
}
static rsa_checksig_fn rsa_sig_check;
-static bool_t rsa_sig_check(void *sst, uint8_t *data,
u
int32_t datalen,
+static bool_t rsa_sig_check(void *sst, uint8_t *data, int32_t datalen,
cstring_t signature)
{
struct rsapub *st=sst;
cstring_t signature)
{
struct rsapub *st=sst;