summaryrefslogtreecommitdiff
path: root/appl/cmd/auth/dsagen.b
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-01-17 10:45:22 +0000
committerforsyth <forsyth@vitanuova.com>2011-01-17 10:45:22 +0000
commit9e6910dc0c747c8f30b87f6482f4eadb48ad6654 (patch)
tree4f835b35913acfb115b15ea4f1c6af40fd77ab54 /appl/cmd/auth/dsagen.b
parent16501eaf1cb642b80d7fa0236407a27aecb35b02 (diff)
emu/Nt/ipif.c
Diffstat (limited to 'appl/cmd/auth/dsagen.b')
-rw-r--r--appl/cmd/auth/dsagen.b14
1 files changed, 9 insertions, 5 deletions
diff --git a/appl/cmd/auth/dsagen.b b/appl/cmd/auth/dsagen.b
index 3e24df2f..51b50a12 100644
--- a/appl/cmd/auth/dsagen.b
+++ b/appl/cmd/auth/dsagen.b
@@ -5,9 +5,12 @@ include "sys.m";
include "draw.m";
-include "keyring.m";
- kr: Keyring;
- IPint, DSAsk, DSApk, DSAsig: import kr;
+include "ipints.m";
+ ipints: IPints;
+ IPint: import ipints;
+
+include "crypt.m";
+ crypt: Crypt;
include "arg.m";
@@ -19,7 +22,8 @@ Dsagen: module
init(nil: ref Draw->Context, args: list of string)
{
sys = load Sys Sys->PATH;
- kr = load Keyring Keyring->PATH;
+ ipints = load IPints IPints->PATH;
+ crypt = load Crypt Crypt->PATH;
arg := load Arg Arg->PATH;
arg->init(args);
@@ -37,7 +41,7 @@ init(nil: ref Draw->Context, args: list of string)
arg->usage();
arg = nil;
- sk := DSAsk.gen(nil);
+ sk := crypt->dsagen(nil);
if(tag != nil)
tag = " "+tag;
s := add("p", sk.pk.p);