Searched refs:digests (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | SecretKeyFactoryTest.java | 101 String[] digests; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local 105 digests = new String[] {digest}; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 108 digests = new String[] {KeyProperties.DIGEST_SHA384}; in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 116 .setDigests(digests) in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 130 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
|
D | KeyGeneratorTest.java | 567 String[] digests; in testInitWithUnknownDigestFailsHelper() local 571 digests = new String[] {algorithm, "weird"}; in testInitWithUnknownDigestFailsHelper() 573 digests = new String[] {"weird"}; in testInitWithUnknownDigestFailsHelper() 577 .setDigests(digests) in testInitWithUnknownDigestFailsHelper() 683 String[] digests; in testGenerateHonorsRequestedAuthorizationsHelper() local 688 digests = new String[] {TestUtils.getHmacAlgorithmDigest(algorithm)}; in testGenerateHonorsRequestedAuthorizationsHelper() 691 digests = new String[] {KeyProperties.DIGEST_SHA384, KeyProperties.DIGEST_SHA1}; in testGenerateHonorsRequestedAuthorizationsHelper() 698 .setDigests(digests) in testGenerateHonorsRequestedAuthorizationsHelper() 713 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGenerateHonorsRequestedAuthorizationsHelper()
|
D | KeyProtectionTest.java | 153 String[] digests = new String[] {KeyProperties.DIGEST_MD5, KeyProperties.DIGEST_SHA512}; in testImmutabilityViaSetterParams() local 154 String[] originalDigests = digests.clone(); in testImmutabilityViaSetterParams() 165 .setDigests(digests) in testImmutabilityViaSetterParams() 178 digests[1] = null; in testImmutabilityViaSetterParams()
|
D | KeyGenParameterSpecTest.java | 202 String[] digests = new String[] {KeyProperties.DIGEST_MD5, KeyProperties.DIGEST_SHA512}; in testImmutabilityViaSetterParams() local 203 String[] originalDigests = digests.clone(); in testImmutabilityViaSetterParams() 216 .setDigests(digests) in testImmutabilityViaSetterParams() 237 digests[1] = null; in testImmutabilityViaSetterParams()
|
D | KeyFactoryTest.java | 104 String[] digests = new String[] {KeyProperties.DIGEST_SHA1, in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local 114 .setDigests(digests) in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 138 TestUtils.assertContentsInAnyOrder(actualDigests, digests); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
|
D | KeyPairGeneratorTest.java | 323 String[] digests = in testGenerateHonorsRequestedAuthorizationsHelper() local 330 .setDigests(digests) in testGenerateHonorsRequestedAuthorizationsHelper() 355 TestUtils.assertContentsInAnyOrder(actualDigests, digests); in testGenerateHonorsRequestedAuthorizationsHelper()
|
/cts/tests/security/src/android/keystore/cts/ |
D | AuthorizationList.java | 172 private Set<Integer> digests; field in AuthorizationList 233 digests = Asn1Utils.getIntegersFromAsn1Set(value); in AuthorizationList() 353 public static String digestsToString(Set<Integer> digests) { in digestsToString() argument 354 return joinStrings(transform(digests, forMap(digestMap, "Unknown"))); in digestsToString() 431 return digests; in getDigests() 634 if (digests != null && !digests.isEmpty()) { in toString() 635 s.append("\nDigests: ").append(digestsToString(digests)); in toString()
|