Home
last modified time | relevance | path

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

123

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DX0017_StrongEncryptionHeader.java331 final int ivSize = ZipShort.getValue(data, offset); in parseFileFormat() local
332 this.ivData = new byte[ivSize]; in parseFileFormat()
333 System.arraycopy(data, offset + 4, this.ivData, 0, ivSize); in parseFileFormat()
335 this.format = ZipShort.getValue(data, offset + ivSize + 6); in parseFileFormat()
336 … this.algId = EncryptionAlgorithm.getAlgorithmByCode(ZipShort.getValue(data, offset + ivSize + 8)); in parseFileFormat()
337 this.bitlen = ZipShort.getValue(data, offset + ivSize + 10); in parseFileFormat()
338 this.flags = ZipShort.getValue(data, offset + ivSize + 12); in parseFileFormat()
340 final int erdSize = ZipShort.getValue(data, offset + ivSize + 14); in parseFileFormat()
342 System.arraycopy(data, offset + ivSize + 16, this.erdData, 0, erdSize); in parseFileFormat()
344 this.rcount = ZipLong.getValue(data, offset + ivSize + 16 + erdSize); in parseFileFormat()
[all …]
/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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DPBESecretKeyFactory.java24 private int ivSize; field in PBESecretKeyFactory
33 int ivSize) in PBESecretKeyFactory() argument
41 this.ivSize = ivSize; in PBESecretKeyFactory()
55 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
60 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
67 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DBCPBEKey.java30 int ivSize; field in BCPBEKey
49 int ivSize, in BCPBEKey() argument
58 this.ivSize = ivSize; in BCPBEKey()
147 return ivSize; in getIvSize()
/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.java26 int ivSize; field in BCPBEKey
45 int ivSize, in BCPBEKey() argument
54 this.ivSize = ivSize; in BCPBEKey()
143 return ivSize; in getIvSize()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/
DPBESecretKeyFactory.java24 private int ivSize; field in PBESecretKeyFactory
33 int ivSize) in PBESecretKeyFactory() argument
41 this.ivSize = ivSize; in PBESecretKeyFactory()
55 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
60 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
67 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
DBCPBEKey.java30 int ivSize; field in BCPBEKey
49 int ivSize, in BCPBEKey() argument
58 this.ivSize = ivSize; in BCPBEKey()
147 return ivSize; in getIvSize()
/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/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.java112 int ivSize) in generateDerivedParameters() argument
115 ivSize = ivSize / 8; in generateDerivedParameters()
117 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
119 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS5S2ParametersGenerator.java136 int ivSize) in generateDerivedParameters() argument
139 ivSize = ivSize / 8; in generateDerivedParameters()
141 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
143 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/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/generators/
DPKCS5S1ParametersGenerator.java92 int ivSize) in generateDerivedParameters() argument
95 ivSize = ivSize / 8; in generateDerivedParameters()
97 if ((keySize + ivSize) > digest.getDigestSize()) in generateDerivedParameters()
100 "Can't generate a derived key " + (keySize + ivSize) + " bytes long."); in generateDerivedParameters()
105 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.java138 int ivSize) in generateDerivedParameters() argument
141 ivSize = ivSize / 8; in generateDerivedParameters()
143 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
145 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS12ParametersGenerator.java194 int ivSize) in generateDerivedParameters() argument
197 ivSize = ivSize / 8; in generateDerivedParameters()
201 byte[] iv = generateDerivedKey(IV_MATERIAL, ivSize); in generateDerivedParameters()
203 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), iv, 0, ivSize); in generateDerivedParameters()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DPKCS5S1ParametersGenerator.java92 int ivSize) in generateDerivedParameters() argument
95 ivSize = ivSize / 8; in generateDerivedParameters()
97 if ((keySize + ivSize) > digest.getDigestSize()) in generateDerivedParameters()
100 "Can't generate a derived key " + (keySize + ivSize) + " bytes long."); in generateDerivedParameters()
105 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.java138 int ivSize) in generateDerivedParameters() argument
141 ivSize = ivSize / 8; in generateDerivedParameters()
143 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
145 return new ParametersWithIV(new KeyParameter(dKey, 0, keySize), dKey, keySize, ivSize); in generateDerivedParameters()
DPKCS12ParametersGenerator.java194 int ivSize) in generateDerivedParameters() argument
197 ivSize = ivSize / 8; in generateDerivedParameters()
201 byte[] iv = generateDerivedKey(IV_MATERIAL, ivSize); in generateDerivedParameters()
203 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.java306 private int ivSize; field in DES.DESPBEKeyFactory
315 int ivSize) in DESPBEKeyFactory() argument
323 this.ivSize = ivSize; in DESPBEKeyFactory()
348 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
356 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
375 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/boringssl/src/third_party/wycheproof_testvectors/
Daes_gcm_test.txt7 [ivSize = 96]
481 [ivSize = 64]
516 [ivSize = 128]
726 [ivSize = 96]
1191 [ivSize = 128]
1392 [ivSize = 96]
1839 [ivSize = 128]
2040 [ivSize = 120]
2054 [ivSize = 160]
2068 [ivSize = 120]
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/
DDES.java328 private int ivSize; field in DES.DESPBEKeyFactory
337 int ivSize) in DESPBEKeyFactory() argument
345 this.ivSize = ivSize; in DESPBEKeyFactory()
370 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
378 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
397 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/
DDES.java328 private int ivSize; field in DES.DESPBEKeyFactory
337 int ivSize) in DESPBEKeyFactory() argument
345 this.ivSize = ivSize; in DESPBEKeyFactory()
370 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
378 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
397 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()

123