public class ECIES extends CipherSpi
KeyAgreement:
KDFs:
MACs:
Ciphers:
(*) denotes the default value.
References:
[1] Certicom Research. 2009. Standards for Efficient Cryptography - SEC 1: Elliptic Curve Cryptography v2.0
ECIESParameterSpec| Modifier and Type | Class and Description |
|---|---|
static class |
ECIES.ECIESwithAES_CBC
ECIES Cipher using AES128 in CBC mode and PKCS5Padding
|
static class |
ECIES.ECIESwithAES_CTR
ECIES Cipher using AES128 in CTR mode and NoPadding
|
static class |
ECIES.ECIESwithDESede_CBC
ECIES Cipher using DES in CBC mode and PKCS5Padding
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DECRYPT_MODE
Constant used to initialize cipher in decryption mode.
|
static int |
ENCRYPT_MODE
Constant used to initialize cipher in encryption mode.
|
static iaik.asn1.ObjectID |
OID
object identifier
|
protected iaik.security.ec.ecies.RawECIES |
rawECIES_ |
| Constructor and Description |
|---|
ECIES()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected int |
engineDoFinal(ByteBuffer input,
ByteBuffer output) |
protected int |
engineGetBlockSize() |
protected byte[] |
engineGetIV() |
protected int |
engineGetKeySize(Key key) |
protected int |
engineGetOutputSize(int inputLen) |
protected AlgorithmParameters |
engineGetParameters() |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
SecureRandom random) |
protected void |
engineSetMode(String mode) |
protected void |
engineSetPadding(String padding) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
engineUnwrap, engineUpdate, engineUpdateAAD, engineUpdateAAD, engineWrappublic static final int ENCRYPT_MODE
public static final int DECRYPT_MODE
public static final iaik.asn1.ObjectID OID
protected final iaik.security.ec.ecies.RawECIES rawECIES_
protected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException,
IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiShortBufferExceptionIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineDoFinal(ByteBuffer input, ByteBuffer output) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException
engineDoFinal in class CipherSpiShortBufferExceptionIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineGetBlockSize()
engineGetBlockSize in class CipherSpiprotected byte[] engineGetIV()
engineGetIV in class CipherSpiprotected int engineGetKeySize(Key key) throws InvalidKeyException
engineGetKeySize in class CipherSpiInvalidKeyExceptionprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class CipherSpiprotected AlgorithmParameters engineGetParameters()
engineGetParameters in class CipherSpiprotected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit in class CipherSpiInvalidKeyExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode in class CipherSpiNoSuchAlgorithmExceptionprotected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding in class CipherSpiNoSuchPaddingExceptionprotected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class CipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException
engineUpdate in class CipherSpiShortBufferExceptionCopyright © 2011–2022 Stiftung SIC. All rights reserved.