Home
last modified time | relevance | path

Searched refs:crypto (Results 1 – 25 of 63) sorted by relevance

123

/cts/tools/utils/
Dcertificates.py18 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/
DMediaDrmCodecCryptoAsyncTest.java159 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()
DMediaDrmCodecTest.java106 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/
DMediaCodecCryptoAsyncHelper.java185 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 …]
DMediaCodecBlockModelHelper.java354 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/
DEphemeralKeyTest.java49 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;
DTestUtil.java65 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/
DLskfBoundKeysTest.java46 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;
DFingerprintBoundKeysTest.java55 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/
Dpoc.cpp51 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/
DUtils.java30 import javax.crypto.Cipher;
31 import javax.crypto.KeyAgreement;
32 import javax.crypto.KeyGenerator;
33 import javax.crypto.Mac;
34 import javax.crypto.SecretKey;
DAbstractUserAuthenticationMacTest.java23 import javax.crypto.KeyGenerator;
24 import javax.crypto.Mac;
DAbstractUserAuthenticationAeadCipherTest.java23 import javax.crypto.Cipher;
24 import javax.crypto.KeyGenerator;
DAbstractUserAuthenticationCipherTest.java26 import javax.crypto.Cipher;
27 import javax.crypto.KeyGenerator;
DBiometricStrongTests.java40 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()
DAbstractUserAuthenticationTest.java313 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/
DAndroid.bp549 "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/
DHmacMacPerformanceTest.java23 import javax.crypto.Mac;
24 import javax.crypto.SecretKey;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java42 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/
DAESGCMCipherTestBase.java28 import javax.crypto.AEADBadTagException;
29 import javax.crypto.Cipher;
30 import javax.crypto.spec.GCMParameterSpec;
DTransparentSecretKey.java19 import javax.crypto.SecretKey;
DAESCipherNistCavpKatTest.java40 import javax.crypto.Cipher;
41 import javax.crypto.SecretKey;
42 import javax.crypto.spec.IvParameterSpec;
43 import javax.crypto.spec.SecretKeySpec;
DSecretKeyFactoryTest.java47 import javax.crypto.KeyGenerator;
48 import javax.crypto.SecretKey;
49 import javax.crypto.SecretKeyFactory;
50 import javax.crypto.spec.SecretKeySpec;
DAESCTRCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
/cts/tests/tests/media/misc/jni/
Dnative-media-jni.cpp118 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()

123