7 #ifndef MEDIA_BASE_REQUEST_SIGNER_H_
8 #define MEDIA_BASE_REQUEST_SIGNER_H_
13 #include "packager/base/macros.h"
18 class AesCbcEncryptor;
30 std::string* signature) = 0;
32 const std::string& signer_name()
const {
return signer_name_; }
38 std::string signer_name_;
51 const std::string& aes_key_hex,
52 const std::string& iv_hex);
56 std::string* signature)
override;
60 std::unique_ptr<AesCbcEncryptor> encryptor);
62 std::unique_ptr<AesCbcEncryptor> aes_cbc_encryptor_;
75 const std::string& pkcs1_rsa_key);
79 std::string* signature)
override;
83 std::unique_ptr<RsaPrivateKey> rsa_private_key);
85 std::unique_ptr<RsaPrivateKey> rsa_private_key_;
93 #endif // MEDIA_BASE_REQUEST_SIGNER_H_