Class PKCS5Padding
- java.lang.Object
-
- com.fortanix.sdkms.jce.provider.paddings.PKCS5Padding
-
-
Constructor Summary
Constructors Constructor Description PKCS5Padding(int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()intgetPaddingLength(int inputLength)voidpad(java.io.ByteArrayOutputStream in)Adds the given number of padding bytes to the data input.byte[]unpad(byte[] in)Returns the index where the padding starts.
-
-
-
Method Detail
-
pad
public void pad(java.io.ByteArrayOutputStream in)
Adds the given number of padding bytes to the data input. The value of the padding bytes is determined by the specific padding mechanism that implements this interface.
-
unpad
public byte[] unpad(byte[] in)
Returns the index where the padding starts.Given a buffer with padded data, this method returns the index where the padding starts.
-
getPaddingLength
public int getPaddingLength(int inputLength)
- Specified by:
getPaddingLengthin interfaceIPadding
-
-