9 #ifndef PACKAGER_MEDIA_BASE_AES_DECRYPTOR_H_
10 #define PACKAGER_MEDIA_BASE_AES_DECRYPTOR_H_
14 #include "packager/base/macros.h"
15 #include "packager/media/base/aes_cryptor.h"
16 #include "packager/media/base/aes_encryptor.h"
18 namespace edash_packager {
22 using AesCtrDecryptor = AesCtrEncryptor;
32 AesCbcDecryptor(CbcPaddingScheme padding_scheme,
bool chain_across_calls);
38 const std::vector<uint8_t>&
iv)
override;
39 bool SetIv(
const std::vector<uint8_t>& iv)
override;
46 bool CryptInternal(
const uint8_t* ciphertext,
47 size_t ciphertext_size,
49 size_t* plaintext_size)
override;
51 const CbcPaddingScheme padding_scheme_;
52 const bool chain_across_calls_;
60 #endif // PACKAGER_MEDIA_BASE_AES_DECRYPTOR_H_