Debian Codegraph @

mlspp/include/mls/session.h

raw symbols SCIP
1 #cxx . . $ `<file>/mlspp/include/mls/session.h`/pragma once
2
3 #include <mls/common.h>cxx . . $ `<file>/mlspp/include/mls/common.h`/
4 #include <mls/core_types.h>cxx . . $ `<file>/mlspp/include/mls/core_types.h`/
5 #include <mls/credential.h>cxx . . $ `<file>/mlspp/include/mls/credential.h`/
6 #include <mls/crypto.h>cxx . . $ `<file>/mlspp/include/mls/crypto.h`/
7 #include <mls/state.h>cxx . . $ `<file>/mlspp/include/mls/state.h`/
8
9 namespace mlsppcxx . . $ mlspp/ {
10
11 class PendingJoincxx . . $ mlspp/PendingJoin#;
12 class Sessioncxx . . $ mlspp/Session#;
13
14 class Clientcxx . . $ mlspp/Client#
15 {
16 public:
17 Clientcxx . . $ mlspp/Client#Client(e1b65f719e256a5d).(CipherSuitecxx . . $ mlspp/CipherSuite# suite_in,
18 SignaturePrivateKeycxx . . $ mlspp/SignaturePrivateKey# sig_priv_in,
19 Credentialcxx . . $ mlspp/Credential# cred_in);
20
21 Sessioncxx . . $ mlspp/Session# begin_sessioncxx . . $ mlspp/Client#begin_session(8d8bcc04c5fd1007).(const bytescxx . . $ mlspp/bytes_ns/bytes#& group_id) const;
22
23 PendingJoincxx . . $ mlspp/PendingJoin# start_joincxx . . $ mlspp/Client#start_join(80aba4e6009c629c).() const;
24
25 private:
26 const CipherSuitecxx . . $ mlspp/CipherSuite# suitecxx . . $ mlspp/Client#suite.;
27 const SignaturePrivateKeycxx . . $ mlspp/SignaturePrivateKey# sig_privcxx . . $ mlspp/Client#sig_priv.;
28 const Credentialcxx . . $ mlspp/Credential# credcxx . . $ mlspp/Client#cred.;
29 };
30
31 class PendingJoincxx . . $ mlspp/PendingJoin#
32 {
33 public:
34 PendingJoincxx . . $ mlspp/PendingJoin#PendingJoin(66fe689790c5212a).(PendingJoincxx . . $ mlspp/PendingJoin#&& other) noexcept;
35 PendingJoincxx . . $ mlspp/PendingJoin#& operatorcxx . . $ mlspp/PendingJoin#`operator=`(bee7155b6c38152d).=(PendingJoincxx . . $ mlspp/PendingJoin#&& other) noexcept;
36 ~cxx . . $ mlspp/PendingJoin#`~PendingJoin`(ced63f7c635d850d).PendingJoincxx . . $ mlspp/PendingJoin#();
37 bytescxx . . $ mlspp/bytes_ns/bytes# key_packagecxx . . $ mlspp/PendingJoin#key_package(d7392ba79aa35767).() const;
38 Sessioncxx . . $ mlspp/Session# completecxx . . $ mlspp/PendingJoin#complete(8d8bcc04c5fd1007).(const bytescxx . . $ mlspp/bytes_ns/bytes#& welcome) const;
39
40 private:
41 struct Innercxx . . $ mlspp/PendingJoin#Inner#;
42 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Innercxx . . $ mlspp/PendingJoin#Inner#> innercxx . . $ mlspp/PendingJoin#inner.;
43
44 PendingJoincxx . . $ mlspp/PendingJoin#PendingJoin(acb4e0c1a30c9f27).(Innercxx . . $ mlspp/PendingJoin#Inner#* inner);
45 friend class Clientcxx . . $ mlspp/Client#;
46 };
47
48 class Sessioncxx . . $ mlspp/Session#
49 {
50 public:
51 Sessioncxx . . $ mlspp/Session#Session(d4ff7b29e24e0b3c).(Sessioncxx . . $ mlspp/Session#&& other) noexcept;
52 Sessioncxx . . $ mlspp/Session#& operatorcxx . . $ mlspp/Session#`operator=`(bb04ebce023303c1).=(Sessioncxx . . $ mlspp/Session#&& other) noexcept;
53 ~cxx . . $ mlspp/Session#`~Session`(ced63f7c635d850d).Sessioncxx . . $ mlspp/Session#();
54
55 // Settings
56 void encrypt_handshakecxx . . $ mlspp/Session#encrypt_handshake(b45ddcbc8423892c).(bool enabled);
57
58 // Message producers
59 bytescxx . . $ mlspp/bytes_ns/bytes# addcxx . . $ mlspp/Session#add(dfba7759a1cb6e97).(const bytescxx . . $ mlspp/bytes_ns/bytes#& key_package_data);
60 bytescxx . . $ mlspp/bytes_ns/bytes# updatecxx . . $ mlspp/Session#update(ca7897ad6b2c4824).();
61 bytescxx . . $ mlspp/bytes_ns/bytes# removecxx . . $ mlspp/Session#remove(3bf799d0b417da05).(uint32_tcxx . . $ uint32_t# index);
62 stdcxx . . $ std/::tuplecxx . . $ std/tuple#<bytescxx . . $ mlspp/bytes_ns/bytes#, bytescxx . . $ mlspp/bytes_ns/bytes#> commitcxx . . $ mlspp/Session#commit(de8c44e7c96b83a5).(const bytescxx . . $ mlspp/bytes_ns/bytes#& proposal);
63 stdcxx . . $ std/::tuplecxx . . $ std/tuple#<bytescxx . . $ mlspp/bytes_ns/bytes#, bytescxx . . $ mlspp/bytes_ns/bytes#> commitcxx . . $ mlspp/Session#commit(7bb89ffec2d8fe59).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<bytescxx . . $ mlspp/bytes_ns/bytes#>& proposals);
64 stdcxx . . $ std/::tuplecxx . . $ std/tuple#<bytescxx . . $ mlspp/bytes_ns/bytes#, bytescxx . . $ mlspp/bytes_ns/bytes#> commitcxx . . $ mlspp/Session#commit(a98c4a6c7c0c881c).();
65
66 // Message consumers
67 bool handlecxx . . $ mlspp/Session#handle(5324a0d004675752).(const bytescxx . . $ mlspp/bytes_ns/bytes#& handshake_data);
68
69 // Information about the current state
70 epoch_tcxx . . $ mlspp/epoch_t# epochcxx . . $ mlspp/Session#epoch(fe4d2d262d4164a8).() const;
71 LeafIndexcxx . . $ mlspp/LeafIndex# indexcxx . . $ mlspp/Session#index(80d08586c54e2b43).() const;
72 CipherSuitecxx . . $ mlspp/CipherSuite# cipher_suitecxx . . $ mlspp/Session#cipher_suite(17658033c3289662).() const;
73 const ExtensionListcxx . . $ mlspp/ExtensionList#& extensionscxx . . $ mlspp/Session#extensions(c8bb7beb367464e2).() const;
74 const TreeKEMPublicKeycxx . . $ mlspp/TreeKEMPublicKey#& treecxx . . $ mlspp/Session#tree(c9f2b9505afa0dfa).() const;
75 bytescxx . . $ mlspp/bytes_ns/bytes# do_exportcxx . . $ mlspp/Session#do_export(7012e37337977242).(const stdcxx . . $ std/::stringcxx . . $ std/string#& label,
76 const bytescxx . . $ mlspp/bytes_ns/bytes#& context,
77 size_t size) const;
78 GroupInfocxx . . $ mlspp/GroupInfo# group_infocxx . . $ mlspp/Session#group_info(7d4a8b166841cdad).() const;
79 stdcxx . . $ std/::vectorcxx . . $ std/vector#<LeafNodecxx . . $ mlspp/LeafNode#> rostercxx . . $ mlspp/Session#roster(e6c5b5c0a1adb3b2).() const;
80 bytescxx . . $ mlspp/bytes_ns/bytes# epoch_authenticatorcxx . . $ mlspp/Session#epoch_authenticator(d7392ba79aa35767).() const;
81
82 // Application message protection
83 bytescxx . . $ mlspp/bytes_ns/bytes# protectcxx . . $ mlspp/Session#protect(dfba7759a1cb6e97).(const bytescxx . . $ mlspp/bytes_ns/bytes#& plaintext);
84 bytescxx . . $ mlspp/bytes_ns/bytes# unprotectcxx . . $ mlspp/Session#unprotect(dfba7759a1cb6e97).(const bytescxx . . $ mlspp/bytes_ns/bytes#& ciphertext);
85
86 protected:
87 struct Innercxx . . $ mlspp/Session#Inner#;
88 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Innercxx . . $ mlspp/Session#Inner#> innercxx . . $ mlspp/Session#inner.;
89
90 Sessioncxx . . $ mlspp/Session#Session(115d991b8dafe68b).(Innercxx . . $ mlspp/Session#Inner#* inner);
91 friend class Clientcxx . . $ mlspp/Client#;
92 friend class PendingJoincxx . . $ mlspp/PendingJoin#;
93
94 friend bool operatorcxx . . $ mlspp/`operator==`(a380c757fead9107).==(const Sessioncxx . . $ mlspp/Session#& lhs, const Sessioncxx . . $ mlspp/Session#& rhs);
95 friend bool operatorcxx . . $ mlspp/`operator!=`(a380c757fead9107).!=(const Sessioncxx . . $ mlspp/Session#& lhs, const Sessioncxx . . $ mlspp/Session#& rhs);
96 };
97
98 } // namespace mlspp