Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

SecurityEncoding

OfficeIMO.Security

Namespace
OfficeIMO.Security
Assembly
OfficeIMO.Security
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Bounded ASN.1 container helpers shared by format-specific security adapters.

Inheritance

  • object
  • SecurityEncoding

Methods

public static byte[] NormalizeSingleAsn1Object(byte[] encoded, bool allowTrailingZeroPadding = false, long maxEncodedBytes = 536870912) #

Decodes one ASN.1 object and returns its canonical encoding. Optional trailing zero padding is accepted for fixed-width containers such as a PDF signature /Contents value.

Parameters

encoded byte[] required
allowTrailingZeroPadding bool = false optional
maxEncodedBytes long = 536870912 optional

Returns

byte[]