# SecurityEncoding

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

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Security`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[SecurityEncoding.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Security/SecurityEncoding.cs#L18)

**Modifiers**

static

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

## Inheritance

- object
- SecurityEncoding

Filter members 

Show inherited

## Methods

`public static byte[] NormalizeSingleAsn1Object(byte[] encoded, bool allowTrailingZeroPadding = false, long maxEncodedBytes = 536870912)` [#](#method-normalizesingleasn1object-byte-boolean-int64)

[SecurityEncoding.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Security/SecurityEncoding.cs#L18)

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[]`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:D4E0B0E1A43B7B4B5FD5B6C68008549A387E44E9316A1FE0A5842245990C18AC -->
