Home
last modified time | relevance | path

Searched refs:algorithmUpperCase (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java632 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getHmacAlgorithmDigest() local
633 if (!algorithmUpperCase.startsWith("HMAC")) { in getHmacAlgorithmDigest()
636 String result = algorithmUpperCase.substring("HMAC".length()); in getHmacAlgorithmDigest()
757 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmDigest() local
758 int withIndex = algorithmUpperCase.indexOf("WITH"); in getSignatureAlgorithmDigest()
762 String digest = algorithmUpperCase.substring(0, withIndex); in getSignatureAlgorithmDigest()
770 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmPadding() local
771 if (algorithmUpperCase.endsWith("WITHECDSA")) { in getSignatureAlgorithmPadding()
773 } else if (algorithmUpperCase.endsWith("WITHRSA")) { in getSignatureAlgorithmPadding()
775 } else if (algorithmUpperCase.endsWith("WITHRSA/PSS")) { in getSignatureAlgorithmPadding()
[all …]
DSignatureTest.java600 String algorithmUpperCase = sigAlgorithm.toUpperCase(Locale.US); in testEntropyConsumption() local
601 if (algorithmUpperCase.endsWith("WITHECDSA")) { in testEntropyConsumption()
604 } else if (algorithmUpperCase.endsWith("WITHRSA")) { in testEntropyConsumption()
606 } else if (algorithmUpperCase.endsWith("WITHRSA/PSS")) { in testEntropyConsumption()