Virgil Security Crypto library  2.4.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
VirgilPFSSession.h
1 
37 #ifndef VIRGIL_CRYPTO_PFS_VIRGIL_PFS_SESSION_H
38 #define VIRGIL_CRYPTO_PFS_VIRGIL_PFS_SESSION_H
39 
40 #include "../VirgilByteArray.h"
41 
42 #include <string>
43 
44 namespace virgil { namespace crypto { namespace pfs {
45 
46 class VirgilPFS;
47 
57 public:
62 
70  VirgilByteArray identifier, VirgilByteArray encryptionSecretKey,
71  VirgilByteArray decryptionSecretKey, VirgilByteArray additionalData);
72 
76  bool isEmpty() const;
77 
82  const VirgilByteArray& getIdentifier() const;
83 
89 
95 
100  const VirgilByteArray& getAdditionalData() const;
101 
102 private:
103  friend VirgilPFS;
104  VirgilByteArray identifier_;
105  VirgilByteArray encryptionSecretKey_;
106  VirgilByteArray decryptionSecretKey_;
107  VirgilByteArray additionalData_;
108 };
109 
110 }}}
111 
112 #endif //VIRGIL_CRYPTO_PFS_VIRGIL_PFS_SESSION_H
This is model object that represent session in PFS communication.
Definition: VirgilPFSSession.h:56
const VirgilByteArray & getDecryptionSecretKey() const
Getter.
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:50
const VirgilByteArray & getEncryptionSecretKey() const
Getter.
const VirgilByteArray & getIdentifier() const
Getter.
This is the main entry for the all Perfect Forward Secrecy (PFS) Modules.
Definition: VirgilPFS.h:62
const VirgilByteArray & getAdditionalData() const
Getter.
VirgilPFSSession()
Create empty session.