summaryrefslogtreecommitdiff
path: root/src/crypto/talerCrypto-test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/talerCrypto-test.ts')
-rw-r--r--src/crypto/talerCrypto-test.ts15
1 files changed, 0 insertions, 15 deletions
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();