public class KeyAgreementImpl
extends javacard.security.KeyAgreement
KeyAgreement based
on BouncyCastle CryptoAPI.KeyAgreement,
ECDHBasicAgreement,
ECDHCBasicAgreement| Constructor and Description |
|---|
KeyAgreementImpl(byte algorithm) |
| Modifier and Type | Method and Description |
|---|---|
short |
generateSecret(byte[] publicData,
short publicOffset,
short publicLength,
byte[] secret,
short secretOffset) |
byte |
getAlgorithm() |
void |
init(javacard.security.PrivateKey privateKey) |
public void init(javacard.security.PrivateKey privateKey)
throws javacard.security.CryptoException
init in class javacard.security.KeyAgreementjavacard.security.CryptoExceptionpublic byte getAlgorithm()
getAlgorithm in class javacard.security.KeyAgreementpublic short generateSecret(byte[] publicData,
short publicOffset,
short publicLength,
byte[] secret,
short secretOffset)
throws javacard.security.CryptoException
generateSecret in class javacard.security.KeyAgreementjavacard.security.CryptoException