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

/frameworks/av/drm/mediadrm/plugins/clearkey/
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 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 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.h173 const Vector<uint8_t>& iv,
178 UNUSED(iv);
187 const Vector<uint8_t>& iv,
192 UNUSED(iv);
169 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
183 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/libmedia/
H A DICrypto.cpp98 const uint8_t iv[16],
115 if (iv == NULL) {
116 iv = kDummy;
120 data.write(iv, 16);
244 uint8_t iv[16]; local
245 data.read(iv, sizeof(iv));
271 iv,
95 decrypt( bool secure, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
H A DIDrm.cpp361 Vector<uint8_t> const &iv,
369 writeVector(data, iv);
380 Vector<uint8_t> const &iv,
388 writeVector(data, iv);
771 Vector<uint8_t> sessionId, keyId, input, iv, output; local
775 readVector(data, iv);
776 uint32_t result = encrypt(sessionId, keyId, input, iv, output);
785 Vector<uint8_t> sessionId, keyId, input, iv, output; local
789 readVector(data, iv);
790 uint32_t result = decrypt(sessionId, keyId, input, iv, outpu
358 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
377 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...]
/frameworks/av/media/libmediaplayerservice/
H A DCrypto.cpp239 const uint8_t iv[16],
256 secure, key, iv, mode, srcPtr, subSamples, numSubSamples, dstPtr,
236 decrypt( bool secure, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const void *srcPtr, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
H A DDrm.cpp585 Vector<uint8_t> const &iv,
597 return mPlugin->encrypt(sessionId, keyId, input, iv, output);
603 Vector<uint8_t> const &iv,
615 return mPlugin->decrypt(sessionId, keyId, input, iv, output);
582 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
600 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/av/media/ndk/
H A DNdkMediaExtractor.cpp335 const void *iv; local
337 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) {
352 (uint8_t*) iv,
H A DNdkMediaCodec.cpp364 uint8_t iv[16]; member in struct:AMediaCodecCryptoInfo
391 crypto->iv,
409 uint8_t iv[16],
423 memcpy(ret->iv, iv, 16);
468 memcpy(dst, ci->iv, 16);
406 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.cpp588 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
613 ivVec.appendArray(iv, kIvSize);
629 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
634 return encrypt_decrypt_common(mObj, *sessionId, cipherAlgorithm, keyId, iv,
640 const char *cipherAlgorithm, uint8_t *keyId, uint8_t *iv,
645 return encrypt_decrypt_common(mObj, *sessionId, cipherAlgorithm, keyId, iv,
586 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
628 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
639 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/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp497 struct iovec iv; local
504 memset(&iv, 0, sizeof(iv));
506 iv.iov_base = buf;
507 iv.iov_len = len;
509 msg.msg_iov = &iv;
601 struct iovec iv; local
602 memset(&iv, 0, sizeof(iv));
604 iv
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSTileView.java309 protected void setIcon(ImageView iv, QSTile.State state) { argument
310 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) {
315 iv.setImageDrawable(d);
316 iv.setTag(R.id.qs_icon_tag, state.icon);
318 if (!iv.isShown()) {
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp489 Vector<uint8_t> const &iv,
493 ALOGD("MockDrmPlugin::encrypt(sessionId=%s, keyId=%s, input=%s, iv=%s)",
497 vectorToString(iv).string());
508 // byte[] iv -> mock-iv
511 mByteArrayProperties.add(String8("mock-iv"), iv);
528 Vector<uint8_t> const &iv,
532 ALOGD("MockDrmPlugin::decrypt(sessionId=%s, keyId=%s, input=%s, iv=%s)",
536 vectorToString(iv)
486 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
525 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
729 decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], Mode mode, const void *srcPtr, const SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp394 const uint8_t iv[16],
409 msg->setPointer("iv", (void *)iv);
1868 const uint8_t *iv; local
1883 iv = NULL;
1893 CHECK(msg->findPointer("iv", (void **)&iv));
1944 iv,
388 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, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument
H A DMPEG4Extractor.cpp152 uint8_t iv[16]; member in struct:android::MPEG4Source::Sample
3336 memset(smpl->iv, 0, 16);
3337 if (mDataSource->readAt(drmoffset, smpl->iv, ivlength) != ivlength) {
4050 bufmeta->setData(kKeyCryptoIV, 0, smpl->iv, 16); // use 16 or the actual size?
/frameworks/av/media/libstagefright/httplive/
H A DPlaylistFetcher.cpp253 // If decrypting the first block in a file, read the iv from the manifest
254 // or derive the iv from the file's sequence number.
256 AString iv; local
257 if (itemMeta->findString("cipher-iv", &iv)) {
258 if ((!iv.startsWith("0x") && !iv.startsWith("0X"))
259 || iv.size() != 16 * 2 + 2) {
260 ALOGE("malformed cipher IV '%s'.", iv.c_str());
266 char c1 = tolower(iv
[all...]
/frameworks/base/media/java/android/media/
H A DMediaDrm.java659 byte[] keyId, byte[] input, byte[] iv);
662 byte[] keyId, byte[] input, byte[] iv);
711 * @param iv the initialization vector to use for the cipher
713 public byte[] encrypt(byte[] keyid, byte[] input, byte[] iv) { argument
714 return encryptNative(mDrm, mSessionId, keyid, input, iv);
722 * @param iv the initialization vector to use for the cipher
724 public byte[] decrypt(byte[] keyid, byte[] input, byte[] iv) { argument
725 return decryptNative(mDrm, mSessionId, keyid, input, iv);
658 encryptNative(MediaDrm drm, byte[] sessionId, byte[] keyId, byte[] input, byte[] iv) argument
661 decryptNative(MediaDrm drm, byte[] sessionId, byte[] keyId, byte[] input, byte[] iv) argument
H A DMediaCodec.java872 iv = newIV;
895 public byte[] iv; field in class:MediaCodec.CryptoInfo
911 builder.append("], iv [");
913 builder.append(hexdigits.charAt((iv[i] & 0xf0) >> 4));
914 builder.append(hexdigits.charAt(iv[i] & 0x0f));
/frameworks/rs/driver/runtime/
H A Drs_cl.c1083 int32_t iv; member in union:__anon1496
1092 (i) = gf_u.iv; \
1100 sf_u.iv = (i); \
1108 int32_t iv = (int)v; local
1109 int32_t x = iv + (iv >> 31); // ~floor(v)
1122 int2 iv = convert_int2(v); local
1123 int2 x = iv + (iv >> (int2)31);//floor(v);
1137 int4 iv local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp280 const uint8_t iv[16],
286 index, offset, subSamples, numSubSamples, key, iv, mode,
1021 jbyte *iv = NULL; local
1089 iv = env->GetByteArrayElements(ivObj, &isCopy);
1099 (const uint8_t *)key, (const uint8_t *)iv,
1106 if (iv != NULL) {
1107 env->ReleaseByteArrayElements(ivObj, iv, 0);
1108 iv = NULL;
1416 gFields.cryptoInfoIVID = env->GetFieldID(clazz.get(), "iv", "[B");
274 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, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument

Completed in 388 milliseconds