Fixes to CMAF output
This commit is contained in:
parent
e217f41f17
commit
a8e04e1787
7 changed files with 69 additions and 84 deletions
|
@ -1262,11 +1262,11 @@ namespace Mist{
|
|||
}
|
||||
if (encryption.substr(0, encryption.find('/')) == "CTR128"){
|
||||
DTSC::Packet encPacket = aesCipher.encryptPacketCTR(
|
||||
M, thisPacket, M.getIvec(idx) + M.getPartIndex(thisPacket, idx), idx);
|
||||
M, thisPacket, M.getIvec(idx) + M.getPartIndex(thisPacket.getTime(), idx), idx);
|
||||
thisPacket = encPacket;
|
||||
}else if (encryption.substr(0, encryption.find('/')) == "CBC128"){
|
||||
char ivec[] ={0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
Bit::htobll(ivec + 8, M.getIvec(idx) + M.getPartIndex(thisPacket, idx));
|
||||
Bit::htobll(ivec + 8, M.getIvec(idx) + M.getPartIndex(thisPacket.getTime(), idx));
|
||||
DTSC::Packet encPacket = aesCipher.encryptPacketCBC(M, thisPacket, ivec, idx);
|
||||
thisPacket = encPacket;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue