Skip to content

Instantly share code, notes, and snippets.

@Lucia-Lenz
Created December 12, 2022 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lucia-Lenz/6a45ad4be24daf4328cab7ad65777d9e to your computer and use it in GitHub Desktop.
Save Lucia-Lenz/6a45ad4be24daf4328cab7ad65777d9e to your computer and use it in GitHub Desktop.
Authorisation List
val MODE_CBC = 2
val ALGORITHM_AES = 32
val algorithm = DERTaggedObject(true, 2, ASN1Integer(ALGORITHM_AES))
val blockMode = DERTaggedObject(true, 4, DERSet(ASN1EncodableVector()
.add(ASN1Integer(MODE_CBC)))
val callerNonce = DERTaggedObject(true, 7, DERNull.INSTANCE)
val authorizationlist = DERSequence(
ASN1EncodableVector()
.apply {
...
add(algorithm)
add(blockMode)
add(callerNonce)
...
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment