From faba5e9db8e0d1fdc4845de6b504b4e2ea3ca72b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 7 Apr 2020 13:58:55 +0530 Subject: finally make linter happy --- src/crypto/talerCrypto-test.ts | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/crypto/talerCrypto-test.ts') diff --git a/src/crypto/talerCrypto-test.ts b/src/crypto/talerCrypto-test.ts index 1efa766f3..1cd9da3e2 100644 --- a/src/crypto/talerCrypto-test.ts +++ b/src/crypto/talerCrypto-test.ts @@ -32,21 +32,6 @@ import { import { sha512, kdf } from "./primitives/kdf"; import * as nacl from "./primitives/nacl-fast"; -function hexToBytes(hex: string) { - for (var bytes = [], c = 0; c < hex.length; c += 2) - bytes.push(parseInt(hex.substr(c, 2), 16)); - return bytes; -} - -function bytesToHex(bytes: Uint8Array): string { - for (var hex = [], i = 0; i < bytes.length; i++) { - const current = bytes[i] < 0 ? bytes[i] + 256 : bytes[i]; - hex.push((current >>> 4).toString(16)); - hex.push((current & 0xf).toString(16)); - } - return hex.join(""); -} - test("encoding", (t) => { const utf8decoder = new TextDecoder("utf-8"); const utf8encoder = new TextEncoder(); -- cgit v1.2.3