Open panva opened 5 years ago
I have not worked with ASN.1 for a while now but off the top of my head is that the difference between BER and DER, DER should prefer constructed definite-length encoding. So perhaps your expectation is actually BER and it is producing DER. I may well be wrong!
@panva encountering the exact same issue here: https://github.com/digitalbazaar/crypto-ld/compare/node-12#diff-19ce09a32f875322daf2628d6aceb210R31
Any luck finding a solution?
@mattcollier nope, i work around it for my needs.
https://github.com/panva/jose/blob/v1.4.0/lib/help/key_utils.js#L272
I suppose the first step would be to create the simplest test using contains that generates the incorrect sequence.
@felix is the one in the description not simple enough?
It is, my apologies.
Assume the following
The output i'm expecting is
But i'm instead getting
I went back and forth with the definitions and couldn't get this to be what i need. I can see very little examples around this.
@felix / @indutny, this was added in #59, i could very much use your hand in figuring out if this is a problem with the feature or my definition.