Home
last modified time | relevance | path

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

12345

/frameworks/av/media/ndk/
DNdkMediaCrypto.cpp47 sp<ICrypto> crypto = service->makeCrypto(); in makeCrypto() local
48 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { in makeCrypto()
51 return crypto; in makeCrypto()
64 sp<ICrypto> crypto = makeCrypto(); in AMediaCrypto_isCryptoSchemeSupported() local
65 if (crypto == NULL) { in AMediaCrypto_isCryptoSchemeSupported()
68 return crypto->isCryptoSchemeSupported(uuid); in AMediaCrypto_isCryptoSchemeSupported()
73 sp<ICrypto> crypto = makeCrypto(); in AMediaCrypto_requiresSecureDecoderComponent() local
74 if (crypto == NULL) { in AMediaCrypto_requiresSecureDecoderComponent()
77 return crypto->requiresSecureDecoderComponent(mime); in AMediaCrypto_requiresSecureDecoderComponent()
92 AMediaCrypto *crypto = new AMediaCrypto(); in AMediaCrypto_new() local
[all …]
DNdkMediaCodec.cpp411 AMediaCrypto *crypto, in AMediaCodec_configure() argument
422 crypto ? crypto->mCrypto : NULL, flags); in AMediaCodec_configure()
759 AMediaCodecCryptoInfo* crypto, in AMediaCodec_queueSecureInputBuffer() argument
763 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; in AMediaCodec_queueSecureInputBuffer()
764 for (int i = 0; i < crypto->numsubsamples; i++) { in AMediaCodec_queueSecureInputBuffer()
765 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i]; in AMediaCodec_queueSecureInputBuffer()
766 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i]; in AMediaCodec_queueSecureInputBuffer()
770 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; in AMediaCodec_queueSecureInputBuffer()
771 pattern.mSkipBlocks = crypto->pattern.skipBlocks; in AMediaCodec_queueSecureInputBuffer()
777 crypto->numsubsamples, in AMediaCodec_queueSecureInputBuffer()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaCrypto.cpp75 sp<ICrypto> crypto = service->makeCrypto(); in MakeCrypto() local
76 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { in MakeCrypto()
80 return crypto; in MakeCrypto()
86 sp<ICrypto> crypto = MakeCrypto(); in MakeCrypto() local
88 if (crypto == NULL) { in MakeCrypto()
92 status_t err = crypto->createPlugin(uuid, initData, initSize); in MakeCrypto()
98 return crypto; in MakeCrypto()
111 sp<ICrypto> crypto = MakeCrypto(); in IsCryptoSchemeSupported() local
113 if (crypto == NULL) { in IsCryptoSchemeSupported()
117 return crypto->isCryptoSchemeSupported(uuid); in IsCryptoSchemeSupported()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DChunkEncryptor.java24 import javax.crypto.BadPaddingException;
25 import javax.crypto.Cipher;
26 import javax.crypto.IllegalBlockSizeException;
27 import javax.crypto.NoSuchPaddingException;
28 import javax.crypto.SecretKey;
29 import javax.crypto.spec.GCMParameterSpec;
DChunkHasher.java22 import javax.crypto.Mac;
23 import javax.crypto.SecretKey;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java37 import javax.crypto.BadPaddingException;
38 import javax.crypto.Cipher;
39 import javax.crypto.IllegalBlockSizeException;
40 import javax.crypto.KeyGenerator;
41 import javax.crypto.NoSuchPaddingException;
42 import javax.crypto.SecretKey;
43 import javax.crypto.spec.GCMParameterSpec;
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricPrompt.java44 import javax.crypto.Cipher;
45 import javax.crypto.Mac;
453 public AuthenticationResult(CryptoObject crypto) { in AuthenticationResult() argument
455 super(crypto, null /* identifier */, 0 /* userId */); in AuthenticationResult()
570 public void authenticate(@NonNull CryptoObject crypto, in authenticate() argument
574 if (crypto == null) { in authenticate()
589 authenticateInternal(crypto, cancel, executor, callback, mContext.getUserId(), in authenticate()
646 private void authenticateInternal(@Nullable CryptoObject crypto, in authenticateInternal() argument
660 mCryptoObject = crypto; in authenticateInternal()
663 final long sessionId = crypto != null ? crypto.getOpId() : 0; in authenticateInternal()
DBiometricAuthenticator.java129 public AuthenticationResult(CryptoObject crypto, Identifier identifier, in AuthenticationResult() argument
131 mCryptoObject = crypto; in AuthenticationResult()
249 default void authenticate(@NonNull CryptoObject crypto, in authenticate() argument
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java36 import javax.crypto.BadPaddingException;
37 import javax.crypto.Cipher;
38 import javax.crypto.IllegalBlockSizeException;
39 import javax.crypto.KeyGenerator;
40 import javax.crypto.NoSuchPaddingException;
41 import javax.crypto.SecretKey;
42 import javax.crypto.spec.GCMParameterSpec;
43 import javax.crypto.spec.SecretKeySpec;
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp72 sp<ICrypto> crypto = service->makeCrypto(); in createCrypto() local
73 if (crypto == NULL) { in createCrypto()
80 status = crypto->initCheck(); in createCrypto()
86 return crypto; in createCrypto()
194 sp<ICrypto> crypto = createCrypto(&status); in createCryptoAndPlugin() local
195 if (crypto == NULL) { in createCryptoAndPlugin()
201 status = crypto->createPlugin(uuid, drmSessionId.array(), drmSessionId.size()); in createCryptoAndPlugin()
208 return crypto; in createCryptoAndPlugin()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DWrappedKey.java32 import javax.crypto.Cipher;
33 import javax.crypto.IllegalBlockSizeException;
34 import javax.crypto.NoSuchPaddingException;
35 import javax.crypto.SecretKey;
36 import javax.crypto.spec.GCMParameterSpec;
DSecureBox.java43 import javax.crypto.AEADBadTagException;
44 import javax.crypto.BadPaddingException;
45 import javax.crypto.Cipher;
46 import javax.crypto.IllegalBlockSizeException;
47 import javax.crypto.KeyAgreement;
48 import javax.crypto.Mac;
49 import javax.crypto.NoSuchPaddingException;
50 import javax.crypto.SecretKey;
51 import javax.crypto.spec.GCMParameterSpec;
52 import javax.crypto.spec.SecretKeySpec;
DRecoverableKeyGenerator.java30 import javax.crypto.KeyGenerator;
31 import javax.crypto.SecretKey;
32 import javax.crypto.spec.SecretKeySpec;
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java14 import javax.crypto.Cipher;
15 import javax.crypto.KeyGenerator;
16 import javax.crypto.Mac;
17 import javax.crypto.SecretKey;
18 import javax.crypto.spec.IvParameterSpec;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DChunkHasherTest.java30 import javax.crypto.Mac;
31 import javax.crypto.SecretKey;
32 import javax.crypto.spec.SecretKeySpec;
DChunkEncryptorTest.java43 import javax.crypto.Cipher;
44 import javax.crypto.Mac;
45 import javax.crypto.SecretKey;
46 import javax.crypto.spec.GCMParameterSpec;
/frameworks/av/media/libstagefright/
DCodecBase.cpp27 void BufferChannelBase::setCrypto(const sp<ICrypto> &crypto) { in setCrypto() argument
28 mCrypto = crypto; in setCrypto()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java54 import javax.crypto.Cipher;
55 import javax.crypto.Mac;
100 public OnAuthenticationCancelListener(android.hardware.biometrics.CryptoObject crypto) { in OnAuthenticationCancelListener() argument
101 mCrypto = crypto; in OnAuthenticationCancelListener()
181 public AuthenticationResult(CryptoObject crypto, Fingerprint fingerprint, int userId) { in AuthenticationResult() argument
182 mCryptoObject = crypto; in AuthenticationResult()
385 public void authenticate(@Nullable CryptoObject crypto, @Nullable CancellationSignal cancel, in authenticate() argument
387 authenticate(crypto, cancel, flags, callback, handler, mContext.getUserId()); in authenticate()
410 public void authenticate(@Nullable CryptoObject crypto, @Nullable CancellationSignal cancel, in authenticate() argument
421 cancel.setOnCancelListener(new OnAuthenticationCancelListener(crypto)); in authenticate()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformAdbRestoreTask.java58 import javax.crypto.BadPaddingException;
59 import javax.crypto.Cipher;
60 import javax.crypto.CipherInputStream;
61 import javax.crypto.IllegalBlockSizeException;
62 import javax.crypto.NoSuchPaddingException;
63 import javax.crypto.SecretKey;
64 import javax.crypto.spec.IvParameterSpec;
65 import javax.crypto.spec.SecretKeySpec;
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java28 import javax.crypto.Mac;
29 import javax.crypto.SecretKey;
30 import javax.crypto.spec.SecretKeySpec;
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/
DTertiaryKeyGenerator.java22 import javax.crypto.KeyGenerator;
23 import javax.crypto.SecretKey;
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java30 import javax.crypto.SecretKey;
31 import javax.crypto.SecretKeyFactory;
32 import javax.crypto.spec.PBEKeySpec;
/frameworks/base/identity/java/android/security/identity/
DCredstoreIdentityCredential.java44 import javax.crypto.BadPaddingException;
45 import javax.crypto.Cipher;
46 import javax.crypto.IllegalBlockSizeException;
47 import javax.crypto.KeyAgreement;
48 import javax.crypto.NoSuchPaddingException;
49 import javax.crypto.SecretKey;
50 import javax.crypto.spec.GCMParameterSpec;
51 import javax.crypto.spec.SecretKeySpec;
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DCryptoTestUtils.java22 import javax.crypto.KeyGenerator;
23 import javax.crypto.SecretKey;
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java50 import javax.crypto.AEADBadTagException;
51 import javax.crypto.BadPaddingException;
52 import javax.crypto.Cipher;
53 import javax.crypto.CipherSpi;
54 import javax.crypto.IllegalBlockSizeException;
55 import javax.crypto.NoSuchPaddingException;
56 import javax.crypto.SecretKey;
57 import javax.crypto.SecretKeyFactory;
58 import javax.crypto.ShortBufferException;
59 import javax.crypto.spec.SecretKeySpec;

12345