Closed WorldThirteen closed 2 years ago
I can't reproduce this issue. I've tried to run this scrip using TS and JS implementations. No success.
I need more information about it. OS version, NodeJS version, module and dependencies versions
I found that my example was invalid (the latest console log should use another variable). I have edited the initial comment.
Environments where it was possible to reproduce:
I've noticed that I have used not the most recent version, so I've updated it to the latest and the issue is gone. Seems it was a dependency tree issue, but in such a case, I would like to receive an expectation instead of an invalid buffer.
Since the issue is not reproducible with the latest version and clear dependency tree, closing.
When
@peculiar/webcrypto
is used as a crypto engine, RSA public key re-export result is invalid.Here is a sample code:
The same code for WebCrypto in browser implementation or WebCrypto in the node will result in a valid re-exported buffer with the same length and ability to import/export countless times.