From 840c0229f89b43ea388549b0f8b054f6a531529e Mon Sep 17 00:00:00 2001 From: Sanjana Rajan Date: Wed, 26 Jul 2017 15:22:49 +0200 Subject: [PATCH] move hex2Uint8array to utils --- src/crypto/public_key/elliptic/ecdh.js | 12 +++--------- src/util.js | 9 +++++++++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/crypto/public_key/elliptic/ecdh.js b/src/crypto/public_key/elliptic/ecdh.js index 76df6b79..af8ab3ff 100644 --- a/src/crypto/public_key/elliptic/ecdh.js +++ b/src/crypto/public_key/elliptic/ecdh.js @@ -42,13 +42,6 @@ import util from '../../../util.js'; import type_kdf_params from '../../../type/kdf_params.js'; import type_oid from '../../../type/oid.js'; -function hex2Uint8Array(hex) { - var result = new Uint8Array(hex.length/2); - for (var k=0; k