(key: Uint8Array, data: Uint8Array)
| 55 | const sha256 = (data: Uint8Array): Uint8Array => bytesOf(createHash("sha256").update(data).digest()) |
| 56 | |
| 57 | const hmacSha256 = (key: Uint8Array, data: Uint8Array): Uint8Array => |
| 58 | bytesOf(createHmac("sha256", key).update(data).digest()) |
| 59 | |
| 60 | const xor = (left: Uint8Array, right: Uint8Array): Uint8Array => { |
| 61 | const result = new Uint8Array(left.length) |
no test coverage detected