![]() |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
Allows to read/write private/public crypto-keys data from/to stream as well as to store certificates, etc. More...
#include <asymmetric_crypto_key_reader_writer_interface.h>
Public Member Functions | |
| virtual SDKResult SDK_CALLTYPE | SavePrivateKey (const PrivateCryptoKeySP &private_key, const base::SDKStreamSP &output_stream) const =0 throw () |
| Stores the private key data to stream Output file format depends of private key type (S-63 format only for now) | |
| virtual SDKResult SDK_CALLTYPE | LoadPrivateKey (const base::SDKStreamSP &source_stream, PrivateCryptoKeySP &private_key) const =0 throw () |
| Loads the private key data from stream Supports only S-63 private key format for now. | |
| virtual SDKResult SDK_CALLTYPE | SavePublicKey (const PublicCryptoKeySP &public_key, const base::SDKStreamSP &output_stream) const =0 throw () |
| Stores the public key data to stream Output file format depends of public key type (S-63 only for now) | |
| virtual SDKResult SDK_CALLTYPE | LoadPublicKey (const base::SDKStreamSP &source_stream, PublicCryptoKeySP &public_key) const =0 throw () |
| Loads the public key data from stream Supports only S-63 public key format for now. | |
| virtual SDKResult SDK_CALLTYPE | SaveDigitalCertificate (const DigitalCertificateSP &certificate, const base::SDKStreamSP &output_stream) const =0 throw () |
| Stores the digital certificate data to stream Output file format depends of certificate type (PEM/DER/S-63 text format) | |
| virtual SDKResult SDK_CALLTYPE | LoadDigitalCertificate (const base::SDKStreamSP &source_stream, DigitalCertificateSP &certificate) const =0 throw () |
| Loads the digital certificate data from stream Supports PEM/DER/S-63 encoded certificates. | |
| virtual SDKResult SDK_CALLTYPE | SaveDataSignature (const DataSignatureSP &data_signature, const base::SDKStreamSP &output_stream) const =0 throw () |
| Stores the data signature object to stream Output file format depends of data signature type (S-63 only for now) | |
| virtual SDKResult SDK_CALLTYPE | LoadDataSignature (const base::SDKStreamSP &source_stream, DataSignatureSP &data_signature) const =0 throw () |
| Loads the data signature from stream Supports only S-63 data signature format for now. | |
| virtual SDKResult SDK_CALLTYPE | LoadDSADataSignature (const DigitalCertificateSP &digital_certificate, const SDKString &pem_or_hex_encoded_dsa_signature, const DigitalSignatureAlgorithm &signature_algorithm, DataSignatureSP &data_signature) const =0 throw () |
| Loads DSA based data signature from PEM or HEX encoded string pem_or_hex_encoded_dsa_signature - PEM/HEX encoded DSA signature R/S parts, example: PEM - MCwCFDmtsOmAcZOGR0FDaihPpw7qS22aAhRpEQbGEMh7wYZzViCiV8WtYMw1yw== HEX - 302C021433796C6647CC1C55A67DC72FA7C6E157A6594B2B02145D3768B44F3A6ABA11A77178B738AD3B6A0DE344. More... | |
Public Member Functions inherited from ISDKComponent | |
| virtual SDKAtomicRefCount SDK_CALLTYPE | AddRef () const =0 throw () |
| Increments the reference count for an interface on a component. | |
| virtual SDKAtomicRefCount SDK_CALLTYPE | Release () const =0 throw () |
| Decrements the reference count for an interface on a component. | |
| virtual SDKResult SDK_CALLTYPE | GetInterface (const InterfaceId &id, void **obj_ptr)=0 throw () |
| Returns pointers to the supported interfaces on a component. | |
| template<typename _Itf > | |
| SDKResult | GetInterface (_Itf **obj_ptr) throw () |
| Returns pointers to the supported interfaces on a component. | |
Allows to read/write private/public crypto-keys data from/to stream as well as to store certificates, etc.
|
pure virtual | ||||||||||||||||||||||||||||
Loads DSA based data signature from PEM or HEX encoded string pem_or_hex_encoded_dsa_signature - PEM/HEX encoded DSA signature R/S parts, example: PEM - MCwCFDmtsOmAcZOGR0FDaihPpw7qS22aAhRpEQbGEMh7wYZzViCiV8WtYMw1yw== HEX - 302C021433796C6647CC1C55A67DC72FA7C6E157A6594B2B02145D3768B44F3A6ABA11A77178B738AD3B6A0DE344.
Supports DSA1024/SHA256 and DSA2048/SHA256 DSA signatures