Skip to content

Extra 2 bytes at the beginning of signature #13

@xucito

Description

@xucito

When signing detached, there are 2 more bytes at the beginning of the signature then what is expected.

https://openquantumsafe.org/liboqs/algorithms/sig/dilithium.html

There should be 4595 bytes

In the test below the sig is 4597 bytes

const test = async () => {
  const keyPair = await dilithium.keyPair();
  var sig = await dilithium.signDetached(Buffer.from("this is a test", 'utf8'), keyPair.privateKey)
  console.log(sig.length)
}

If the two bytes are trimmed, the signature is then verifiable by other implementations of dilithium.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions