7 #ifndef MEDIA_BASE_REQUEST_SIGNER_H_
8 #define MEDIA_BASE_REQUEST_SIGNER_H_
14 #include "packager/base/macros.h"
19 class AesCbcEncryptor;
31 std::string* signature) = 0;
33 const std::string& signer_name()
const {
return signer_name_; }
39 std::string signer_name_;
52 const std::vector<uint8_t>& aes_key,
53 const std::vector<uint8_t>& iv);
57 std::string* signature)
override;
61 std::unique_ptr<AesCbcEncryptor> encryptor);
63 std::unique_ptr<AesCbcEncryptor> aes_cbc_encryptor_;
76 const std::string& pkcs1_rsa_key);
80 std::string* signature)
override;
84 std::unique_ptr<RsaPrivateKey> rsa_private_key);
86 std::unique_ptr<RsaPrivateKey> rsa_private_key_;
94 #endif // MEDIA_BASE_REQUEST_SIGNER_H_