Skip to content

Commit

Permalink
inititalize IV with random value
Browse files Browse the repository at this point in the history
  • Loading branch information
sannies committed Oct 24, 2014
1 parent 408b159 commit 6afc5b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public long[] put(GroupEntry key, long[] value) {
this.cencSampleAuxiliaryData = new ArrayList<CencSampleAuxiliaryDataFormat>();

BigInteger one = new BigInteger("1");
byte[] init = new byte[]{};
BigInteger ivInt = new BigInteger(1, new byte[]{0, 0, 0, 0, 0, 0, 0, 0});
byte[] init = new byte[]{0, 0, 0, 0, 0, 0, 0, 0};

if (!dummyIvs) {
Random random = new SecureRandom();
random.nextBytes(init);
}

BigInteger ivInt = new BigInteger(1, init);

List<CencSampleEncryptionInformationGroupEntry> groupEntries =
new ArrayList<CencSampleEncryptionInformationGroupEntry>();
Expand Down

0 comments on commit 6afc5b9

Please sign in to comment.