public class LunaParametersGcm
extends java.security.AlgorithmParametersSpi
Constructor and Description |
---|
LunaParametersGcm()
This constructor is typically used by the JCE provider.
|
LunaParametersGcm(byte[] iv,
byte[] aad,
int tagBits)
Constructor for use when creating an instance directly.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineGetEncoded()
Returns the GCM parameters encoded in a proprietary format.
|
protected byte[] |
engineGetEncoded(java.lang.String format)
Returns the GCM parameters encoded in a proprietary format.
|
protected <T extends java.security.spec.AlgorithmParameterSpec> |
engineGetParameterSpec(java.lang.Class<T> paramSpec) |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) |
protected void |
engineInit(byte[] params)
Unsupported.
|
protected void |
engineInit(byte[] params,
java.lang.String format)
Unsupported.
|
protected java.lang.String |
engineToString() |
public LunaParametersGcm()
public LunaParametersGcm(byte[] iv, byte[] aad, int tagBits)
iv
- Initialization vectoraad
- Additional authentication datatagBits
- The number of authentication bitsprotected byte[] engineGetEncoded() throws java.io.IOException
engineGetEncoded
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException
engineGetEncoded
in class java.security.AlgorithmParametersSpi
format
- Only "Luna" is supportedjava.io.IOException
protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> paramSpec) throws java.security.spec.InvalidParameterSpecException
engineGetParameterSpec
in class java.security.AlgorithmParametersSpi
java.security.spec.InvalidParameterSpecException
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
engineInit
in class java.security.AlgorithmParametersSpi
java.security.spec.InvalidParameterSpecException
protected void engineInit(byte[] params) throws java.io.IOException
engineInit
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected void engineInit(byte[] params, java.lang.String format) throws java.io.IOException
engineInit
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected java.lang.String engineToString()
engineToString
in class java.security.AlgorithmParametersSpi
Copyright 2014-2018 SafeNet. All rights reserved.