Home
last modified time | relevance | path

Searched refs:crypto (Results 1 – 25 of 26) 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/incident/src/com/android/server/cts/
DFingerprintIncidentTest.java58 final FingerprintActionStatsProto crypto = userStats.getCrypto(); in testNoneRegistered() local
59 assertEquals(0, crypto.getAccept()); in testNoneRegistered()
60 assertEquals(0, crypto.getReject()); in testNoneRegistered()
61 assertEquals(0, crypto.getAcquire()); in testNoneRegistered()
62 assertEquals(0, crypto.getLockout()); in testNoneRegistered()
/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.java39 import javax.crypto.BadPaddingException;
40 import javax.crypto.Cipher;
41 import javax.crypto.IllegalBlockSizeException;
42 import javax.crypto.KeyGenerator;
43 import javax.crypto.NoSuchPaddingException;
44 import javax.crypto.SecretKey;
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp277 const char* mime, const AMediaCrypto* crypto, in addTrack() argument
288 const_cast<AMediaCrypto*>(crypto), 0); in addTrack()
292 const AMediaCrypto* crypto, const ANativeWindow* window, in addTracks() argument
316 addTrack(trackFormat, mime, crypto, window, codec); in addTracks()
413 AMediaCrypto* crypto = NULL; in playContent() local
415 crypto = AMediaCrypto_new(&uuid[0], sessionId.ptr, sessionId.length); in playContent()
416 if (crypto == NULL) { in playContent()
423 addTracks(videoExtractor, crypto, window, &videoCodec); in playContent()
469 AMediaCrypto_delete(crypto); in playContent()
Dnative-media-jni.cpp607 AMediaCrypto *crypto = AMediaCrypto_new(entry->uuid, entry->data, entry->datalen); in Java_android_media_cts_NativeDecoderTest_testPsshNative() local
608 if (crypto) { in Java_android_media_cts_NativeDecoderTest_testPsshNative()
610 AMediaCrypto_delete(crypto); in Java_android_media_cts_NativeDecoderTest_testPsshNative()
/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;
DAESCipherNistCavpKatTest.java34 import javax.crypto.Cipher;
35 import javax.crypto.SecretKey;
36 import javax.crypto.spec.IvParameterSpec;
37 import javax.crypto.spec.SecretKeySpec;
DSecretKeyFactoryTest.java39 import javax.crypto.KeyGenerator;
40 import javax.crypto.SecretKey;
41 import javax.crypto.SecretKeyFactory;
42 import javax.crypto.spec.SecretKeySpec;
DTransparentSecretKey.java19 import javax.crypto.SecretKey;
DAESCTRCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DAESCBCCipherTestBase.java23 import javax.crypto.spec.IvParameterSpec;
DRSACipherTest.java26 import javax.crypto.BadPaddingException;
27 import javax.crypto.Cipher;
28 import javax.crypto.IllegalBlockSizeException;
DImportedKey.java22 import javax.crypto.SecretKey;
DCipherTest.java46 import javax.crypto.BadPaddingException;
47 import javax.crypto.Cipher;
48 import javax.crypto.IllegalBlockSizeException;
49 import javax.crypto.spec.GCMParameterSpec;
50 import javax.crypto.spec.IvParameterSpec;
51 import javax.crypto.spec.OAEPParameterSpec;
52 import javax.crypto.spec.PSource;
53 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;
DKeyFactoryTest.java57 import javax.crypto.SecretKey;
58 import javax.crypto.spec.SecretKeySpec;
DKeyGeneratorTest.java43 import javax.crypto.KeyGenerator;
44 import javax.crypto.SecretKey;
DTestUtils.java62 import javax.crypto.SecretKey;
63 import javax.crypto.SecretKeyFactory;
64 import javax.crypto.spec.SecretKeySpec;
DAndroidKeyStoreTest.java63 import javax.crypto.BadPaddingException;
64 import javax.crypto.Cipher;
65 import javax.crypto.Mac;
66 import javax.crypto.SecretKey;
DKeyAttestationTest.java85 import javax.crypto.KeyGenerator;
/cts/tools/dex-tools/dex/
Dclasses0.out.dex32623 private final javax.crypto.SecretKey secretKey
32627 javax.crypto.SecretKey)
32629 public javax.crypto.SecretKey getSecretKey()
59367 public class javax.crypto.BadPaddingException extends java.security.GeneralSecurityException
59382 public class javax.crypto.Cipher extends java.lang.Object
59410 private javax.crypto.CipherSpi spiImpl
59418 javax.crypto.CipherSpi
59424 @dalvik.annotation.Throws (value =Ljava/security/NoSuchAlgorithmException;Ljavax/crypto/NoSuchPaddi…
59425 private static javax.crypto.Cipher getCipher(
59428 @dalvik.annotation.Throws (value =Ljava/security/NoSuchAlgorithmException;Ljavax/crypto/NoSuchPaddi…
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTest.java1761 MediaCrypto crypto = new MediaCrypto(CLEARKEY_SCHEME_UUID, new byte[0]); in testCryptoError() local
1765 crypto.setMediaDrmSession(sessionId); in testCryptoError()
1770 codec.configure(format, null, crypto, 0); in testCryptoError()
1794 crypto.release(); in testCryptoError()

12