Package javacardx.security.derivation
Interface KDFIcaoMrtdSpec
-
- All Superinterfaces:
AlgorithmParameterSpec
public interface KDFIcaoMrtdSpec extends AlgorithmParameterSpec
This interface specifies the set of parameters used to instantiate aDerivationFunction
implementing KDF Key Derivation Function defined in the standard ICAO MRTD Doc 9303.This interface is bound to the constant
DerivationFunction.ALG_KDF_ICAO_MRTD
.Computation of the KDF function refers to H(K || c) where H is a digest algorithm, K is a shared secret and c a 32 bits counter.
- Since:
- 3.1
- See Also:
DerivationFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte
getAlgorithm()
Returns the Digest Algorithm associated with the derivation function.byte[]
getCounter()
Gets the Counter.byte[]
getSecret()
Gets the shared secret value for the key derivation function.
-
-
-
Method Detail
-
getAlgorithm
byte getAlgorithm()
Returns the Digest Algorithm associated with the derivation function.- Returns:
- the Digest algorithm associated with the derivation function
- See Also:
MessageDigest.ALG_SHA
,MessageDigest.ALG_SHA_256
-
getSecret
byte[] getSecret()
Gets the shared secret value for the key derivation function.It may be an array view.
- Returns:
- the shared secret value
-
getCounter
byte[] getCounter()
Gets the Counter. It is a 4 bytes (32 bits) long.It may be an array view.
- Returns:
- the counter
-
-