Searched refs:sigType (Results 1 – 4 of 4) sorted by relevance
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/ |
D | SecureMessageBuilder.java | 139 public SecureMessage buildSignedCleartextMessage(Key signingKey, SigType sigType, byte[] body) in buildSignedCleartextMessage() argument 141 if ((signingKey == null) || (sigType == null) || (body == null)) { in buildSignedCleartextMessage() 149 buildHeader(sigType, EncType.NONE, null).toByteArray(), body); in buildSignedCleartextMessage() 150 return createSignedResult(signingKey, sigType, headerAndBody, associatedData); in buildSignedCleartextMessage() 176 Key signingKey, SigType sigType, Key encryptionKey, EncType encType, byte[] body) in buildSignCryptedMessage() argument 179 || (sigType == null) in buildSignCryptedMessage() 188 if (sigType.isPublicKeyScheme() && (verificationKeyId == null)) { in buildSignCryptedMessage() 194 byte[] header = buildHeader(sigType, encType, iv).toByteArray(); in buildSignCryptedMessage() 200 if (taggedPlaintextRequired(signingKey, sigType, encryptionKey)) { in buildSignCryptedMessage() 216 return createSignedResult(signingKey, sigType, headerAndBody, associatedDataToBeSigned); in buildSignCryptedMessage() [all …]
|
D | SecureMessageParser.java | 90 SecureMessage secmsg, Key verificationKey, SigType sigType) in parseSignedCleartextMessage() argument 92 return parseSignedCleartextMessage(secmsg, verificationKey, sigType, null); in parseSignedCleartextMessage() 104 SecureMessage secmsg, Key verificationKey, SigType sigType, @Nullable byte[] associatedData) in parseSignedCleartextMessage() argument 106 if ((secmsg == null) || (verificationKey == null) || (sigType == null)) { in parseSignedCleartextMessage() 112 sigType, in parseSignedCleartextMessage() 129 SigType sigType, in parseSignCryptedMessage() argument 133 return parseSignCryptedMessage(secmsg, verificationKey, sigType, decryptionKey, encType, null); in parseSignCryptedMessage() 148 SigType sigType, in parseSignCryptedMessage() argument 155 || (sigType == null) in parseSignCryptedMessage() 165 SecureMessageBuilder.taggedPlaintextRequired(verificationKey, sigType, decryptionKey); in parseSignCryptedMessage() [all …]
|
D | CryptoOps.java | 83 SigType(SecureMessageProto.SigScheme sigType, String jcaName, boolean publicKeyScheme) { in SigType() argument 84 this.sigScheme = sigType; in SigType() 146 SigType sigType, Key signingKey, @Nullable SecureRandom rng, byte[] data) in sign() argument 151 if (sigType.isPublicKeyScheme()) { in sign() 158 Signature sigScheme = Signature.getInstance(sigType.getJcaName()); in sign() 171 Mac macScheme = Mac.getInstance(sigType.getJcaName()); in sign() 173 SecretKey derivedKey = deriveAes256KeyFor(getSecretKey(signingKey), getPurpose(sigType)); in sign() 188 static boolean verify(Key verificationKey, SigType sigType, byte[] signature, byte[] data) in verify() argument 193 if (sigType.isPublicKeyScheme()) { in verify() 197 Signature sigScheme = Signature.getInstance(sigType.getJcaName()); in verify() [all …]
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | EnrollmentCryptoOps.java | 149 SigType sigType = in encryptEnrollmentMessage() local 153 .buildSignedCleartextMessage(signingKey, sigType, enrollmentInfo.toByteArray()); in encryptEnrollmentMessage() 199 SigType sigType = isLegacy ? LEGACY_INNER_SIG_TYPE : INNER_SIG_TYPE; in decryptEnrollmentMessage() local 201 innerMsg, userPublicKey, sigType); in decryptEnrollmentMessage()
|