NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
symmetric_crypto_key_interface.h
Go to the documentation of this file.
1 #ifndef SDK_CRYPT_SYMMETRIC_CRYPTO_KEY_INTERFACE_H_
11 #define SDK_CRYPT_SYMMETRIC_CRYPTO_KEY_INTERFACE_H_
12 
13 #include <base/inc/platform.h>
14 #include <base/inc/sdk_results.h>
15 #include <base/inc/sdk_ref_ptr.h>
18 #include <base/inc/forward_declarations.h>
20 
21 SDK_BEGIN_NAMESPACE
22 namespace crypt {
23 
24 const SDKUInt32 kBlowfishKeyLengthMax = 56;
25 const SDKUInt32 kBlowfishKeyLengthMin = 4;
26 
29 typedef SDKArray SymmetricCryptoKeyData;
30 
32 typedef ISymmetricCryptoKeySP SymmetricCryptoKeySP;
33 
37 {
38  public:
40  virtual SDKResult SDK_CALLTYPE SetKey(
41  const SymmetricCryptoKeyData& key) throw() = 0;
42 
44  virtual SDKResult SDK_CALLTYPE GetKey(
45  SymmetricCryptoKeyData& key) const throw() = 0;
46 
48  SDK_IMPLEMENT_IID(ISymmetricCryptoKey)
49  SDK_END_INTERFACE(ISymmetricCryptoKey)
50 };
51 SDK_DECLARE_IID(ISymmetricCryptoKey)
52 
53 } // namespace crypt
54 SDK_END_NAMESPACE
55 
56 #endif // SDK_CRYPT_SYMMETRIC_CRYPTO_KEY_INTERFACE_H_
crypt::SymmetricCryptoKeyData
SDKArray SymmetricCryptoKeyData
ISymmetric cryptographic key data.
Definition: symmetric_crypto_key_interface.h:29
sdk_results.h
A list of SDK error/return results.
sdk_ref_ptr.h
Interfaces wrapper with reference count control.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
crypt::ISymmetricCryptoKey::SetKey
virtual SDKResult SDK_CALLTYPE SetKey(const SymmetricCryptoKeyData &key)=0
Sets new cryptographic key.
sdk_component_interface.h
Common base SDK interfaces.
crypto_key_interface.h
Base cryptographic key interface.
crypt::ISymmetricCryptoKey::GetKey
virtual SDKResult SDK_CALLTYPE GetKey(SymmetricCryptoKeyData &key) const =0
Returns the previous defined cryptographic key.
platform.h
Describes the platform constants.
crypt::ISymmetricCryptoKey
Interface for symmetric cryptographic key implementation.
Definition: symmetric_crypto_key_interface.h:36
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
crypt::ICryptoKey
Base cryptographic key interface.
Definition: crypto_key_interface.h:26
sdk_array_handler.h
Wrapper for handling the SDKArray instance.