public class NoIvGenerator extends Object implements IvGenerator
This implementation of IvGenerator
always returns a
initialization vector (IV) of length 0.
This class is thread-safe.
Constructor and Description |
---|
NoIvGenerator()
Creates a new instance of NoIvGenerator
|
Modifier and Type | Method and Description |
---|---|
byte[] |
generateIv(int lengthBytes)
Return IV with 0 byte length.
|
boolean |
includePlainIvInEncryptionResults()
As this IV generator provides an empty vector, its inclusion
unencrypted in encryption results is not necessary.
|
public byte[] generateIv(int lengthBytes)
generateIv
in interface IvGenerator
lengthBytes
- length in bytes.public boolean includePlainIvInEncryptionResults()
includePlainIvInEncryptionResults
in interface IvGenerator
Copyright © 2021 JBoss by Red Hat. All rights reserved.