Home
last modified time | relevance | path

Searched refs:crypto (Results 1 – 25 of 45) 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/securitybulletin/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/tests/tests/identity/src/android/security/identity/cts/
DEphemeralKeyTest.java48 import javax.crypto.BadPaddingException;
49 import javax.crypto.Cipher;
50 import javax.crypto.IllegalBlockSizeException;
51 import javax.crypto.KeyAgreement;
52 import javax.crypto.NoSuchPaddingException;
53 import javax.crypto.SecretKey;
54 import javax.crypto.spec.GCMParameterSpec;
55 import javax.crypto.spec.SecretKeySpec;
DUserAuthTest.java82 import javax.crypto.BadPaddingException;
83 import javax.crypto.Cipher;
84 import javax.crypto.IllegalBlockSizeException;
85 import javax.crypto.KeyGenerator;
86 import javax.crypto.NoSuchPaddingException;
87 import javax.crypto.SecretKey;
88 import javax.crypto.spec.GCMParameterSpec;
/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.java53 import javax.crypto.BadPaddingException;
54 import javax.crypto.Cipher;
55 import javax.crypto.IllegalBlockSizeException;
56 import javax.crypto.KeyGenerator;
57 import javax.crypto.NoSuchPaddingException;
58 import javax.crypto.SecretKey;
DIdentityCredentialAuthentication.java77 import javax.crypto.BadPaddingException;
78 import javax.crypto.Cipher;
79 import javax.crypto.IllegalBlockSizeException;
80 import javax.crypto.KeyGenerator;
81 import javax.crypto.NoSuchPaddingException;
82 import javax.crypto.SecretKey;
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/
DAuthBoundKeyAppTest.java38 import javax.crypto.Cipher;
39 import javax.crypto.KeyGenerator;
40 import javax.crypto.SecretKey;
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0811/
Dpoc.cpp57 sp<ICrypto> crypto = in main() local
69 st = crypto->createPlugin(kClearKeyUUID, sess.array(), sess.size()); in main()
70 BpInterface<ICrypto> *sit = static_cast<BpInterface<ICrypto> *>(crypto.get()); in main()
/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/
DImportWrappedKeyTest.java61 import javax.crypto.Cipher;
62 import javax.crypto.KeyGenerator;
63 import javax.crypto.spec.GCMParameterSpec;
64 import javax.crypto.spec.IvParameterSpec;
65 import javax.crypto.spec.OAEPParameterSpec;
66 import javax.crypto.spec.PSource;
67 import javax.crypto.spec.SecretKeySpec;
DAESGCMCipherTestBase.java25 import javax.crypto.AEADBadTagException;
26 import javax.crypto.Cipher;
27 import javax.crypto.spec.GCMParameterSpec;
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;
DHmacMacPerformanceTest.java23 import javax.crypto.Mac;
24 import javax.crypto.SecretKey;
DDesCipherPerformanceTest.java25 import javax.crypto.Cipher;
26 import javax.crypto.SecretKey;
DAesCipherPerformanceTest.java25 import javax.crypto.Cipher;
26 import javax.crypto.SecretKey;
DRSACipherTest.java26 import javax.crypto.BadPaddingException;
27 import javax.crypto.Cipher;
28 import javax.crypto.IllegalBlockSizeException;
DTransparentSecretKey.java19 import javax.crypto.SecretKey;
DAESCTRCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DAESCBCCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DDESedeCBCPKCS7PaddingCipherTest.java7 import javax.crypto.spec.IvParameterSpec;
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp326 const char* mime, const AMediaCrypto* crypto, in addTrack() argument
337 const_cast<AMediaCrypto*>(crypto), 0); in addTrack()
341 const AMediaCrypto* crypto, const ANativeWindow* window, in addTracks() argument
367 addTrack(trackFormat, mime, crypto, window, codec); in addTracks()
465 AMediaCrypto* crypto = NULL; in playContent() local
467 crypto = AMediaCrypto_new(&uuid[0], sessionId.ptr, sessionId.length); in playContent()
468 if (crypto == NULL) { in playContent()
476 addTracks(videoExtractor, crypto, window, &videoCodec); in playContent()
522 AMediaCrypto_delete(crypto); in playContent()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DPacketUtils.java31 import javax.crypto.Cipher;
32 import javax.crypto.Mac;
33 import javax.crypto.spec.IvParameterSpec;
34 import javax.crypto.spec.SecretKeySpec;
/cts/tests/tests/net/src/android/net/cts/
DPacketUtils.java31 import javax.crypto.Cipher;
32 import javax.crypto.Mac;
33 import javax.crypto.spec.IvParameterSpec;
34 import javax.crypto.spec.SecretKeySpec;

12