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.java610 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getHmacAlgorithmDigest() local
611 if (!algorithmUpperCase.startsWith("HMAC")) { in getHmacAlgorithmDigest()
614 String result = algorithmUpperCase.substring("HMAC".length()); in getHmacAlgorithmDigest()
692 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmDigest() local
693 int withIndex = algorithmUpperCase.indexOf("WITH"); in getSignatureAlgorithmDigest()
697 String digest = algorithmUpperCase.substring(0, withIndex); in getSignatureAlgorithmDigest()
705 String algorithmUpperCase = algorithm.toUpperCase(Locale.US); in getSignatureAlgorithmPadding() local
706 if (algorithmUpperCase.endsWith("WITHECDSA")) { in getSignatureAlgorithmPadding()
708 } else if (algorithmUpperCase.endsWith("WITHRSA")) { in getSignatureAlgorithmPadding()
710 } 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()