Home
last modified time | relevance | path

Searched refs:ivSize (Results 1 – 23 of 23) sorted by relevance

/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/samplegrouping/
DCencSampleEncryptionInformationGroupEntry.java38 private byte ivSize; field in CencSampleEncryptionInformationGroupEntry
44 ivSize = (byte) IsoTypeReader.readUInt8(byteBuffer); in parse()
54 IsoTypeWriter.writeUInt8(byteBuffer, ivSize); in get()
69 return ivSize; in getIvSize()
72 public void setIvSize(byte ivSize) { in setIvSize() argument
73 this.ivSize = ivSize; in setIvSize()
89 ", ivSize=" + ivSize + in toString()
108 if (ivSize != that.ivSize) { in equals()
121 result = 31 * result + (int) ivSize; in hashCode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBESecretKeyFactory.java20 private int ivSize; field in PBESecretKeyFactory
29 int ivSize) in PBESecretKeyFactory() argument
37 this.ivSize = ivSize; in PBESecretKeyFactory()
51 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
63 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DBCPBEKey.java20 int ivSize; field in BCPBEKey
34 int ivSize, in BCPBEKey() argument
43 this.ivSize = ivSize; in BCPBEKey()
109 return ivSize; in getIvSize()
DBaseWrapCipher.java69 private int ivSize; field in BaseWrapCipher
86 int ivSize) in BaseWrapCipher() argument
89 this.ivSize = ivSize; in BaseWrapCipher()
176 if (param instanceof KeyParameter && ivSize != 0) in engineInit()
178 iv = new byte[ivSize]; in engineInit()
DPBE.java213 int ivSize, in makePBEParameters() argument
235 if (ivSize != 0) in makePBEParameters()
237 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
411 int ivSize) in makePBEParameters() argument
421 if (ivSize != 0) in makePBEParameters()
423 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
DAbstractSampleEncryptionBox.java25 int ivSize = -1; field in AbstractSampleEncryptionBox
46 ivSize = IsoTypeReader.readUInt8(content); in _parseDetails()
47 useThisIvSize = ivSize; in _parseDetails()
102 return ivSize; in getIvSize()
105 public void setIvSize(int ivSize) { in setIvSize() argument
106 this.ivSize = ivSize; in setIvSize()
148 IsoTypeWriter.writeUInt8(byteBuffer, ivSize); in getContent()
154 byte[] ivFull = new byte[ivSize]; in getContent()
155 System.arraycopy(entry.iv, 0, ivFull, ivSize - entry.iv.length, entry.iv.length); in getContent()
201 size = ivSize; in getSize()
[all …]
/external/lzma/CPP/7zip/Crypto/
D7zAes.cpp142 UInt32 ivSize = _ivSize; in WriteCoderProperties() local
149 (((ivSize == 0) ? 0 : 1) << 6)); in WriteCoderProperties()
151 if (_key.SaltSize == 0 && ivSize == 0) in WriteCoderProperties()
154 Byte ivSizeSpec = (Byte)((ivSize == 0) ? 0 : (ivSize - 1)); in WriteCoderProperties()
161 if (ivSize > 0) in WriteCoderProperties()
163 RINOK(WriteStream(outStream, _iv, ivSize)); in WriteCoderProperties()
191 UInt32 ivSize = (firstByte >> 6) & 1; in SetDecoderProperties2() local
198 ivSize += (secondByte & 0x0F); in SetDecoderProperties2()
200 if (pos + _key.SaltSize + ivSize > size) in SetDecoderProperties2()
204 for (i = 0; i < ivSize; i++) in SetDecoderProperties2()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S1ParametersGenerator.java90 int ivSize) in generateDerivedParameters() argument
93 ivSize = ivSize / 8; in generateDerivedParameters()
95 if ((keySize + ivSize) > digest.getDigestSize()) in generateDerivedParameters()
98 "Can't generate a derived key " + (keySize + ivSize) + " bytes long."); in generateDerivedParameters()
103 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DOpenSSLPBEParametersGenerator.java114 int ivSize) in generateDerivedParameters() argument
117 ivSize = ivSize / 8; in generateDerivedParameters()
119 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
121 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS5S2ParametersGenerator.java139 int ivSize) in generateDerivedParameters() argument
142 ivSize = ivSize / 8; in generateDerivedParameters()
144 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
146 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS12ParametersGenerator.java192 int ivSize) in generateDerivedParameters() argument
195 ivSize = ivSize / 8; in generateDerivedParameters()
199 byte[] iv = generateDerivedKey(IV_MATERIAL, ivSize); in generateDerivedParameters()
201 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), iv, 0, ivSize); in generateDerivedParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DDES.java299 private int ivSize; field in DES.DESPBEKeyFactory
308 int ivSize) in DESPBEKeyFactory() argument
316 this.ivSize = ivSize; in DESPBEKeyFactory()
330 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
335 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
354 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DPBEPBKDF2.java211 … int ivSize = -1; // JDK 1,2 and earlier does not understand simplified version. in engineGenerateSecret() local
214 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
220 … int ivSize = -1; // JDK 1,2 and earlier does not understand simplified version. in engineGenerateSecret() local
223 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/tpm2/
DObject_spt.c722 UINT16 ivSize = 0; // size of iv area, including the size field in ProduceOuterWrap() local
735 ivSize = GetIV2BSize(protector); in ProduceOuterWrap()
738 ivRNG.t.size = ivSize - sizeof(UINT16); in ProduceOuterWrap()
745 sensitiveData += ivSize; in ProduceOuterWrap()
758 ComputeOuterIntegrity(name, protector, hashAlg, seed, dataSize + ivSize, in ProduceOuterWrap()
765 return dataSize + integritySize + ivSize; in ProduceOuterWrap()
876 UINT16 ivSize; in SensitiveToPrivate() local
896 ivSize = GetIV2BSize(parentHandle); in SensitiveToPrivate()
898 sensitiveData += ivSize; in SensitiveToPrivate()
910 sensitiveData = outPrivate->t.buffer + ivSize; in SensitiveToPrivate()
[all …]
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DCipherOutputStreamTest.java65 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) in TestVector() argument
69 this.params = randomParameters(algorithm, ivSize, tagSize); in TestVector()
89 for (int ivSize : ivSizes) { in getTestVectors()
93 result.add(new TestVector(algorithm, keySize, ivSize, tagSize, ptSize, aadSize)); in getTestVectors()
DCipherInputStreamTest.java66 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) in TestVector() argument
70 this.params = randomParameters(algorithm, ivSize, tagSize); in TestVector()
90 for (int ivSize : ivSizes) { in getTestVectors()
94 result.add(new TestVector(algorithm, keySize, ivSize, tagSize, ptSize, aadSize)); in getTestVectors()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DPBEParametersGenerator.java85 public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize); in generateDerivedParameters() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java56 private int ivSize; field in BaseCipherSpi
/external/google-tv-pairing-protocol/java/jar/
Dbcprov-jdk15-143.jarMETA-INF/MANIFEST.MF META-INF/BCKEY.SF META-INF/BCKEY ...
/external/robolectric/v3/runtime/
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...