summaryrefslogtreecommitdiff
path: root/module/secstore.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/secstore.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/secstore.m')
-rw-r--r--module/secstore.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/module/secstore.m b/module/secstore.m
new file mode 100644
index 00000000..ef9fa100
--- /dev/null
+++ b/module/secstore.m
@@ -0,0 +1,28 @@
+Secstore: module
+{
+ PATH: con "/dis/lib/secstore.dis";
+
+ Maxfilesize: con 128*1024; # default
+ Maxmsg: con 4096;
+
+ init: fn();
+ privacy: fn(): int;
+ cansecstore: fn(addr: string, user: string): int;
+ mkseckey: fn(pass: string): array of byte;
+ connect: fn(addr: string, user: string, pwhash: array of byte): (ref Sys->Connection, string, string);
+ dial: fn(addr: string): ref Sys->Connection;
+ auth: fn(conn: ref Sys->Connection, user: string, pwhash: array of byte): (string, string);
+ sendpin: fn(conn: ref Sys->Connection, pin: string): int;
+ files: fn(conn: ref Sys->Connection): list of (string, int, string, string, array of byte);
+ getfile: fn(conn: ref Sys->Connection, filename: string, maxsize: int): array of byte;
+ remove: fn(conn: ref Sys->Connection, filename: string): int;
+# putfile: fn(conn: ref Sys->Connection, filename: string, data: array of byte,): int;
+ bye: fn(conn: ref Sys->Connection);
+
+ mkfilekey: fn(pass: string): array of byte;
+ decrypt: fn(a: array of byte, key: array of byte): array of byte;
+# encrypt: fn(a: array of byte, key: array of byte): array of byte;
+ erasekey: fn(a: array of byte);
+
+ lines: fn(file: array of byte): list of array of byte;
+};