summaryrefslogtreecommitdiffstats
path: root/dom/secureelement/tests/unit/header_helper.js
blob: ff275e8583c39fe47b28378b7594f507eac9c178 (plain)
1
2
3
4
5
6
7
8
9
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

/**
 * Strips spaces, and returns a byte array.
 */
function formatHexAndCreateByteArray(hexStr) {
  return SEUtils.hexStringToByteArray(hexStr.replace(/\s+/g, ""));
}