From e2fe2d6db16b422ee6d69ef03f1393e1f0f42749 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 7 Oct 2021 12:01:40 +0200 Subject: add anastasis skeleton, put crypto in taler-util --- packages/taler-util/src/kdf.d.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/taler-util/src/kdf.d.ts (limited to 'packages/taler-util/src/kdf.d.ts') diff --git a/packages/taler-util/src/kdf.d.ts b/packages/taler-util/src/kdf.d.ts new file mode 100644 index 000000000..80a6da41e --- /dev/null +++ b/packages/taler-util/src/kdf.d.ts @@ -0,0 +1,5 @@ +export declare function sha512(data: Uint8Array): Uint8Array; +export declare function hmac(digest: (d: Uint8Array) => Uint8Array, blockSize: number, key: Uint8Array, message: Uint8Array): Uint8Array; +export declare function hmacSha512(key: Uint8Array, message: Uint8Array): Uint8Array; +export declare function hmacSha256(key: Uint8Array, message: Uint8Array): Uint8Array; +export declare function kdf(outputLength: number, ikm: Uint8Array, salt: Uint8Array, info: Uint8Array): Uint8Array; -- cgit v1.2.3