Searched refs:digest (Results 1 – 12 of 12) sorted by relevance
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDefTest.java | 40 String digest = def.generateDigest(new File("unused"), "alsounused"); in testGenerateDigest() local 41 assertNotNull(digest); in testGenerateDigest() 42 assertEquals("58c222b5f5f81b4b58891ec59924b9b2f530452e", digest); in testGenerateDigest()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | TestUtils.java | 574 MessageDigest digest = MessageDigest.getInstance("SHA-512"); in generateLargeKatMsg() local 578 seed = digest.digest(seed); in generateLargeKatMsg() 697 String digest = algorithmUpperCase.substring(0, withIndex); in getSignatureAlgorithmDigest() local 698 if (digest.startsWith("SHA")) { in getSignatureAlgorithmDigest() 699 digest = "SHA-" + digest.substring("SHA".length()); in getSignatureAlgorithmDigest() 701 return digest; in getSignatureAlgorithmDigest() 736 String digest = getSignatureAlgorithmDigest(algorithm); in isKeyLongEnoughForSignatureAlgorithm() local 737 int digestOutputSizeBits = getDigestOutputSizeBits(digest); in isKeyLongEnoughForSignatureAlgorithm() 774 String digest = getCipherDigest(transformation); in getMaxSupportedPlaintextInputSizeBytes() local 775 int digestOutputSizeBytes = (getDigestOutputSizeBits(digest) + 7) / 8; in getMaxSupportedPlaintextInputSizeBytes() [all …]
|
D | KeyGeneratorTest.java | 301 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testHmacKeyOnlyOneDigestCanBeAuthorized() local 302 assertNotNull(digest); in testHmacKeyOnlyOneDigestCanBeAuthorized() 314 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testHmacKeyOnlyOneDigestCanBeAuthorized() local 317 keyGenerator.init(TestUtils.buildUpon(goodSpec).setDigests(digest).build()); in testHmacKeyOnlyOneDigestCanBeAuthorized() 320 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testHmacKeyOnlyOneDigestCanBeAuthorized() local 329 String anotherDigest = "SHA-256".equalsIgnoreCase(digest) ? "SHA-384" : "SHA-256"; in testHmacKeyOnlyOneDigestCanBeAuthorized() 338 .setDigests(digest, anotherDigest) in testHmacKeyOnlyOneDigestCanBeAuthorized() 424 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testInitWithKeyAlgorithmDigestMissingFromAuthorizedDigestFails() local 425 String anotherDigest = KeyProperties.DIGEST_SHA256.equalsIgnoreCase(digest) in testInitWithKeyAlgorithmDigestMissingFromAuthorizedDigestFails()
|
D | RSASignatureTest.java | 112 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testSmallKeyRejected() local 113 if (KeyProperties.DIGEST_NONE.equalsIgnoreCase(digest)) { in testSmallKeyRejected() 118 int digestOutputSizeBits = TestUtils.getDigestOutputSizeBits(digest); in testSmallKeyRejected()
|
D | SecretKeyFactoryTest.java | 96 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local 97 digests = new String[] {digest}; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
|
D | SignatureTest.java | 727 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testLongMsgKat() local 729 if ((KeyProperties.DIGEST_NONE.equalsIgnoreCase(digest)) in testLongMsgKat() 879 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testInitSignFailsWhenDigestNotAuthorized() local 881 (KeyProperties.DIGEST_SHA256.equalsIgnoreCase(digest)) in testInitSignFailsWhenDigestNotAuthorized() 887 if (!KeyProperties.DIGEST_NONE.equalsIgnoreCase(digest)) { in testInitSignFailsWhenDigestNotAuthorized() 905 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testInitVerifyIgnoresThatDigestNotAuthorized() local 907 (KeyProperties.DIGEST_SHA256.equalsIgnoreCase(digest)) in testInitVerifyIgnoresThatDigestNotAuthorized()
|
D | AndroidKeyStoreTest.java | 2406 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() local 2407 assertNotNull(digest); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2420 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() local 2425 TestUtils.buildUpon(goodSpec).setDigests(digest).build()); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2428 Arrays.asList(TestUtils.getKeyInfo(key).getDigests()), digest); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() local 2439 String anotherDigest = "SHA-256".equalsIgnoreCase(digest) ? "SHA-384" : "SHA-256"; in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2450 .setDigests(digest, anotherDigest) in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
D | TestPackageResult.java | 106 public void setDigest(String digest) { in setDigest() argument 107 mDigest = digest; in setDigest() 243 String digest = metrics.get(CtsTest.PACKAGE_DIGEST_METRIC); in populateMetrics() local 244 if (digest != null) { in populateMetrics() 245 setDigest(digest); in populateMetrics()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 163 byte[] sha1 = messageDigest.digest(); in getFingerprint()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 140 int amt = md.digest(bytes, 12, 20); in calcSignature()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPackageDef.java | 433 return toHexString(md.digest()); in generateDigest()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 31726 protected java.security.MessageDigest digest 31759 protected java.security.MessageDigest digest 32978 public int digest( 32983 public byte[] digest() 32985 public byte[] digest( 55429 private java.security.MessageDigest digest 55892 java.security.MessageDigest digest 93355 private byte[] digest 97600 byte[] digest 97768 private org.bouncycastle.crypto.Digest digest [all …]
|