Skip to content

Commit

Permalink
compilation fixes + readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Sep 17, 2024
1 parent 138e562 commit 253abdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
* `Iterable<Byte>.decodeAsn1VarUInt()`
* `ByteArray.decodeAsn1VarUInt()`
* Revamp implicit tagging
* More consistent low-level encoding and decoding function names:
* `encodeToAsn1Primitive` to produce an `Asn1Primitive` that can directly be DER-encoded
* `encodeToAsn1ContentBytes` to produce the content bytes of a TLV primitive (the _V_ in TLV)
* `decodeToXXX` to be invoked on an `Asn1Primitive` to decode a DER-encoded primitive into the target type
* `decodeFromAsn1ContentBytes` to be invoked on the companion of the target type to decode the content bytes of a TLV primitive (the _V_ in TLV)

## 3.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import at.asitplus.signum.indispensable.pki.X509Certificate
object JwsCertificateSerializer : TransformingSerializerTemplate<X509Certificate, ByteArray>(
parent = ByteArrayBase64Serializer,
encodeAs = X509Certificate::encodeToDer,
decodeAs = { X509Certificate.decodeFromDer(it) } //workaround iOS compilation bug
decodeAs = { X509Certificate.decodeFromDer(it) } //workaround iOS compilation bug KT-71498
)
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object ByteArrayBase64UrlSerializer: TransformingSerializerTemplate<ByteArray, S
object X509CertificateBase64UrlSerializer: TransformingSerializerTemplate<X509Certificate, ByteArray>(
parent = ByteArrayBase64UrlSerializer,
encodeAs = X509Certificate::encodeToDer,
decodeAs = { X509Certificate.decodeFromDer(it) } // workaround iOS compilation bug
decodeAs = { X509Certificate.decodeFromDer(it) } // workaround iOS compilation bug KT-71498
)

/** De-/serializes a public key as a Base64Url-encoded IOS encoding public key */
Expand Down

0 comments on commit 253abdb

Please sign in to comment.