summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-02-03 20:48:47 +0000
committerforsyth <forsyth@vitanuova.com>2010-02-03 20:48:47 +0000
commitf1dcfd03b4648fd6c0221d14436b391cd368beac (patch)
tree23466fba69e89b4ba065c150ac33a096f09e0b3f /module
parentad7de9e8db6963f4e715c21ee894011b62d0c984 (diff)
20100203-2048
Diffstat (limited to 'module')
-rw-r--r--module/keyring.m18
1 files changed, 15 insertions, 3 deletions
diff --git a/module/keyring.m b/module/keyring.m
index 7bba0f1c..c729de27 100644
--- a/module/keyring.m
+++ b/module/keyring.m
@@ -175,19 +175,31 @@ Keyring: module
sktopk: fn (sk: ref SK): ref PK;
# digests
- sha1: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
- ref DigestState;
md4: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
ref DigestState;
md5: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
ref DigestState;
+ sha1: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
+ ref DigestState;
+ sha224: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
+ ref DigestState;
+ sha256: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
+ ref DigestState;
+ sha384: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
+ ref DigestState;
+ sha512: fn(buf: array of byte, n: int, digest: array of byte, state: ref DigestState):
+ ref DigestState;
hmac_sha1: fn(data: array of byte, n: int, key: array of byte, digest: array of byte, state: ref DigestState):
ref DigestState;
hmac_md5: fn(data: array of byte, n: int, key: array of byte, digest: array of byte, state: ref DigestState):
ref DigestState;
- SHA1dlen: con 20;
+ SHA1dlen: con 20;
+ SHA224dlen: con 28;
+ SHA256dlen: con 32;
+ SHA384dlen: con 48;
+ SHA512dlen: con 64;
MD5dlen: con 16;
MD4dlen: con 16;