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" 22 using AesCtrDecryptor = AesCtrEncryptor;
41 ConstantIvFlag constant_iv_flag);
48 const std::vector<uint8_t>&
iv)
override;
52 bool CryptInternal(
const uint8_t* ciphertext,
53 size_t ciphertext_size,
55 size_t* plaintext_size)
override;
56 void SetIvInternal()
override;
58 const CbcPaddingScheme padding_scheme_;
60 std::vector<uint8_t> internal_iv_;
68 #endif // PACKAGER_MEDIA_BASE_AES_DECRYPTOR_H_
All the methods that are virtual are virtual for mocking.