/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/openssl/crypto/rsa.h
34 строки
831 B
bulatman
Remove extra semicolon (library)
10 июн 2023, 13:55
10 июн 2023, 13:55
4683e3d
Код
Авторство
О чём код?
#pragma once #include <util/generic/utility.h> #include <util/generic/noncopyable.h> struct rsa_st; namespace NOpenSsl { class TBigInteger; namespace NRsa { class TPublicKey: public TNonCopyable { public: inline TPublicKey(TPublicKey&& other) noexcept { Swap(other); } TPublicKey(const TBigInteger& e, const TBigInteger& n); ~TPublicKey() noexcept; size_t OutputLength() const noexcept; TBigInteger EncryptNoPad(const TBigInteger& src) const; size_t EncryptNoPad(void* dst, const void* src, size_t size) const; inline void Swap(TPublicKey& other) noexcept { DoSwap(Key_, other.Key_); } private: rsa_st* Key_ = nullptr; }; } }