// A fake implemetation of EasyUnlockClient.
class CHROMEOS_EXPORT FakeEasyUnlockClient : public EasyUnlockClient {
public:
+ // Tests if the provided keys belong to the same (fake) EC P256 key pair
+ // generated by |this|.
+ static bool IsEcP256KeyPair(const std::string& private_key,
+ const std::string& public_key);
+
FakeEasyUnlockClient();
virtual ~FakeEasyUnlockClient();
const std::string& public_key,
const DataCallback& callback) OVERRIDE;
virtual void CreateSecureMessage(const std::string& payload,
- const std::string& secret_key,
- const std::string& associated_data,
- const std::string& public_metadata,
- const std::string& verification_key_id,
- const std::string& encryption_type,
- const std::string& signature_type,
+ const CreateSecureMessageOptions& options,
const DataCallback& callback) OVERRIDE;
virtual void UnwrapSecureMessage(const std::string& message,
- const std::string& secret_key,
- const std::string& associated_data,
- const std::string& encryption_type,
- const std::string& signature_type,
+ const UnwrapSecureMessageOptions& options,
const DataCallback& callback) OVERRIDE;
private:
+ int generated_keys_count_;
+
DISALLOW_COPY_AND_ASSIGN(FakeEasyUnlockClient);
};