Home
last modified time | relevance | path

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

/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DEnrollmentCryptoOps.java23 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
51 private static final SigType OUTER_SIG_TYPE = SigType.HMAC_SHA256;
61 private static final SigType INNER_SIG_TYPE = SigType.ECDSA_P256_SHA256;
67 private static final SigType LEGACY_INNER_SIG_TYPE = SigType.RSA2048_SHA256;
149 SigType sigType = in encryptEnrollmentMessage()
199 SigType sigType = isLegacy ? LEGACY_INNER_SIG_TYPE : INNER_SIG_TYPE; in decryptEnrollmentMessage()
DTransportCryptoOps.java20 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
131 SigType.HMAC_SHA256, in signcryptServerMessage()
169 SigType.HMAC_SHA256, in verifydecryptServerMessage()
259 private static SigType getSigTypeFor(PublicKey userPublicKey) throws InvalidKeyException { in getSigTypeFor()
261 return SigType.ECDSA_P256_SHA256; in getSigTypeFor()
263 return SigType.RSA2048_SHA256; in getSigTypeFor()
DD2DCryptoOps.java26 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
115 SigType.HMAC_SHA256, in signcryptPayload()
162 SigType.HMAC_SHA256, in verifydecryptPayload()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
DSecureMessageParser.java20 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
67 SigType.valueOf(result.getSignatureScheme()); in getUnverifiedHeader()
90 SecureMessage secmsg, Key verificationKey, SigType sigType) in parseSignedCleartextMessage()
104 SecureMessage secmsg, Key verificationKey, SigType sigType, @Nullable byte[] associatedData) in parseSignedCleartextMessage()
129 SigType sigType, in parseSignCryptedMessage()
148 SigType sigType, in parseSignCryptedMessage()
230 SigType sigType, in verifyHeaderAndBody()
DSecureMessageBuilder.java19 import com.google.security.cryptauth.lib.securemessage.CryptoOps.SigType;
139 public SecureMessage buildSignedCleartextMessage(Key signingKey, SigType sigType, byte[] body) in buildSignedCleartextMessage()
176 Key signingKey, SigType sigType, Key encryptionKey, EncType encType, byte[] body) in buildSignCryptedMessage()
223 static boolean taggedPlaintextRequired(Key signingKey, SigType sigType, Key encryptionKey) { in taggedPlaintextRequired()
232 private Header buildHeader(SigType sigType, EncType encType, byte[] iv) { in buildHeader()
268 Key signingKey, SigType sigType, byte[] headerAndBody, @Nullable byte[] associatedData) in createSignedResult()
DCryptoOps.java53 public enum SigType { enum in CryptoOps
70 public static SigType valueOf(SecureMessageProto.SigScheme sigScheme) { in valueOf()
71 for (SigType value : values()) { in valueOf()
83 SigType(SecureMessageProto.SigScheme sigType, String jcaName, boolean publicKeyScheme) { in SigType() method in CryptoOps.SigType
146 SigType sigType, Key signingKey, @Nullable SecureRandom rng, byte[] data) in sign()
188 static boolean verify(Key verificationKey, SigType sigType, byte[] signature, byte[] data) in verify()
344 static String getPurpose(SigType sigType) { in getPurpose()