/cts/tools/utils/ |
D | certificates.py | 18 from OpenSSL import crypto 29 return crypto.dump_certificate(crypto.FILETYPE_PEM, self.cert) 32 return crypto.dump_privatekey(crypto.FILETYPE_PEM, self.key) 47 cert = crypto.load_certificate(crypto.FILETYPE_PEM, data) 48 key = crypto.load_privatekey(crypto.FILETYPE_PEM, data) 56 key = crypto.PKey() 57 key.generate_key(crypto.TYPE_RSA, keysize) 59 cert = crypto.X509() 69 basicContraints = crypto.X509Extension("basicConstraints", True, "CA:TRUE")
|
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/ |
D | MediaDrmCodecCryptoAsyncTest.java | 159 MediaCrypto crypto = null; in getCrypto() local 161 crypto = new MediaCrypto(mUUID, mSessionId); in getCrypto() 163 return crypto; in getCrypto() 187 MediaCrypto crypto = drmSession.getCrypto(); in runClearKeyVideoWithNoonCryptoError() local 191 crypto); in runClearKeyVideoWithNoonCryptoError() 204 MediaCrypto crypto = drmSession.getCrypto(); in runClearKeyVideoUsingCodec() local 208 crypto); in runClearKeyVideoUsingCodec() 221 MediaCrypto crypto = drmSession.getCrypto(); in runClearKeyVideoUsingBlockModel() local 227 crypto, in runClearKeyVideoUsingBlockModel()
|
D | MediaDrmCodecTest.java | 106 MediaCrypto crypto = new MediaCrypto(CLEARKEY_SCHEME_UUID, new byte[0]); in testCryptoError() local 110 crypto.setMediaDrmSession(sessionId); in testCryptoError() 115 codec.configure(format, null, crypto, 0); in testCryptoError() 139 crypto.release(); in testCryptoError() 158 MediaCrypto crypto = new MediaCrypto(CLEARKEY_SCHEME_UUID, new byte[0]); in testCryptoErrorLostSessionState() local 162 crypto.setMediaDrmSession(sessionId); in testCryptoErrorLostSessionState() 167 codec.configure(format, null, crypto, 0); in testCryptoErrorLostSessionState() 194 crypto.release(); in testCryptoErrorLostSessionState()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaCodecCryptoAsyncHelper.java | 185 MediaCrypto crypto) throws Exception { in runShortClearKeyVideoWithNoCryptoErrorOverride() argument 238 crypto, in runShortClearKeyVideoWithNoCryptoErrorOverride() 246 .setContentEncrypted(crypto != null) in runShortClearKeyVideoWithNoCryptoErrorOverride() 272 if (crypto != null) { in runShortClearKeyVideoWithNoCryptoErrorOverride() 273 crypto.release(); in runShortClearKeyVideoWithNoCryptoErrorOverride() 305 MediaCrypto crypto) throws Exception { in runDecodeShortClearKeyVideo() argument 356 crypto, in runDecodeShortClearKeyVideo() 364 .setContentEncrypted(crypto != null) in runDecodeShortClearKeyVideo() 393 if (crypto != null) { in runDecodeShortClearKeyVideo() 394 crypto.release(); in runDecodeShortClearKeyVideo() [all …]
|
D | MediaCodecBlockModelHelper.java | 354 MediaCrypto crypto = null; in runDecodeShortVideo() local 378 crypto = new MediaCrypto(CLEARKEY_SCHEME_UUID, new byte[0] /* initData */); in runDecodeShortVideo() 379 crypto.setMediaDrmSession(sessionId); in runDecodeShortVideo() 384 crypto, in runDecodeShortVideo() 417 if (crypto != null) { in runDecodeShortVideo() 418 crypto.release(); in runDecodeShortVideo() 425 MediaCrypto crypto, in runComponentWithLinearInput() argument 458 if (crypto != null) { in runComponentWithLinearInput() 472 mediaCodec.configure(mediaFormat, surface, crypto, flags); in runComponentWithLinearInput()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | EphemeralKeyTest.java | 49 import javax.crypto.BadPaddingException; 50 import javax.crypto.Cipher; 51 import javax.crypto.IllegalBlockSizeException; 52 import javax.crypto.KeyAgreement; 53 import javax.crypto.NoSuchPaddingException; 54 import javax.crypto.SecretKey; 55 import javax.crypto.spec.GCMParameterSpec; 56 import javax.crypto.spec.SecretKeySpec;
|
D | TestUtil.java | 65 import javax.crypto.KeyAgreement; 66 import javax.crypto.Mac; 67 import javax.crypto.SecretKey; 68 import javax.crypto.spec.SecretKeySpec;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | LskfBoundKeysTest.java | 46 import javax.crypto.BadPaddingException; 47 import javax.crypto.Cipher; 48 import javax.crypto.IllegalBlockSizeException; 49 import javax.crypto.KeyGenerator; 50 import javax.crypto.NoSuchPaddingException; 51 import javax.crypto.SecretKey;
|
D | FingerprintBoundKeysTest.java | 55 import javax.crypto.BadPaddingException; 56 import javax.crypto.Cipher; 57 import javax.crypto.IllegalBlockSizeException; 58 import javax.crypto.KeyGenerator; 59 import javax.crypto.NoSuchPaddingException; 60 import javax.crypto.SecretKey;
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2182/ |
D | poc.cpp | 51 namespace crypto { namespace 83 static int DecimalToBIGNUM(crypto::ScopedBIGNUM *out, const char *in) { in DecimalToBIGNUM() 113 using namespace crypto;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | Utils.java | 30 import javax.crypto.Cipher; 31 import javax.crypto.KeyAgreement; 32 import javax.crypto.KeyGenerator; 33 import javax.crypto.Mac; 34 import javax.crypto.SecretKey;
|
D | AbstractUserAuthenticationMacTest.java | 23 import javax.crypto.KeyGenerator; 24 import javax.crypto.Mac;
|
D | AbstractUserAuthenticationAeadCipherTest.java | 23 import javax.crypto.Cipher; 24 import javax.crypto.KeyGenerator;
|
D | AbstractUserAuthenticationCipherTest.java | 26 import javax.crypto.Cipher; 27 import javax.crypto.KeyGenerator;
|
D | BiometricStrongTests.java | 40 import javax.crypto.Cipher; 41 import javax.crypto.IllegalBlockSizeException; 216 CryptoObject crypto = new CryptoObject(tryUseAfterAuthCipher); in testBiometricBoundEncryption() local 225 prompt.authenticate(crypto, new CancellationSignal(), mExecutor, in testBiometricBoundEncryption()
|
D | AbstractUserAuthenticationTest.java | 313 CryptoObject crypto; in testCredentialBoundEncryption() local 320 crypto = getCryptoObject(); in testCredentialBoundEncryption() 322 crypto = null; in testCredentialBoundEncryption() 351 crypto.getOperationHandle()); in testCredentialBoundEncryption() 387 prompt.authenticate(crypto, new CancellationSignal(), mExecutor, callback); in testCredentialBoundEncryption()
|
/cts/tests/libcore/luni/ |
D | Android.bp | 549 "com.android.org.conscrypt.javax.crypto", 550 "org.apache.harmony.crypto.tests.javax.crypto", 551 "libcore.javax.crypto", 552 "org.apache.harmony.crypto.tests.javax.crypto.serialization", 553 "org.apache.harmony.crypto.tests.javax.crypto.func", 561 include_filters: ["org.apache.harmony.crypto.tests.javax.crypto.interfaces"], 569 "org.apache.harmony.crypto.tests.javax.crypto.spec", 570 "libcore.javax.crypto.spec",
|
/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | HmacMacPerformanceTest.java | 23 import javax.crypto.Mac; 24 import javax.crypto.SecretKey;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 42 import javax.crypto.BadPaddingException; 43 import javax.crypto.Cipher; 44 import javax.crypto.IllegalBlockSizeException; 45 import javax.crypto.KeyGenerator; 46 import javax.crypto.NoSuchPaddingException; 47 import javax.crypto.SecretKey;
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESGCMCipherTestBase.java | 28 import javax.crypto.AEADBadTagException; 29 import javax.crypto.Cipher; 30 import javax.crypto.spec.GCMParameterSpec;
|
D | TransparentSecretKey.java | 19 import javax.crypto.SecretKey;
|
D | AESCipherNistCavpKatTest.java | 40 import javax.crypto.Cipher; 41 import javax.crypto.SecretKey; 42 import javax.crypto.spec.IvParameterSpec; 43 import javax.crypto.spec.SecretKeySpec;
|
D | SecretKeyFactoryTest.java | 47 import javax.crypto.KeyGenerator; 48 import javax.crypto.SecretKey; 49 import javax.crypto.SecretKeyFactory; 50 import javax.crypto.spec.SecretKeySpec;
|
D | AESCTRCipherTestBase.java | 23 import javax.crypto.spec.IvParameterSpec;
|
/cts/tests/tests/media/misc/jni/ |
D | native-media-jni.cpp | 118 AMediaCrypto *crypto = AMediaCrypto_new(entry->uuid, entry->data, entry->datalen); in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative() local 119 if (crypto) { in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative() 121 AMediaCrypto_delete(crypto); in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative()
|