C# Class Org.BouncyCastle.Crypto.Paddings.ZeroBytePadding

A padder that adds Null byte padding to a block.
Inheritance: IBlockCipherPadding
Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Méthode Description
AddPadding ( byte input, int inOff ) : int

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

Init ( SecureRandom random ) : void

Initialise the padder.

PadCount ( byte input ) : int

return the number of pad bytes present in the block.

Method Details

AddPadding() public méthode

add the pad bytes to the passed in block, returning the number of bytes added.
public AddPadding ( byte input, int inOff ) : int
input byte
inOff int
Résultat int

Init() public méthode

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

PadCount() public méthode

return the number of pad bytes present in the block.
public PadCount ( byte input ) : int
input byte
Résultat int