Home
last modified time | relevance | path

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

12345

/frameworks/av/media/ndk/
DNdkMediaCrypto.cpp48 sp<ICrypto> crypto = service->makeCrypto(); in makeCrypto() local
49 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { in makeCrypto()
52 return crypto; in makeCrypto()
65 sp<ICrypto> crypto = makeCrypto(); in AMediaCrypto_isCryptoSchemeSupported() local
66 if (crypto == NULL) { in AMediaCrypto_isCryptoSchemeSupported()
69 return crypto->isCryptoSchemeSupported(uuid); in AMediaCrypto_isCryptoSchemeSupported()
74 sp<ICrypto> crypto = makeCrypto(); in AMediaCrypto_requiresSecureDecoderComponent() local
75 if (crypto == NULL) { in AMediaCrypto_requiresSecureDecoderComponent()
78 return crypto->requiresSecureDecoderComponent(mime); in AMediaCrypto_requiresSecureDecoderComponent()
93 AMediaCrypto *crypto = new AMediaCrypto(); in AMediaCrypto_new() local
[all …]
DNdkMediaCodec.cpp405 AMediaCrypto *crypto, in AMediaCodec_configure() argument
416 crypto ? crypto->mCrypto : NULL, flags); in AMediaCodec_configure()
753 AMediaCodecCryptoInfo* crypto, in AMediaCodec_queueSecureInputBuffer() argument
757 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; in AMediaCodec_queueSecureInputBuffer()
758 for (int i = 0; i < crypto->numsubsamples; i++) { in AMediaCodec_queueSecureInputBuffer()
759 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i]; in AMediaCodec_queueSecureInputBuffer()
760 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i]; in AMediaCodec_queueSecureInputBuffer()
764 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; in AMediaCodec_queueSecureInputBuffer()
765 pattern.mSkipBlocks = crypto->pattern.skipBlocks; in AMediaCodec_queueSecureInputBuffer()
771 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/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()
172 public AuthenticationResult(CryptoObject crypto, Fingerprint fingerprint, int userId) { in AuthenticationResult() argument
173 mCryptoObject = crypto; in AuthenticationResult()
387 public void authenticate(@Nullable CryptoObject crypto, @Nullable CancellationSignal cancel, in authenticate() argument
389 authenticate(crypto, cancel, flags, callback, handler, mContext.getUserId()); in authenticate()
411 public void authenticate(@Nullable CryptoObject crypto, @Nullable CancellationSignal cancel, in authenticate() argument
422 cancel.setOnCancelListener(new OnAuthenticationCancelListener(crypto)); in authenticate()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java35 import javax.crypto.BadPaddingException;
36 import javax.crypto.Cipher;
37 import javax.crypto.IllegalBlockSizeException;
38 import javax.crypto.KeyGenerator;
39 import javax.crypto.NoSuchPaddingException;
40 import javax.crypto.SecretKey;
41 import javax.crypto.spec.GCMParameterSpec;
42 import javax.crypto.spec.SecretKeySpec;
/frameworks/base/core/java/android/hardware/biometrics/
DBiometricPrompt.java35 import javax.crypto.Cipher;
36 import javax.crypto.Mac;
296 public AuthenticationResult(CryptoObject crypto, BiometricIdentifier identifier, in AuthenticationResult() argument
298 super(crypto, identifier, userId); in AuthenticationResult()
377 public void authenticate(@NonNull android.hardware.biometrics.CryptoObject crypto, in authenticate() argument
384 authenticate(crypto, cancel, executor, (AuthenticationCallback) callback); in authenticate()
428 public void authenticate(@NonNull CryptoObject crypto, in authenticate() argument
435 mFingerprintManager.authenticate(crypto, cancel, mBundle, executor, mDialogReceiver, in authenticate()
DBiometricAuthenticator.java61 public AuthenticationResult(CryptoObject crypto, BiometricIdentifier identifier, in AuthenticationResult() argument
63 mCryptoObject = crypto; in AuthenticationResult()
158 void authenticate(@NonNull CryptoObject crypto, in authenticate() argument
DCryptoObject.java24 import javax.crypto.Cipher;
25 import javax.crypto.Mac;
/frameworks/support/compat/src/main/java/androidx/core/hardware/fingerprint/
DFingerprintManagerCompat.java33 import javax.crypto.Cipher;
34 import javax.crypto.Mac;
101 public void authenticate(@Nullable CryptoObject crypto, int flags, in authenticate() argument
111 wrapCryptoObject(crypto), in authenticate()
245 public AuthenticationResult(CryptoObject crypto) {
246 mCryptoObject = crypto;
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DWrappedKey.java30 import javax.crypto.Cipher;
31 import javax.crypto.IllegalBlockSizeException;
32 import javax.crypto.NoSuchPaddingException;
33 import javax.crypto.SecretKey;
34 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.java29 import javax.crypto.KeyGenerator;
30 import javax.crypto.SecretKey;
31 import javax.crypto.spec.SecretKeySpec;
DKeySyncUtils.java35 import javax.crypto.AEADBadTagException;
36 import javax.crypto.KeyGenerator;
37 import javax.crypto.SecretKey;
/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()
190 sp<ICrypto> crypto = createCrypto(&status); in createCryptoAndPlugin() local
191 if (crypto == NULL) { in createCryptoAndPlugin()
197 status = crypto->createPlugin(uuid, drmSessionId.array(), drmSessionId.size()); in createCryptoAndPlugin()
204 return crypto; in createCryptoAndPlugin()
/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/av/media/libstagefright/
DCodecBase.cpp27 void BufferChannelBase::setCrypto(const sp<ICrypto> &crypto) { in setCrypto() argument
28 mCrypto = crypto; in setCrypto()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java25 import javax.crypto.Mac;
26 import javax.crypto.SecretKey;
27 import javax.crypto.spec.SecretKeySpec;
/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;
DAndroidKeyStoreRSACipherSpi.java37 import javax.crypto.Cipher;
38 import javax.crypto.CipherSpi;
39 import javax.crypto.spec.OAEPParameterSpec;
40 import javax.crypto.spec.PSource;
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java28 import javax.crypto.SecretKey;
29 import javax.crypto.SecretKeyFactory;
30 import javax.crypto.spec.PBEKeySpec;
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java38 import javax.crypto.Cipher;
39 import javax.crypto.KeyGenerator;
40 import javax.crypto.SecretKey;
41 import javax.crypto.spec.GCMParameterSpec;
DRecoverableKeyGeneratorTest.java44 import javax.crypto.Cipher;
45 import javax.crypto.KeyGenerator;
46 import javax.crypto.spec.GCMParameterSpec;
/frameworks/av/drm/libmediadrm/
DIMediaDrmService.cpp71 sp<ICrypto> crypto = makeCrypto(); in onTransact() local
72 reply->writeStrongBinder(IInterface::asBinder(crypto)); in onTransact()
/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java28 import javax.crypto.KeyGenerator;
29 import javax.crypto.SecretKey;
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformAdbRestoreTask.java76 import javax.crypto.BadPaddingException;
77 import javax.crypto.Cipher;
78 import javax.crypto.CipherInputStream;
79 import javax.crypto.IllegalBlockSizeException;
80 import javax.crypto.NoSuchPaddingException;
81 import javax.crypto.SecretKey;
82 import javax.crypto.spec.IvParameterSpec;
83 import javax.crypto.spec.SecretKeySpec;

12345