Enum PaddingScheme

java.lang.Object
java.lang.Enum<PaddingScheme>
org.apache.shiro.crypto.cipher.PaddingScheme
All Implemented Interfaces:
Serializable, Comparable<PaddingScheme>

public enum PaddingScheme extends Enum<PaddingScheme>
A CipherPaddingScheme represents well-known padding schemes supported by JPA providers in a type-safe manner.

When encrypted data is transferred, it is usually desirable to ensure that all 'chunks' transferred are a fixed-length: different length blocks might give cryptanalysts clues about what the data might be, among other reasons. Of course not all data will convert to neat fixed-length blocks, so padding schemes are used to 'fill in' (pad) any remaining space with unintelligible data.

Padding schemes can be used in both asymmetric key ciphers as well as symmetric key ciphers (e.g. block ciphers). Block-ciphers especially regularly use padding schemes as they are based on the notion of fixed-length block sizes.

Since:
1.0
See Also: