10 #ifndef PACKAGER_MEDIA_BASE_RSA_KEY_H_ 11 #define PACKAGER_MEDIA_BASE_RSA_KEY_H_ 15 #include "packager/base/macros.h" 18 typedef struct rsa_st RSA;
35 bool Decrypt(
const std::string& encrypted_message,
36 std::string* decrypted_message);
64 bool Encrypt(
const std::string& clear_message,
65 std::string* encrypted_message);
69 bool VerifySignature(
const std::string& message,
70 const std::string& signature);
84 #endif // PACKAGER_MEDIA_BASE_RSA_KEY_H_
All the methods that are virtual are virtual for mocking.