/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/hostsidetests/security/securityPatch/CVE-2017-13253/ |
D | poc.cpp | 41 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/ |
D | ScreenLockBoundKeysTest.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 | 54 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/ |
D | AuthenticationBoundKeyTestActivity.java | 40 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/ |
D | AESGCMCipherTestBase.java | 25 import javax.crypto.AEADBadTagException; 26 import javax.crypto.Cipher; 27 import javax.crypto.spec.GCMParameterSpec;
|
D | TransparentSecretKey.java | 19 import javax.crypto.SecretKey;
|
D | AESCBCCipherTestBase.java | 23 import javax.crypto.spec.IvParameterSpec;
|
D | AESCTRCipherTestBase.java | 23 import javax.crypto.spec.IvParameterSpec;
|
D | ImportWrappedKeyTest.java | 60 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;
|
D | DESedeCBCPKCS7PaddingCipherTest.java | 7 import javax.crypto.spec.IvParameterSpec;
|
D | DESedeCBCNoPaddingCipherTest.java | 7 import javax.crypto.spec.IvParameterSpec;
|
D | SecretKeyFactoryTest.java | 41 import javax.crypto.KeyGenerator; 42 import javax.crypto.SecretKey; 43 import javax.crypto.SecretKeyFactory; 44 import javax.crypto.spec.SecretKeySpec;
|
D | AESCipherNistCavpKatTest.java | 34 import javax.crypto.Cipher; 35 import javax.crypto.SecretKey; 36 import javax.crypto.spec.IvParameterSpec; 37 import javax.crypto.spec.SecretKeySpec;
|
D | RSACipherTest.java | 26 import javax.crypto.BadPaddingException; 27 import javax.crypto.Cipher; 28 import javax.crypto.IllegalBlockSizeException;
|
D | ImportedKey.java | 22 import javax.crypto.SecretKey;
|
D | CipherTest.java | 53 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;
|
D | BlockCipherTestBase.java | 43 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;
|
D | MacTest.java | 37 import javax.crypto.Mac; 38 import javax.crypto.SecretKey; 39 import javax.crypto.spec.SecretKeySpec;
|
D | KeyGeneratorTest.java | 45 import javax.crypto.KeyGenerator; 46 import javax.crypto.SecretKey;
|
D | KeyFactoryTest.java | 57 import javax.crypto.SecretKey; 58 import javax.crypto.spec.SecretKeySpec;
|
D | TestUtils.java | 65 import javax.crypto.SecretKey; 66 import javax.crypto.SecretKeyFactory; 67 import javax.crypto.spec.SecretKeySpec;
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 273 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()
|
D | native-media-jni.cpp | 865 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/ |
D | MediaCodecTest.java | 1769 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()
|