struct rsapriv {
closure_t cl;
- struct rsaprivkey_if ops;
+ struct sigprivkey_if ops;
struct cloc loc;
MP_INT n;
MP_INT p, dp;
};
struct rsapub {
closure_t cl;
- struct rsapubkey_if ops;
+ struct sigpubkey_if ops;
struct cloc loc;
MP_INT e;
MP_INT n;
return signature;
}
-static rsa_checksig_fn rsa_sig_check;
+static sig_checksig_fn rsa_sig_check;
static bool_t rsa_sig_check(void *sst, uint8_t *data, int32_t datalen,
cstring_t signature)
{
NEW(st);
st->cl.description="rsapub";
- st->cl.type=CL_RSAPUBKEY;
+ st->cl.type=CL_SIGPUBKEY;
st->cl.apply=NULL;
st->cl.interface=&st->ops;
st->ops.st=st;
NEW(st);
st->cl.description="rsapriv";
- st->cl.type=CL_RSAPRIVKEY;
+ st->cl.type=CL_SIGPRIVKEY;
st->cl.apply=NULL;
st->cl.interface=&st->ops;
st->ops.st=st;