Searched refs:masterKey (Results 1 – 6 of 6) sorted by relevance
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | TransportCryptoOps.java | 117 Payload payload, SecretKey masterKey, byte[] keyHandle) in signcryptServerMessage() argument 119 if ((payload == null) || (masterKey == null) || (keyHandle == null)) { in signcryptServerMessage() 130 masterKey, in signcryptServerMessage() 132 masterKey, in signcryptServerMessage() 159 byte[] signcryptedServerMessage, SecretKey masterKey) in verifydecryptServerMessage() argument 161 if ((signcryptedServerMessage == null) || (masterKey == null)) { in verifydecryptServerMessage() 168 masterKey, in verifydecryptServerMessage() 170 masterKey, in verifydecryptServerMessage() 190 Payload payload, KeyPair userKeyPair, SecretKey masterKey) in signcryptClientMessage() argument 192 if ((payload == null) || (masterKey == null)) { in signcryptClientMessage() [all …]
|
D | EnrollmentCryptoOps.java | 117 public static byte[] getMasterKeyHash(SecretKey masterKey) { in getMasterKeyHash() argument 118 return sha256(masterKey.getEncoded()); in getMasterKeyHash() 137 GcmDeviceInfo enrollmentInfo, SecretKey masterKey, PrivateKey signingKey) in encryptEnrollmentMessage() argument 139 if ((enrollmentInfo == null) || (masterKey == null) || (signingKey == null)) { in encryptEnrollmentMessage() 144 getMasterKeyHash(masterKey))) { in encryptEnrollmentMessage() 164 masterKey, OUTER_SIG_TYPE, masterKey, OUTER_ENC_TYPE, innerMsg.toByteArray()); in encryptEnrollmentMessage() 178 byte[] enrollmentMessage, SecretKey masterKey, boolean isLegacy) in decryptEnrollmentMessage() argument 180 if ((enrollmentMessage == null) || (masterKey == null)) { in decryptEnrollmentMessage() 192 outerMsg, masterKey, OUTER_SIG_TYPE, masterKey, OUTER_ENC_TYPE); in decryptEnrollmentMessage() 216 && Arrays.equals(getMasterKeyHash(masterKey), in decryptEnrollmentMessage()
|
D | D2DCryptoOps.java | 83 Payload payload, SecretKey masterKey) in signcryptPayload() argument 85 return signcryptPayload(payload, masterKey, null); in signcryptPayload() 96 Payload payload, SecretKey masterKey, @Nullable byte[] responderHello) in signcryptPayload() argument 98 if ((payload == null) || (masterKey == null)) { in signcryptPayload() 114 masterKey, in signcryptPayload() 116 masterKey, in signcryptPayload() 152 byte[] signcryptedMessage, SecretKey masterKey) in verifydecryptPayload() argument 154 if ((signcryptedMessage == null) || (masterKey == null)) { in verifydecryptPayload() 161 masterKey, in verifydecryptPayload() 163 masterKey, in verifydecryptPayload() [all …]
|
D | D2DDiffieHellmanKeyExchangeHandshake.java | 169 SecretKey masterKey = in makeResponderHelloWithPayload() local 175 initiatorEncodeKey = masterKey; in makeResponderHelloWithPayload() 176 responderEncodeKey = masterKey; in makeResponderHelloWithPayload() 179 initiatorEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, INITIATOR_PURPOSE); in makeResponderHelloWithPayload() 180 responderEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, RESPONDER_PURPOSE); in makeResponderHelloWithPayload() 233 SecretKey masterKey = D2DCryptoOps.deriveSharedKeyFromGenericPublicKey( in parseResponderHello() local 238 initiatorEncodeKey = masterKey; in parseResponderHello() 239 responderEncodeKey = masterKey; in parseResponderHello() 241 initiatorEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, INITIATOR_PURPOSE); in parseResponderHello() 242 responderEncodeKey = D2DCryptoOps.deriveNewKeyForPurpose(masterKey, RESPONDER_PURPOSE); in parseResponderHello()
|
D | KeyEncoding.java | 45 public static byte[] encodeMasterKey(SecretKey masterKey) { in encodeMasterKey() argument 46 return masterKey.getEncoded(); in encodeMasterKey()
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/ |
D | CryptoOps.java | 396 static SecretKey deriveAes256KeyFor(SecretKey masterKey, String purpose) in deriveAes256KeyFor() argument 398 return new SecretKeySpec(hkdf(masterKey, SALT, utf8StringToBytes(purpose)), "AES"); in deriveAes256KeyFor()
|