Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 25 of 74) sorted by relevance

123

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java174 KeyStore ks = KeyStore.getInstance(algorithm, provider); in keyStores() local
175 assertEquals(provider, ks.getProvider()); in keyStores()
176 assertEquals(algorithm, ks.getType()); in keyStores()
177 if (!isUnsupported(ks)) { in keyStores()
178 keyStores.add(ks); in keyStores()
185 private static boolean isSecretKeyEnabled(KeyStore ks) { in isSecretKeyEnabled() argument
187 return (!(ks.getType().equals("JKS") in isSecretKeyEnabled()
188 || ks.getType().equals("CaseExactJKS") in isSecretKeyEnabled()
189 || (ks.getType().equals("PKCS12")) in isSecretKeyEnabled()
190 || (ks.getType().equals("AndroidKeyStore")))); in isSecretKeyEnabled()
[all …]
DAndroidKeyStoreTest.java1890 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
1891 assertNotNull(ks); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1892 ks.load(null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1914 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1916 PublicKey publicKey = ks.getCertificate(alias).getPublicKey(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/tests/identity/src/android/security/identity/cts/
DX509CertificateSigningTest.java60 KeyStore ks = null; in testSigning() local
62 ks = KeyStore.getInstance("AndroidKeyStore"); in testSigning()
63 ks.load(null); in testSigning()
64 ks.deleteEntry(keyToSignAlias); in testSigning()
65 ks.deleteEntry(keyToSignWithAlias); in testSigning()
66 assertFalse(ks.containsAlias(keyToSignAlias)); in testSigning()
67 assertFalse(ks.containsAlias(keyToSignWithAlias)); in testSigning()
84 assertTrue(ks.containsAlias(keyToSignAlias)); in testSigning()
85 assertTrue(ks.containsAlias(keyToSignWithAlias)); in testSigning()
DReaderAuthTest.java136 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in readerAuth() local
137 ks.load(null); in readerAuth()
138 X509Certificate certA = (X509Certificate) ks.getCertificate("readerKeyA"); in readerAuth()
139 X509Certificate certB = (X509Certificate) ks.getCertificate("readerKeyB"); in readerAuth()
144 X509Certificate certC = (X509Certificate) ks.getCertificate("readerKeyC"); in readerAuth()
DUserAuthTest.java133 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in checkAuthBoundKey() local
134 ks.load(null); in checkAuthBoundKey()
135 KeyStore.Entry entry = ks.getEntry(alias, null); in checkAuthBoundKey()
DUtil.java832 KeyStore ks = null; in signPublicKeyWithPrivateKey() local
834 ks = KeyStore.getInstance("AndroidKeyStore"); in signPublicKeyWithPrivateKey()
835 ks.load(null); in signPublicKeyWithPrivateKey()
851 X509Certificate selfSignedCert = (X509Certificate) ks.getCertificate(keyToSignAlias); in signPublicKeyWithPrivateKey()
854 KeyStore.Entry keyToSignWithEntry = ks.getEntry(keyToSignWithAlias, null); in signPublicKeyWithPrivateKey()
/cts/tests/tests/security/src/android/security/cts/
DX509CertChainBuildingTest.java176 private static X509TrustManager getTrustManager(KeyStore ks, Provider p) throws Exception { in getTrustManager() argument
178 tmf.init(ks); in getTrustManager()
194 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in assertExactPath() local
195 ks.load(null); in assertExactPath()
198 ks.setEntry(String.valueOf(i++), new KeyStore.TrustedCertificateEntry(root), null); in assertExactPath()
205 X509TrustManager tm = getTrustManager(ks, p); in assertExactPath()
DCertBlacklistTest.java104 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManager() local
105 ks.load(null); in getTrustManager()
108 ks.setCertificateEntry(String.valueOf(i++), ca); in getTrustManager()
111 tmf.init(ks); in getTrustManager()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java161 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in bindTLSServer() local
162 ks.load(null); in bindTLSServer()
163 ks.setKeyEntry("name", key, null, chain); in bindTLSServer()
167 tmf.init(ks); in bindTLSServer()
170 kmf.init(ks, null); in bindTLSServer()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java519 final KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in importKey() local
520 ks.load(null); in importKey()
521 ks.setEntry(alias, new KeyStore.SecretKeyEntry(new SecretKeySpec(new byte[32], "AES")), in importKey()
534 final KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in deleteKey() local
535 ks.load(null); in deleteKey()
536 ks.deleteEntry(keyAlias); in deleteKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java245 KeyStore ks = KeyStore.getInstance("PKCS12"); in doInBackground() local
246 ks.load(null, null); in doInBackground()
247 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
248 mKeyStore = ks; in doInBackground()
/cts/tests/tests/media/assets/hls_variant/165340/
D19.ts107 ��߉��S�y��1ks�D"{���h��h��.i��O�����NV���{��DWƨ����_�{�}�?iO�|TH���� ���:q�����
/cts/tests/tests/media/assets/hls_variant/344388/
D12.ts37 …�¾�UFd����H>�n��}7�a���� 0=���s.���i�TʬL6]3Rhz�Y��<�ଆ2�3�aݨ2�ˉ��;4S!��ks�e�K�i~*b&��t��~]…
D22.ts345 …GA����-��!a:���� ���A����8E�׼ȝ�u �\�}}�N���A ����h��5�ٌ��%u�|ks��_�x B�Y\��>y"��%Kޒ…
D08.ts1313ks�;�$�Dm����G����H/�7��7��q��������v��ٙ�؇{�950#�`�U�G�2�����������������������������…
D09.ts978 …��-��!`���� ���A��JDOe�e�4��2,tP45�7:�m�/��M�\�t������}�"%��ks�nw��.N��3�� v�X…
D06.ts679 �V�oQ�x�8��$�$ufD�^�f���/ܡ/rG���D��_�=�������3Ra(ጅ��f�3@�ks�1{��q��6�h
D05.ts1059ks��ƅB�V�=�k���F�������Jx7G���Ԥ��w�-$����7�{���0M�+����$$��^jr(�7����>q;I�z'�YP����…
/cts/tests/tests/media/assets/hls_variant/765178/
D02.ts300 c:���JG�)vq�ks�~l�v��{���:�q��jH�]���h�����uK�ܱpm��R��
1526 �{Ǹf���%⬹�$���G����ks�|axy�$�J�6�PkZ䙸��l�I\��~{%�w�`�Ђ�k�?`�2+�E�0ĕ�M+��L2@G���@�9��CD�…
D20.ts2101 …y�/L�k�� =��"*!]Ҧ��\Jy��)G��T �g��]�.+��d����jn[{�+�����t�<`����r$���g� ks���DR^�
2525 �Q�4ٖ�C��N���E��n�ks;%
2857 _�F=�`��=��ks��~��1����B`
D19.ts227 …�L���eP0����6"���6m�gzF�&��+�''�#�)a�v9 .P��S��o���i)[�G������ 6ñn�*q��C$L�I ks���X� �
2602 …G��q�k\���%����LIR=<�@��Cc-���0�S7�� Z%�&�-�I�o��o��T�9�m�Cd$�U�[,ksDss�D�B��-�e^7}@1�…
D05.ts290 �E��4|0����CqlĮTz����� u~.�`w��K�-�ן�5ʋ'ks��k4ŷ��삐���7,E�i�+G�8]��������������������������…
3095 �껜G7\G� 7�\p��*M.���x��W.��F�<`��N�e�GΨ��u�Q�܄yn�ɖt�"�#[� ��;�8�D��G�|ks����̉}��0y�
/cts/tests/tests/media/assets/unmuxed_1500k/
D00.ts77 i�Ң��ks����kZ�5 �=����ό�H"փcP�OiWH>1
/cts/tests/tests/media/assets/hls_variant/387360/
D11.ts112 …������pa U�#���]���.��CΝ�wt^-Ȫ.[��Ld9�dp��]�C�׶�w�O �3��7�C+�� @�CE�ks�s �ؽ���x� `7��*g(b…
/cts/tests/tests/media/assets/hls_variant/1676816/
D11.ts713 …!�+)�I��MJ�������C��*����GU������[��BG9���*��oX�N�U}��:�О���3v���O�aE��������C�k ks�9��ׄ
1172 …,�D����Q�뀹5`����㶔���_XD��o�M|2G�(�h�#]� ��UZo�x�� jS��n��t���O2�ks!dm��:~L�����٤Bf���…
1338 *^���#�@�?�ks��NL��Z��q��vrp○������ҽaa��EG��Vb��(����(�Mb�� �Q�ʶI)~�f��\����<O`�4fn=���}�'…
1685 …�}��L#�؆$�愽d��z�A2�z�~��+8K�Ag���.THL��D�#���E���^=�� 7g �do��4���jǶ�\��A��� �� Q��ks��͍��

123