CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
rfc_2898_derive_bytes.h
1
2#pragma once
3
4#include <security/cryptography/derive_bytes.h>
5
6
7namespace Botan {
9ASPOSECPP_3RD_PARTY_CLASS(PBKDF);
10}
11
12namespace System { namespace Security { namespace Cryptography {
13
18class ASPOSECPP_SHARED_CLASS Rfc2898DeriveBytes : public DeriveBytes
19{
21 RTTI_INFO(System::Security::Cryptography::Rfc2898DeriveBytes, ::System::BaseTypesInfo<System::Security::Cryptography::DeriveBytes>)
22public:
24 ASPOSECPP_SHARED_API Rfc2898DeriveBytes(ArrayPtr<uint8_t> password, ArrayPtr<uint8_t>salt, int32_t iterations);
27 virtual ASPOSECPP_SHARED_API ArrayPtr<uint8_t> GetBytes(int32_t cb) override;
28 // Resets the state of the operation.
29 virtual ASPOSECPP_SHARED_API void Reset() override;
30private:
31 ArrayPtr<uint8_t> m_password;
32 ArrayPtr<uint8_t> m_salt;
33 int32_t m_iterations;
34 std::unique_ptr<Botan::PBKDF> m_pbkdf;
35 std::size_t m_derived;
36};
37
38}}}
Abstract class from which all classes that derive byte sequences of a specified length inherit....
Definition: derive_bytes.h:14
Implements password-based key derivation, PBKDF2. Objects of this class should only be allocated usin...
Definition: rfc_2898_derive_bytes.h:19
Rfc2898DeriveBytes(ArrayPtr< uint8_t > password, ArrayPtr< uint8_t >salt, int32_t iterations)
RTTI information.
virtual ArrayPtr< uint8_t > GetBytes(int32_t cb) override
Fills existing array elements with pseudo-random key bytes.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9