Package org.webpki.keygen2
Interface ServerCryptoInterface
public interface ServerCryptoInterface
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
encrypt
(byte[] data) void
generateAndVerifySessionKey
(ECPublicKey clientEphemeralKey, byte[] kdfData, byte[] attestationArguments, X509Certificate deviceCertificate, byte[] sessionAttestation) generateEphemeralKey
(KeyAlgorithms ecKeyAlgorithm) byte[]
generateKeyManagementAuthorization
(PublicKey keyManagementKey, byte[] data) byte[]
byte[]
mac
(byte[] data, byte[] keyModifier)
-
Method Details
-
generateEphemeralKey
-
generateAndVerifySessionKey
void generateAndVerifySessionKey(ECPublicKey clientEphemeralKey, byte[] kdfData, byte[] attestationArguments, X509Certificate deviceCertificate, byte[] sessionAttestation) -
mac
byte[] mac(byte[] data, byte[] keyModifier) -
encrypt
byte[] encrypt(byte[] data) -
generateNonce
byte[] generateNonce() -
generateKeyManagementAuthorization
-
enumerateKeyManagementKeys
PublicKey[] enumerateKeyManagementKeys()
-