Searched defs:iv (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DCellTileView.java43 protected void updateIcon(ImageView iv, State state) { argument
44 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) {
46 iv.setImageDrawable(mSignalDrawable);
47 iv.setTag(R.id.qs_icon_tag, state.icon);
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp30 const Iv iv, const uint8_t* source,
43 memcpy(opensslIv, iv, sizeof(opensslIv));
29 decrypt(const android::Vector<uint8_t>& key, const Iv iv, const uint8_t* source, uint8_t* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DCryptoPlugin.cpp35 ssize_t CryptoPlugin::decrypt(bool secure, const KeyId keyId, const Iv iv, argument
67 status_t res = mSession->decrypt(keyId, iv, srcPtr, dstPtr, subSamples,
H A DSession.cpp65 const KeyId keyId, const Iv iv, const void* source,
79 key, iv,
64 decrypt( const KeyId keyId, const Iv iv, const void* source, void* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DDrmPlugin.h186 const Vector<uint8_t>& iv,
189 input.size() == 0 || iv.size() == 0) {
200 const Vector<uint8_t>& iv,
203 input.size() == 0 || iv.size() == 0) {
182 encrypt( const Vector<uint8_t>& sessionId, const Vector<uint8_t>& keyId, const Vector<uint8_t>& input, const Vector<uint8_t>& iv, Vector<uint8_t>& output) argument
196 decrypt( const Vector<uint8_t>& sessionId, const Vector<uint8_t>& keyId, const Vector<uint8_t>& input, const Vector<uint8_t>& iv, Vector<uint8_t>& output) argument
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
H A DAesCtrDecryptorUnittest.cpp33 status_t attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, argument
40 return decryptor.decrypt(keyVector, iv, source, destination, subSamples,
45 void attemptDecryptExpectingSuccess(const Key& key, const Iv& iv, argument
52 ASSERT_EQ(android::OK, attemptDecrypt(key, iv, encrypted, outputBuffer,
70 Iv iv = { local
101 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted,
115 Iv iv = { local
147 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted,
161 Iv iv = { local
193 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypte
207 Iv iv = { local
256 Iv iv = { local
310 Iv iv = { local
365 Iv iv = { local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDrm.h98 uint8_t iv[kBlockSize]; member in struct:android::NuPlayerDrm::CryptoInfo
107 uint8_t iv[kBlockSize],
H A DNuPlayerDrm.cpp236 uint8_t iv[kBlockSize],
251 memcpy(ret->iv, iv, kBlockSize);
311 const void *iv; local
313 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) {
329 (uint8_t*) iv,
233 makeCryptoInfo( int numSubSamples, uint8_t key[kBlockSize], uint8_t iv[kBlockSize], CryptoPlugin::Mode mode, size_t *clearbytes, size_t *encryptedbytes) argument
/frameworks/base/services/core/java/com/android/server/accounts/
H A DCryptoHelper.java30 private static final String KEY_IV = "iv";
66 byte[] iv = cipher.getIV();
67 byte[] mac = createMac(encryptedBytes, iv);
72 encryptedBundle.putByteArray(KEY_IV, iv);
80 byte[] iv = bundle.getByteArray(KEY_IV);
83 if (!verifyMac(encryptedBytes, iv, mac)) {
88 IvParameterSpec ivSpec = new IvParameterSpec(iv);
102 private boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray) argument
111 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv));
115 private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throw argument
[all...]
/frameworks/av/drm/libmediadrm/
H A DCrypto.cpp237 ssize_t Crypto::decrypt(const uint8_t key[16], const uint8_t iv[16], argument
264 ssize_t result = mPlugin->decrypt(secure, key, iv, mode, pattern, srcPtr, subSamples,
H A DICrypto.cpp99 virtual ssize_t decrypt(const uint8_t key[16], const uint8_t iv[16], argument
116 if (iv == NULL) {
117 iv = kDummy;
121 data.write(iv, 16);
321 uint8_t iv[16]; local
322 data.read(iv, sizeof(iv));
393 result = decrypt(key, iv, mode, pattern, source, offset,
H A DCryptoHal.cpp281 ssize_t CryptoHal::decrypt(const uint8_t keyId[16], const uint8_t iv[16], argument
349 Return<void> hResult = mPlugin->decrypt(secure, toHidlArray16(keyId), toHidlArray16(iv), hMode,
H A DDrm.cpp677 Vector<uint8_t> const &iv,
691 return mPlugin->encrypt(sessionId, keyId, input, iv, output);
697 Vector<uint8_t> const &iv,
711 return mPlugin->decrypt(sessionId, keyId, input, iv, output);
674 encrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
694 decrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
H A DIDrm.cpp428 Vector<uint8_t> const &iv,
436 writeVector(data, iv);
450 Vector<uint8_t> const &iv,
458 writeVector(data, iv);
850 Vector<uint8_t> sessionId, keyId, input, iv, output; local
854 readVector(data, iv);
855 uint32_t result = encrypt(sessionId, keyId, input, iv, output);
864 Vector<uint8_t> sessionId, keyId, input, iv, output; local
868 readVector(data, iv);
869 uint32_t result = decrypt(sessionId, keyId, input, iv, outpu
425 encrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
447 decrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
[all...]
H A DDrmHal.cpp828 Vector<uint8_t> const &iv, Vector<uint8_t> &output) {
840 toHidlVec(keyId), toHidlVec(input), toHidlVec(iv),
854 Vector<uint8_t> const &iv, Vector<uint8_t> &output) {
866 toHidlVec(keyId), toHidlVec(input), toHidlVec(iv),
826 encrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
852 decrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp188 struct iovec iv; local
195 memset(&iv, 0, sizeof(iv));
197 iv.iov_base = buf;
198 iv.iov_len = len;
200 msg.msg_iov = &iv;
290 struct iovec iv; local
291 memset(&iv, 0, sizeof(iv));
293 iv
[all...]
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreAuthenticatedAESCipherSpi.java100 byte[] iv = spec.getIV();
101 if (iv == null) {
103 } else if (iv.length != IV_LENGTH_BYTES) {
105 + iv.length + " bytes. Only " + IV_LENGTH_BYTES
116 setIv(iv);
156 byte[] iv = getIv();
157 if ((iv != null) && (iv.length > 0)) {
160 params.init(new GCMParameterSpec(mTagLengthBits, iv));
333 protected void setIv(byte[] iv) { argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImpl.java87 protected void updateIcon(ImageView iv, State state) { argument
88 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) {
89 boolean shouldAnimate = iv.isShown() && mAnimationEnabled
90 && iv.getDrawable() != null;
98 iv.setImageDrawable(d);
99 iv.setTag(R.id.qs_icon_tag, state.icon);
100 iv.setPadding(0, padding, 0, padding);
116 protected void setIcon(ImageView iv, QSTile.State state) { argument
117 updateIcon(iv, state);
119 iv
140 animateGrayScale(int fromColor, int toColor, ImageView iv) argument
159 setTint(ImageView iv, int color) argument
[all...]
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyCasPlugin.cpp224 unsigned char iv[AES_BLOCK_SIZE]; local
225 memset(iv, 0, AES_BLOCK_SIZE);
232 AES_cbc_encrypt(data, data, length, &key, iv, 0);
245 AES_cbc_encrypt(data, data, cbc_byte_count, &key, iv, 0);
268 AES_cbc_encrypt(data, data, AES_BLOCK_SIZE, &key, iv, 0);
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp359 const void *iv; local
361 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) {
376 (uint8_t*) iv,
H A DNdkMediaCodec.cpp493 uint8_t iv[16]; member in struct:AMediaCodecCryptoInfo
525 crypto->iv,
550 uint8_t iv[16],
564 memcpy(ret->iv, iv, 16);
611 memcpy(dst, ci->iv, 16);
547 AMediaCodecCryptoInfo_new( int numsubsamples, uint8_t key[16], uint8_t iv[16], cryptoinfo_mode_t mode, size_t *clearbytes, size_t *encryptedbytes) argument
H A DNdkMediaDrm.cpp586 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
611 ivVec.appendArray(iv, kIvSize);
627 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
632 return encrypt_decrypt_common(mObj, *sessionId, cipherAlgorithm, keyId, iv,
638 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
643 return encrypt_decrypt_common(mObj, *sessionId, cipherAlgorithm, keyId, iv,
584 encrypt_decrypt_common(AMediaDrm *mObj, const AMediaDrmSessionId &sessionId, const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv, const uint8_t *input, uint8_t *output, size_t dataSize, bool encrypt) argument
626 AMediaDrm_encrypt(AMediaDrm *mObj, const AMediaDrmSessionId *sessionId, const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv, const uint8_t *input, uint8_t *output, size_t dataSize) argument
637 AMediaDrm_decrypt(AMediaDrm *mObj, const AMediaDrmSessionId *sessionId, const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv, const uint8_t *input, uint8_t *output, size_t dataSize) argument
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp555 Vector<uint8_t> const &iv,
559 ALOGD("MockDrmPlugin::encrypt(sessionId=%s, keyId=%s, input=%s, iv=%s)",
563 vectorToString(iv).string());
574 // byte[] iv -> mock-iv
577 mByteArrayProperties.add(String8("mock-iv"), iv);
594 Vector<uint8_t> const &iv,
598 ALOGD("MockDrmPlugin::decrypt(sessionId=%s, keyId=%s, input=%s, iv=%s)",
602 vectorToString(iv)
552 encrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
591 decrypt(Vector<uint8_t> const &sessionId, Vector<uint8_t> const &keyId, Vector<uint8_t> const &input, Vector<uint8_t> const &iv, Vector<uint8_t> &output) argument
795 decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], Mode mode, const Pattern &pattern, const void *srcPtr, const SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString * ) argument
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp1030 const uint8_t iv[16],
1046 msg->setPointer("iv", (void *)iv);
2724 const uint8_t *iv; local
2740 iv = NULL;
2754 CHECK(msg->findPointer("iv", (void **)&iv));
2804 iv,
1024 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument
/frameworks/av/media/libstagefright/httplive/
H A DPlaylistFetcher.cpp364 // If decrypting the first block in a file, read the iv from the manifest
365 // or derive the iv from the file's sequence number.
368 AString iv; local
369 if (itemMeta->findString("cipher-iv", &iv)) {
370 if ((!iv.startsWith("0x") && !iv.startsWith("0X"))
371 || iv.size() > 16 * 2 + 2) {
372 ALOGE("malformed cipher IV '%s'.", iv.c_str());
376 while (iv
[all...]

Completed in 345 milliseconds

12