Home
last modified time | relevance | path

Searched refs:PublicKeyProtoUtil (Results 1 – 6 of 6) sorted by relevance

/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DKeyEncoding.java18 import com.google.security.cryptauth.lib.securemessage.PublicKeyProtoUtil;
85 return PublicKeyProtoUtil.encodeDh2048PrivateKey((DHPrivateKey) sk); in encodeKeyAgreementPrivateKey()
93 return PublicKeyProtoUtil.parseDh2048PrivateKey(keyBytes); in parseKeyAgreementPrivateKey()
131 return PublicKeyProtoUtil.isLegacyCryptoRequired() || simulateLegacyCryptoRequired; in isLegacyCryptoRequired()
143 return PublicKeyProtoUtil.encodePublicKey(pk).toByteArray(); in encodePublicKey()
148 return PublicKeyProtoUtil.parsePublicKey(GenericPublicKey.parseFrom(keyBytes)); in parsePublicKey()
DD2DDiffieHellmanKeyExchangeHandshake.java23 import com.google.security.cryptauth.lib.securemessage.PublicKeyProtoUtil;
95 ourKeyPair = PublicKeyProtoUtil.generateEcP256KeyPair(); in D2DDiffieHellmanKeyExchangeHandshake()
130 .setPublicDhKey(PublicKeyProtoUtil.encodePublicKey(ourKeyPair.getPublic())) in getNextHandshakeMessage()
267 theirPublicKey = PublicKeyProtoUtil.parsePublicKey(initiatorHelloProto.getPublicDhKey()); in parseInitiatorHello()
DEnrollmentCryptoOps.java24 import com.google.security.cryptauth.lib.securemessage.PublicKeyProtoUtil;
109 return PublicKeyProtoUtil.generateDh2048KeyPair(); in generateEnrollmentKeyAgreementKeyPair()
111 return PublicKeyProtoUtil.generateEcP256KeyPair(); in generateEnrollmentKeyAgreementKeyPair()
DD2DCryptoOps.java27 import com.google.security.cryptauth.lib.securemessage.PublicKeyProtoUtil;
74 responderHello.setPublicDhKey(PublicKeyProtoUtil.encodePublicKey(publicDhKey)); in signcryptMessageAndResponderHello()
188 PublicKey theirPublicKey = PublicKeyProtoUtil.parsePublicKey(theirGenericPublicKey); in deriveSharedKeyFromGenericPublicKey()
DUkey2Handshake.java26 import com.google.security.cryptauth.lib.securemessage.PublicKeyProtoUtil;
576 PublicKeyProtoUtil.encodePublicKey(ourKeyPair.getPublic()).toByteString()); in makeServerInitMessage()
590 return PublicKeyProtoUtil.generateEcP256KeyPair(); in genKeyPair()
881 return PublicKeyProtoUtil.parsePublicKey(GenericPublicKey.parseFrom(encodedPublicKey)); in parseP256PublicKey()
910 byte[] encodedKey = PublicKeyProtoUtil.encodePublicKey(p256KeyPair.getPublic()).toByteArray(); in generateP256SHA512ClientFinished()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
DPublicKeyProtoUtil.java52 public class PublicKeyProtoUtil { class
54 private PublicKeyProtoUtil() {} // Do not instantiate in PublicKeyProtoUtil() method in PublicKeyProtoUtil