Searched refs:CryptoOps (Results 1 – 7 of 7) sorted by relevance
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/ |
D | SecureMessageParser.java | 19 import com.google.security.cryptauth.lib.securemessage.CryptoOps.EncType; 20 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType; 181 rawDecryptedBody = CryptoOps.decrypt( in parseSignCryptedMessage() 209 byte[] expectedTag = CryptoOps.digest(CryptoOps.concat(headerBytes, associatedData)); in parseSignCryptedMessage() 210 if (rawDecryptedBody.length >= CryptoOps.DIGEST_LENGTH) { in parseSignCryptedMessage() 211 byte[] actualTag = CryptoOps.subarray(rawDecryptedBody, 0, CryptoOps.DIGEST_LENGTH); in parseSignCryptedMessage() 212 if (CryptoOps.constantTimeArrayEquals(actualTag, expectedTag)) { in parseSignCryptedMessage() 220 int bodyLen = rawDecryptedBody.length - CryptoOps.DIGEST_LENGTH; in parseSignCryptedMessage() 223 .setBody(ByteString.copyFrom(rawDecryptedBody, CryptoOps.DIGEST_LENGTH, bodyLen)) in parseSignCryptedMessage() 240 byte[] signedData = suppressAssociatedData ? data : CryptoOps.concat(data, associatedData); in verifyHeaderAndBody() [all …]
|
D | SecureMessageBuilder.java | 18 import com.google.security.cryptauth.lib.securemessage.CryptoOps.EncType; 19 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType; 193 byte[] iv = CryptoOps.generateIv(encType, rng); in buildSignCryptedMessage() 202 taggedBody = CryptoOps.concat( in buildSignCryptedMessage() 204 CryptoOps.digest(CryptoOps.concat(header, associatedData)), in buildSignCryptedMessage() 213 byte[] encryptedBody = CryptoOps.encrypt(encryptionKey, encType, rng, iv, taggedBody); in buildSignCryptedMessage() 271 CryptoOps.sign(sigType, signingKey, rng, CryptoOps.concat(headerAndBody, associatedData)); in createSignedResult()
|
D | CryptoOps.java | 42 public class CryptoOps { class 44 private CryptoOps() {} // Do not instantiate in CryptoOps() method in CryptoOps
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | D2DCryptoOps.java | 24 import com.google.security.cryptauth.lib.securemessage.CryptoOps; 25 import com.google.security.cryptauth.lib.securemessage.CryptoOps.EncType; 26 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType; 207 return KeyEncoding.parseMasterKey(CryptoOps.hkdf(masterKey, SALT, info)); in deriveNewKeyForPurpose()
|
D | EnrollmentCryptoOps.java | 22 import com.google.security.cryptauth.lib.securemessage.CryptoOps.EncType; 23 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
|
D | TransportCryptoOps.java | 19 import com.google.security.cryptauth.lib.securemessage.CryptoOps.EncType; 20 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
|
D | Ukey2Handshake.java | 25 import com.google.security.cryptauth.lib.securemessage.CryptoOps; 390 authString = CryptoOps.hkdf(derivedSecretKey, salt, info); in getVerificationString() 525 nextProtocolKey = new SecretKeySpec(CryptoOps.hkdf(derivedSecretKey, salt, info), "AES"); in toConnectionContext()
|