public interface Padding
This interface is included in IJCE only so that classes that use it will not fail with an unrecoverable linking error. The abstract class PaddingScheme should be used instead.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
java.security.PaddingScheme
Modifier and Type | Method and Description |
---|---|
int |
pad(byte[] in,
int off,
int len)
Deprecated.
Pads a given array of bytes.
|
java.lang.String |
paddingScheme()
Deprecated.
Returns the standard name of the padding scheme implemented.
|
int |
padLength(int len)
Deprecated.
Returns the absolute value of the increase in size that a
padding operation would cause on input data of a given length.
|
int |
unpad(byte[] in,
int off,
int len)
Deprecated.
Given the specified subarray of bytes that includes padding
bytes, returns the index indicating where padding starts.
|
int pad(byte[] in, int off, int len)
in
- the buffer containing the bytes.off
- the offset into the in
buffer of the
first byte in the group of bytes to be padded.len
- the number of bytes from the in
buffer,
starting at off
, that need to be padded.java.security.Cipher#blockSize
int unpad(byte[] in, int off, int len)
in
- the buffer containing the bytes.off
- the starting offset into the in
buffer of
the bytes to be checked to determine where padding starts.len
- the number of bytes from the in
buffer
to check, starting at offset off
.in
buffer indicating
where the padding starts.int padLength(int len)
len
- the length of the data which is to be padded.java.lang.String paddingScheme()
See International JCE Standard Algorithm Names for a list of PaddingScheme algorithm names.