Files
scylladb/ent/encryption/system_key.hh
Andrzej Jackowski f8156702de tree: add missing -present to copyright headers
~2076 files used "Copyright (C) YYYY-present ScyllaDB" while
~88 files used "Copyright (C) YYYY ScyllaDB". This
inconsistency leads to unnecessary code review discussions
and gradual spread of the less common format.

Standardize all ScyllaDB copyright headers to use -present.

Fixes SCYLLADB-1984

Closes scylladb/scylladb#29876
2026-05-21 10:57:42 +02:00

35 lines
659 B
C++

/*
* Copyright (C) 2015-present ScyllaDB
*
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
#include "encryption.hh"
#include "../../bytes.hh"
namespace encryption {
class symmetric_key;
class system_key {
public:
virtual ~system_key() {}
virtual future<shared_ptr<symmetric_key>> get_key() = 0;
virtual const sstring& name() const = 0;
virtual bool is_local() const = 0;
virtual future<> validate() const;
future<sstring> encrypt(const sstring&);
future<sstring> decrypt(const sstring&);
future<bytes> encrypt(const bytes&);
future<bytes> decrypt(const bytes&);
};
}