IBlockCipherPaddingAddPadding(SpanByte, Int32) Method

Add padding to the passed in block.

Definition

Namespace: Org.BouncyCastle.Crypto.Paddings
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
int AddPadding(
	Span<byte> block,
	int position
)

Parameters

block  SpanByte
the block to add padding to.
position  Int32
the offset into the block the padding is to start at.

Return Value

Int32
the number of bytes of padding added.

See Also