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.java630 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getHmacAlgorithmDigest() local
631 if (!algorithmUpperCase.startsWith("HMAC")) { in getHmacAlgorithmDigest()
634 String result = algorithmUpperCase.substring("HMAC".length()); in getHmacAlgorithmDigest()
715 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmDigest() local
716 int withIndex = algorithmUpperCase.indexOf("WITH"); in getSignatureAlgorithmDigest()
720 String digest = algorithmUpperCase.substring(0, withIndex); in getSignatureAlgorithmDigest()
728 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmPadding() local
729 if (algorithmUpperCase.endsWith("WITHECDSA")) { in getSignatureAlgorithmPadding()
731 } else if (algorithmUpperCase.endsWith("WITHRSA")) { in getSignatureAlgorithmPadding()
733 } 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()