chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system: Builds OK under dpkg-buildpackage.
[secnet.git]
/
rsa.c
diff --git
a/rsa.c
b/rsa.c
index 3c82a40cfdc7f57876991073adbdbcc7cf2c765f..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;
@@
-487,7
+487,6
@@
assume_valid:
return new_closure(&st->cl);
}
return new_closure(&st->cl);
}
-init_module rsa_module;
void rsa_module(dict_t *dict)
{
add_closure(dict,"rsa-private",rsapriv_apply);
void rsa_module(dict_t *dict)
{
add_closure(dict,"rsa-private",rsapriv_apply);