java.io.Closeable, java.lang.AutoCloseable, ConfigurableOpensslAesCtrCryptoCodec, OpensslSm4CtrCryptoCodec@Private @Evolving public abstract class OpensslCtrCryptoCodec extends CryptoCodec
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
OpensslCtrCryptoCodec.OpensslCtrCipher |
LOG| Constructor | Description |
|---|---|
OpensslCtrCryptoCodec() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
calculateIV(byte[] initIV,
long counter,
byte[] iv,
int blockSize) |
|
void |
close() |
|
void |
generateSecureRandom(byte[] bytes) |
Generate a number of secure, random bytes suitable for cryptographic use.
|
Configuration |
getConf() |
Return the configuration used by this object.
|
java.lang.String |
getEngineId() |
|
protected abstract org.slf4j.Logger |
getLogger() |
|
java.util.Random |
getRandom() |
|
void |
setConf(Configuration conf) |
Set the configuration to be used by this object.
|
void |
setEngineId(java.lang.String engineId) |
|
void |
setRandom(java.util.Random random) |
calculateIV, createDecryptor, createEncryptor, getCipherSuite, getInstance, getInstancepublic java.lang.String getEngineId()
public void setEngineId(java.lang.String engineId)
public java.util.Random getRandom()
public void setRandom(java.util.Random random)
public void calculateIV(byte[] initIV,
long counter,
byte[] iv,
int blockSize)
protected abstract org.slf4j.Logger getLogger()
public void setConf(Configuration conf)
Configurableconf - configuration to be usedpublic Configuration getConf()
Configurablepublic void generateSecureRandom(byte[] bytes)
CryptoCodecgenerateSecureRandom in class CryptoCodecbytes - byte array to populate with random datapublic void close()
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.