C# 클래스 Org.BouncyCastle.Crypto.Paddings.TbcPadding

A padder that adds Trailing-Bit-Compliment padding to a block.

This padding pads the block out compliment of the last bit of the plain text.

상속: IBlockCipherPadding
파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

공개 메소드들

메소드 설명
AddPadding ( byte input, int inOff ) : int

add the pad bytes to the passed in block, returning the number of bytes added.

Note: this assumes that the last block of plain text is always passed to it inside in. i.e. if inOff is zero, indicating the entire block is to be overwritten with padding the value of in should be the same as the last block of plain text.

Init ( SecureRandom random ) : void

Initialise the padder.

PadCount ( byte input ) : int

return the number of pad bytes present in the block.

메소드 상세

AddPadding() 공개 메소드

add the pad bytes to the passed in block, returning the number of bytes added.

Note: this assumes that the last block of plain text is always passed to it inside in. i.e. if inOff is zero, indicating the entire block is to be overwritten with padding the value of in should be the same as the last block of plain text.

public AddPadding ( byte input, int inOff ) : int
input byte
inOff int
리턴 int

Init() 공개 메소드

Initialise the padder.
public Init ( SecureRandom random ) : void
random Org.BouncyCastle.Security.SecureRandom - a SecureRandom if available. ///
리턴 void

PadCount() 공개 메소드

return the number of pad bytes present in the block.
public PadCount ( byte input ) : int
input byte
리턴 int