mangle

fun AuthorizationList.mangle(property: AuthorizationList.Tagged, rawExplicitProperty: Asn1Element): AuthorizationList(source)

Returns a copy in which every occurrence of property is replaced by rawExplicitProperty.

rawExplicitProperty must be the complete explicitly-tagged ASN.1 property, including its context-specific tag. Supplying it as raw ASN.1 intentionally permits malformed inner values; this is for negative-test vectors, not normal construction.


fun AuthorizationList.mangle(propertyTag: ULong, rawExplicitProperty: Asn1Element): AuthorizationList(source)

Raw-tag variant for data-driven test vector tooling.


Convenience overload for hexadecimal DER containing the complete explicitly-tagged property.


fun AuthorizationList.mangle(propertyTag: ULong, rawExplicitPropertyDerHex: String): AuthorizationList(source)

Hex-DER convenience overload for data-driven test vector tooling.