aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/kdf.d.ts
blob: eba1455ffdc59cd914eebe0280761d560e603fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;