123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- #ifndef _FASTDDS_RTPS_SECURITY_CRYPTOGRAPHY_CRYPTOKEYEXCHANGE_H_
- #define _FASTDDS_RTPS_SECURITY_CRYPTOGRAPHY_CRYPTOKEYEXCHANGE_H_
- #include <fastdds/rtps/security/cryptography/CryptoTypes.h>
- namespace eprosima {
- namespace fastrtps {
- namespace rtps {
- namespace security {
- class CryptoKeyExchange
- {
- public:
- virtual ~CryptoKeyExchange(){}
-
- virtual bool create_local_participant_crypto_tokens(
- ParticipantCryptoTokenSeq& local_participant_crypto_tokens,
- const ParticipantCryptoHandle& local_participant_crypto,
- ParticipantCryptoHandle& remote_participant_crypto,
- SecurityException& exception) = 0;
-
- virtual bool set_remote_participant_crypto_tokens(
- const ParticipantCryptoHandle &local_participant_crypto,
- ParticipantCryptoHandle &remote_participant_crypto,
- const ParticipantCryptoTokenSeq &remote_participant_tokens,
- SecurityException &exception) = 0;
-
- virtual bool create_local_datawriter_crypto_tokens(
- DatawriterCryptoTokenSeq &local_datawriter_crypto_tokens,
- DatawriterCryptoHandle &local_datawriter_crypto,
- DatareaderCryptoHandle &remote_datareader_crypto,
- SecurityException &exception) = 0;
-
- virtual bool create_local_datareader_crypto_tokens(
- DatareaderCryptoTokenSeq &local_datareader_crypto_tokens,
- DatareaderCryptoHandle &local_datareader_crypto,
- DatawriterCryptoHandle &remote_datawriter_crypto,
- SecurityException &exception) = 0;
-
- virtual bool set_remote_datareader_crypto_tokens(
- DatawriterCryptoHandle &local_datawriter_crypto,
- DatareaderCryptoHandle &remote_datareader_crypto,
- const DatareaderCryptoTokenSeq &remote_datareader_tokens,
- SecurityException &exception) = 0;
-
- virtual bool set_remote_datawriter_crypto_tokens(
- DatareaderCryptoHandle &local_datareader_crypto,
- DatawriterCryptoHandle &remote_datawriter_crypto,
- const DatawriterCryptoTokenSeq &remote_datawriter_tokens,
- SecurityException &exception) = 0;
-
- virtual bool return_crypto_tokens(
- const CryptoTokenSeq &crypto_tokens,
- SecurityException &exception) = 0;
- };
- }
- }
- }
- }
- #endif
|