Package org.jitsi.srtp.crypto
Class OpenSslAesEcbCipherSpi
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.jitsi.srtp.crypto.OpenSslAesCipherSpi
-
- org.jitsi.srtp.crypto.OpenSslAesEcbCipherSpi
-
- All Implemented Interfaces:
AutoCloseable
public final class OpenSslAesEcbCipherSpi extends OpenSslAesCipherSpi
AES-ECB Cipher implementation using OpenSSL via JNI.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jitsi.srtp.crypto.OpenSslAesCipherSpi
OpenSslAesCipherSpi.OpenSslAesCipherSpiCleanable
-
-
Field Summary
-
Fields inherited from class org.jitsi.srtp.crypto.OpenSslAesCipherSpi
BLKLEN, ctx, iv, opmode
-
-
Constructor Summary
Constructors Constructor Description OpenSslAesEcbCipherSpi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
protected long
getOpenSSLCipher(Key key)
Get the appropriate OpenSSL cipher object for the given key length.-
Methods inherited from class org.jitsi.srtp.crypto.OpenSslAesCipherSpi
close, doCipherUpdate, doEngineInit, engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineSetMode, engineSetPadding, engineUpdate, engineUpdate, getOutputSize
-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineUpdateAAD, engineUpdateAAD, engineWrap
-
-
-
-
Method Detail
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
- Specified by:
engineInit
in classCipherSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
getOpenSSLCipher
protected long getOpenSSLCipher(Key key) throws InvalidKeyException
Description copied from class:OpenSslAesCipherSpi
Get the appropriate OpenSSL cipher object for the given key length.- Specified by:
getOpenSSLCipher
in classOpenSslAesCipherSpi
- Throws:
InvalidKeyException
-
-