diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/mbedTLS++/RsaPrivateKey.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2 cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip |
Diffstat (limited to 'src/mbedTLS++/RsaPrivateKey.h')
-rw-r--r-- | src/mbedTLS++/RsaPrivateKey.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mbedTLS++/RsaPrivateKey.h b/src/mbedTLS++/RsaPrivateKey.h index 33a016edc..1b02edd47 100644 --- a/src/mbedTLS++/RsaPrivateKey.h +++ b/src/mbedTLS++/RsaPrivateKey.h @@ -21,7 +21,7 @@ class cRsaPrivateKey { friend class cSslContext; -public: + public: /** Creates a new empty object, the key is not assigned */ cRsaPrivateKey(void); @@ -42,7 +42,7 @@ public: Returns the number of bytes decrypted, or negative number for error. */ int Decrypt(ContiguousByteBufferView a_EncryptedData, Byte * a_DecryptedData, size_t a_DecryptedMaxLength); -protected: + protected: /** The mbedTLS key context */ mbedtls_rsa_context m_Rsa; @@ -52,11 +52,6 @@ protected: /** Returns the internal context ptr. Only use in mbedTLS API calls. */ mbedtls_rsa_context * GetInternal(void) { return &m_Rsa; } -} ; +}; typedef std::shared_ptr<cRsaPrivateKey> cRsaPrivateKeyPtr; - - - - - |