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, engineWrap
public 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 CipherSpi
IllegalBlockSizeException
BadPaddingException
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
ShortBufferException
IllegalBlockSizeException
BadPaddingException
protected int engineDoFinal(ByteBuffer input, ByteBuffer output) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
ShortBufferException
IllegalBlockSizeException
BadPaddingException
protected int engineGetBlockSize()
engineGetBlockSize
in class CipherSpi
protected byte[] engineGetIV()
engineGetIV
in class CipherSpi
protected int engineGetKeySize(Key key) throws InvalidKeyException
engineGetKeySize
in class CipherSpi
InvalidKeyException
protected int engineGetOutputSize(int inputLen)
engineGetOutputSize
in class CipherSpi
protected AlgorithmParameters engineGetParameters()
engineGetParameters
in class CipherSpi
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException
engineInit
in class CipherSpi
InvalidKeyException
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
InvalidKeyException
InvalidAlgorithmParameterException
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode
in class CipherSpi
NoSuchAlgorithmException
protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding
in class CipherSpi
NoSuchPaddingException
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdate
in class CipherSpi
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException
engineUpdate
in class CipherSpi
ShortBufferException
Copyright © 2011–2022 Stiftung SIC. All rights reserved.