@naylence/advanced-security 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7395,12 +7395,6 @@ function hexToArrayBuffer(hex) {
7395
7395
  }
7396
7396
  return bytes.buffer;
7397
7397
  }
7398
- function encodeBitString(data) {
7399
- const input = new Uint8Array(data);
7400
- const bitString = new Uint8Array(input.length + 1);
7401
- bitString.set(input, 1);
7402
- return bitString.buffer;
7403
- }
7404
7398
  async function createEd25519Certificate(options) {
7405
7399
  const subtle = await getSubtleCrypto();
7406
7400
  await ensureCrypto();
@@ -7440,7 +7434,7 @@ async function createEd25519Certificate(options) {
7440
7434
  const certificate = new Certificate({
7441
7435
  tbsCertificate,
7442
7436
  signatureAlgorithm,
7443
- signatureValue: encodeBitString(signature),
7437
+ signatureValue: signature,
7444
7438
  });
7445
7439
  certificate.tbsCertificateRaw = tbsDer;
7446
7440
  return AsnConvert.serialize(certificate);