Home
last modified time | relevance | path

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

12

/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/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.java22 int ivSize; field in BCPBEKey
36 int ivSize, in BCPBEKey() argument
45 this.ivSize = ivSize; in BCPBEKey()
118 return ivSize; in getIvSize()
DPBE.java242 int ivSize, in makePBEParameters() argument
264 if (ivSize != 0) in makePBEParameters()
266 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
440 int ivSize) in makePBEParameters() argument
450 if (ivSize != 0) in makePBEParameters()
452 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
DBaseWrapCipher.java77 private int ivSize; field in BaseWrapCipher
99 int ivSize) in BaseWrapCipher() argument
102 this.ivSize = ivSize; in BaseWrapCipher()
229 if (param instanceof KeyParameter && ivSize != 0) in engineInit()
233 iv = new byte[ivSize]; in engineInit()
/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.java26 int ivSize; field in BCPBEKey
40 int ivSize, in BCPBEKey() argument
49 this.ivSize = ivSize; in BCPBEKey()
122 return ivSize; in getIvSize()
DPBE.java246 int ivSize, in makePBEParameters() argument
268 if (ivSize != 0) in makePBEParameters()
270 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
444 int ivSize) in makePBEParameters() argument
454 if (ivSize != 0) in makePBEParameters()
456 param = generator.generateDerivedParameters(keySize, ivSize); in makePBEParameters()
DBaseWrapCipher.java81 private int ivSize; field in BaseWrapCipher
103 int ivSize) in BaseWrapCipher() argument
106 this.ivSize = ivSize; in BaseWrapCipher()
233 if (param instanceof KeyParameter && ivSize != 0) in engineInit()
237 iv = new byte[ivSize]; in engineInit()
/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/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.java118 int ivSize) in generateDerivedParameters() argument
121 ivSize = ivSize / 8; in generateDerivedParameters()
123 byte[] dKey = generateDerivedKey(keySize + ivSize); in generateDerivedParameters()
125 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/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/boringssl/src/third_party/wycheproof_testvectors/
Daes_gcm_test.txt7 [ivSize = 96]
418 [ivSize = 64]
441 [ivSize = 128]
654 [ivSize = 96]
1056 [ivSize = 128]
1260 [ivSize = 96]
1644 [ivSize = 128]
1848 [ivSize = 120]
1862 [ivSize = 160]
1876 [ivSize = 64]
[all …]
/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcphash_digest.c68 int ivSize = pAttr->ivSize; /* size of hash's IV */ in cpComputeDigest() local
79 CopyBlock(HASH_VALUE(pCtx), hash, ivSize); in cpComputeDigest()
Dpcphashmessage.c100 int ivSize = pAttr->ivSize; /* size of hash's IV */ variable
118 CopyBlock(iv, hash, ivSize);
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DAES256SHA256Decoder.java47 final int ivSize = ((byte0 >> 6) & 1) + (byte1 & 0x0f); in decode() local
49 if (2 + saltSize + ivSize > coder.properties.length) { in decode()
55 System.arraycopy(coder.properties, 2 + saltSize, iv, 0, ivSize); in decode()

12