Home
last modified time | relevance | path

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

12

/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/hostsidetests/security/securityPatch/CVE-2017-13253/
Dpoc.cpp41 sp<ICrypto> crypto = service->makeCrypto(); in main() local
42 if (crypto == NULL) { in main()
51 if (crypto->createPlugin(clearkey_uuid, NULL, 0) != OK) { in main()
60 int heapSeqNum = crypto->setHeap(heap); in main()
75 int val = crypto->decrypt(NULL, NULL, in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.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.java54 import javax.crypto.BadPaddingException;
55 import javax.crypto.Cipher;
56 import javax.crypto.IllegalBlockSizeException;
57 import javax.crypto.KeyGenerator;
58 import javax.crypto.NoSuchPaddingException;
59 import javax.crypto.SecretKey;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java40 import javax.crypto.BadPaddingException;
41 import javax.crypto.Cipher;
42 import javax.crypto.IllegalBlockSizeException;
43 import javax.crypto.KeyGenerator;
44 import javax.crypto.NoSuchPaddingException;
45 import javax.crypto.SecretKey;
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESGCMCipherTestBase.java25 import javax.crypto.AEADBadTagException;
26 import javax.crypto.Cipher;
27 import javax.crypto.spec.GCMParameterSpec;
DTransparentSecretKey.java19 import javax.crypto.SecretKey;
DAESCBCCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DAESCTRCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DImportWrappedKeyTest.java60 import javax.crypto.Cipher;
61 import javax.crypto.spec.GCMParameterSpec;
62 import javax.crypto.spec.IvParameterSpec;
63 import javax.crypto.spec.OAEPParameterSpec;
64 import javax.crypto.spec.PSource;
65 import javax.crypto.spec.SecretKeySpec;
DDESedeCBCPKCS7PaddingCipherTest.java7 import javax.crypto.spec.IvParameterSpec;
DDESedeCBCNoPaddingCipherTest.java7 import javax.crypto.spec.IvParameterSpec;
DSecretKeyFactoryTest.java41 import javax.crypto.KeyGenerator;
42 import javax.crypto.SecretKey;
43 import javax.crypto.SecretKeyFactory;
44 import javax.crypto.spec.SecretKeySpec;
DAESCipherNistCavpKatTest.java34 import javax.crypto.Cipher;
35 import javax.crypto.SecretKey;
36 import javax.crypto.spec.IvParameterSpec;
37 import javax.crypto.spec.SecretKeySpec;
DRSACipherTest.java26 import javax.crypto.BadPaddingException;
27 import javax.crypto.Cipher;
28 import javax.crypto.IllegalBlockSizeException;
DImportedKey.java22 import javax.crypto.SecretKey;
DCipherTest.java53 import javax.crypto.BadPaddingException;
54 import javax.crypto.Cipher;
55 import javax.crypto.IllegalBlockSizeException;
56 import javax.crypto.KeyGenerator;
57 import javax.crypto.SecretKey;
58 import javax.crypto.spec.GCMParameterSpec;
59 import javax.crypto.spec.IvParameterSpec;
60 import javax.crypto.spec.OAEPParameterSpec;
61 import javax.crypto.spec.PSource;
62 import javax.crypto.spec.SecretKeySpec;
DBlockCipherTestBase.java43 import javax.crypto.BadPaddingException;
44 import javax.crypto.Cipher;
45 import javax.crypto.IllegalBlockSizeException;
46 import javax.crypto.NoSuchPaddingException;
47 import javax.crypto.SecretKey;
48 import javax.crypto.ShortBufferException;
49 import javax.crypto.spec.IvParameterSpec;
50 import javax.crypto.spec.SecretKeySpec;
DMacTest.java37 import javax.crypto.Mac;
38 import javax.crypto.SecretKey;
39 import javax.crypto.spec.SecretKeySpec;
DKeyGeneratorTest.java45 import javax.crypto.KeyGenerator;
46 import javax.crypto.SecretKey;
DKeyFactoryTest.java57 import javax.crypto.SecretKey;
58 import javax.crypto.spec.SecretKeySpec;
DTestUtils.java65 import javax.crypto.SecretKey;
66 import javax.crypto.SecretKeyFactory;
67 import javax.crypto.spec.SecretKeySpec;
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp273 const char* mime, const AMediaCrypto* crypto, in addTrack() argument
284 const_cast<AMediaCrypto*>(crypto), 0); in addTrack()
288 const AMediaCrypto* crypto, const ANativeWindow* window, in addTracks() argument
314 addTrack(trackFormat, mime, crypto, window, codec); in addTracks()
412 AMediaCrypto* crypto = NULL; in playContent() local
414 crypto = AMediaCrypto_new(&uuid[0], sessionId.ptr, sessionId.length); in playContent()
415 if (crypto == NULL) { in playContent()
423 addTracks(videoExtractor, crypto, window, &videoCodec); in playContent()
469 AMediaCrypto_delete(crypto); in playContent()
Dnative-media-jni.cpp865 AMediaCrypto *crypto = AMediaCrypto_new(entry->uuid, entry->data, entry->datalen); in Java_android_media_cts_NativeDecoderTest_testPsshNative() local
866 if (crypto) { in Java_android_media_cts_NativeDecoderTest_testPsshNative()
868 AMediaCrypto_delete(crypto); in Java_android_media_cts_NativeDecoderTest_testPsshNative()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTest.java1769 MediaCrypto crypto = new MediaCrypto(CLEARKEY_SCHEME_UUID, new byte[0]); in testCryptoError() local
1773 crypto.setMediaDrmSession(sessionId); in testCryptoError()
1778 codec.configure(format, null, crypto, 0); in testCryptoError()
1802 crypto.release(); in testCryptoError()

12