blob: f22c81267a61f6786d286dfbc2b5349c903bc304 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2014 The Chromium Authors
[email protected]446f73c22014-05-14 20:47:182// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "components/gcm_driver/system_encryptor.h"
6
Will Harris93d0dcd52023-03-14 23:38:477#include "components/os_crypt/sync/os_crypt.h"
[email protected]446f73c22014-05-14 20:47:188
9namespace gcm {
10
Sorin Jianu8883d292024-10-09 14:27:4011SystemEncryptor::~SystemEncryptor() = default;
[email protected]446f73c22014-05-14 20:47:1812
13bool SystemEncryptor::EncryptString(const std::string& plaintext,
14 std::string* ciphertext) {
edchin3398a8152022-05-16 17:23:1815 return ::OSCrypt::EncryptString(plaintext, ciphertext);
[email protected]446f73c22014-05-14 20:47:1816}
17
18bool SystemEncryptor::DecryptString(const std::string& ciphertext,
19 std::string* plaintext) {
edchin3398a8152022-05-16 17:23:1820 return ::OSCrypt::DecryptString(ciphertext, plaintext);
[email protected]446f73c22014-05-14 20:47:1821}
22
23} // namespace gcm