a-sit-plus / signum

Kotlin Multiplatform Crypto/PKI Library and ASN1 Parser + Encoder
https://a-sit-plus.github.io/signum/
Apache License 2.0
76 stars 6 forks source link

ASN.1 Real #182

Open JesusMcCloud opened 3 weeks ago

JesusMcCloud commented 3 weeks ago

If we want to provide a truly universal kotlinx serialization format, we need to cover ASN.1 REAL number encoding and decoding, in all variants supported by the DER. As a first step, just supporting the encoding that maps easiest to Kotlin's Doubleis sufficient.

The real issue here is testing. BC does not support REAL numbers and the online tools also don't implement a parser we could hijack. Even openssl just print prim: REAL