Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java97 ImageView iv = new ImageView(mActivity); in testSetImageResource() local
98 mImageSwitcher.addView(iv); in testSetImageResource()
102 assertSame(iv, mImageSwitcher.getCurrentView()); in testSetImageResource()
113 assertSame(iv, mImageSwitcher.getCurrentView()); in testSetImageResource()
127 ImageView iv = new ImageView(mActivity); in testSetImageURI() local
128 mImageSwitcher.addView(iv); in testSetImageURI()
139 assertSame(iv, mImageSwitcher.getCurrentView()); in testSetImageURI()
154 assertSame(iv, mImageSwitcher.getCurrentView()); in testSetImageURI()
170 ImageView iv = new ImageView(mActivity); in testSetImageDrawable() local
171 mImageSwitcher.addView(iv); in testSetImageDrawable()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DEphemeralKeyTest.java185 ByteBuffer iv = ByteBuffer.allocate(12); in encryptMessageToHolder() local
186 iv.putInt(0, 0x00000000); in encryptMessageToHolder()
187 iv.putInt(4, 0x00000000); in encryptMessageToHolder()
188 iv.putInt(8, mCounter); in encryptMessageToHolder()
190 GCMParameterSpec encryptionParameterSpec = new GCMParameterSpec(128, iv.array()); in encryptMessageToHolder()
208 ByteBuffer iv = ByteBuffer.allocate(12); in decryptMessageFromHolder() local
209 iv.putInt(0, 0x00000000); in decryptMessageFromHolder()
210 iv.putInt(4, 0x00000001); in decryptMessageFromHolder()
211 iv.putInt(8, mMdlExpectedCounter); in decryptMessageFromHolder()
215 cipher.init(Cipher.DECRYPT_MODE, mSecretKey, new GCMParameterSpec(128, iv.array())); in decryptMessageFromHolder()
/cts/tests/tests/security/jni/
Dandroid_security_cts_EncryptionTest.cpp50 uint8_t iv[EVP_CIPHER_iv_length(TEST_EVP_CIPHER)]; in android_security_cts_EncryptionTest_aesIsFast() local
53 memset(iv, 0x11, sizeof(iv)); in android_security_cts_EncryptionTest_aesIsFast()
57 if (!EVP_DecryptInit(&ctx, TEST_EVP_CIPHER, key, iv)) { in android_security_cts_EncryptionTest_aesIsFast()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9491/
Dpoc.cpp23 uint8_t iv[16] = {4, 3, 2, 1, 4, 3, 2, 1, 4, 3, 2, 1, 4, 3, 2, 1}; in main() local
27 AMediaCodecCryptoInfo_new((int)NUM_SUB_SAMPLES, key, iv, in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/
Dpoc.cpp103 uint8_t iv[16]; in decrypt() local
104 memset(iv, 0, 16); in decrypt()
105 data.write(iv, 16); in decrypt()
/cts/tests/tests/media/misc/jni/
Dnative-media-jni.cpp134 uint8_t iv[16] = { 4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1 }; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative() local
139 …AMediaCodecCryptoInfo_new(numsubsamples, key, iv, AMEDIACODECRYPTOINFO_MODE_CLEAR, clearbytes, enc… in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
152 if (memcmp(iv, bytes, 16) != 0) { in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java284 testVector.iv = HexEncoding.decode(value); in runTestsForKatFile()
325 if (testVector.iv != null) { in runKatTest()
326 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest()
358 public byte[] iv; field in AESCipherNistCavpKatTest.TestVector
DBlockCipherTestBase.java442 byte[] iv = mCipher.getIV(); in testGeneratedIvSurvivesReset()
446 assertArrayEquals(iv, mCipher.getIV()); in testGeneratedIvSurvivesReset()
447 assertAlgoritmParametersIv(iv); in testGeneratedIvSurvivesReset()
457 assertArrayEquals(iv, mCipher.getIV()); in testGeneratedIvSurvivesReset()
458 assertAlgoritmParametersIv(iv); in testGeneratedIvSurvivesReset()
1770 protected final void assertInitRejectsIvParameterSpec(byte[] iv) throws Exception { in assertInitRejectsIvParameterSpec() argument
1773 IvParameterSpec spec = new IvParameterSpec(iv); in assertInitRejectsIvParameterSpec()
1795 param.init(new IvParameterSpec(iv)); in assertInitRejectsIvParameterSpec()
DImportWrappedKeyTest.java482 byte[] iv = new byte[12]; in wrapKey()
483 random.nextBytes(iv); in wrapKey()
504 GCMParameterSpec gcmParameterSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv); in wrapKey()
522 items.add(new DEROctetString(iv)); in wrapKey()
DKeyGeneratorTest.java832 byte[] iv = new byte[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; in assertUniqueAesEncryptionForNKeys()
846 cipher.init(Cipher.ENCRYPT_MODE, key, new IvParameterSpec(iv)); in assertUniqueAesEncryptionForNKeys()
DCipherTest.java941 byte[] iv = cipher.getIV(); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
942 if ((iv != null) && (iv.length != 12)) { in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmMockTest.java556 byte[] iv = {0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29}; in testCryptoSessionEncrypt()
561 byte[] output = cs.encrypt(keyId, input, iv); in testCryptoSessionEncrypt()
565 assertTrue(Arrays.equals(iv, md.getPropertyByteArray("mock-iv"))); in testCryptoSessionEncrypt()
582 byte[] iv = {0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69}; in testCryptoSessionDecrypt()
587 byte[] output = cs.decrypt(keyId, input, iv); in testCryptoSessionDecrypt()
591 assertTrue(Arrays.equals(iv, md.getPropertyByteArray("mock-iv"))); in testCryptoSessionDecrypt()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMediaParserTest.java637 expectedCryptoInfo.iv = Arrays.copyOf(Util.getBytesFromHexString("aab4ed0108dd5272"), 16); in testMp4FragmentedOutOfBandCrypto()
766 assertThat(actualCryptoInfo.iv).isEqualTo(expectedCryptoInfo.iv); in assertEqual()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaCasTest.java821 byte[] iv = new byte[16]; // not used in descrambleTestInputBuffer()
823 key, iv, MediaCodec.CRYPTO_MODE_AES_CBC); in descrambleTestInputBuffer()
/cts/tests/tests/security/res/raw/
Dcve_2018_13925.ts38 …��BH���1R�[(��Q�n� ��y�иQ����Q�P�F��!W���H��m��ڄ�ȇD�!4�Mf�amG�1+���ivWKQDV�t�;�n�4���vz…
539 …!K��FG�1�zAl+��f�� ��E-G8��f!TM�^�]��+�C[��[I�:ٲ������:����[�3iv���B� >>&�����'��…
4110 뼎��`�Ku��N��u��( }� ���薊��]聿wZ���)�"(���Hᄞ��TYH�iv��{5d��4���/@'f�Z����`l�
Dcve_2019_2244.ts37 …��BH���1R�[(��Q�n� ��y�иQ����Q�P�F��!W���H��m��ڄ�ȇD�!4�Mf�amG�1+���ivWKQDV�t�;�n�4���vz…
538 …!K��FG�1�zAl+��f�� ��E-G8��f!TM�^�]��+�C[��[I�:ٲ������:����[�3iv���B� >>&�����'��…
4112 뼎��`�Ku��N��u��( }� ���薊��]聿wZ���)�"(���Hᄞ��TYH�iv��{5d��4���/@'f�Z����`l�
Dcve_2019_2245.ts37 …��BH���1R�[(��Q�n� ��y�иQ����Q�P�F��!W���H��m��ڄ�ȇD�!4�Mf�amG�1+���ivWKQDV�t�;�n�4���vz…
538 …!K��FG�1�zAl+��f�� ��E-G8��f!TM�^�]��+�C[��[I�:ٲ������:����[�3iv���B� >>&�����'��…
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt22689 field public byte[] iv;