OpenDDS  Snapshot(2023/04/28-20:55)
Utility.h
Go to the documentation of this file.
1 /*
2 *
3 *
4 * Distributed under the OpenDDS License.
5 * See: http://www.OpenDDS.org/license.html
6 */
7 
8 #ifndef OPENDDS_DCPS_SECURITY_UTILITY_H
9 #define OPENDDS_DCPS_SECURITY_UTILITY_H
10 
12 #include "TokenReader.h"
13 
15 #include <dds/DCPS/RcObject.h>
17 
18 #include <dds/DdsSecurityCoreC.h>
19 
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 
25 
26 namespace OpenDDS {
27 namespace Security {
28 
30 public:
31  virtual ~Utility() {}
32  virtual void generate_random_bytes(void* ptr, size_t size) = 0;
33  virtual void hmac(void* out, void const* in, size_t size, const std::string& password) const = 0;
34 };
35 
36 } // namespace Security
37 } // namespace OpenDDS
38 
40 
41 #endif
#define OpenDDS_Security_Export
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28