smg_comms_skeys_s... 1
smg_comms_skeys_s... 2
smg_comms_skeys_s... 3
smg_comms_skeys_s... 4
smg_comms_skeys_s... 5
smg_comms_skeys_s... 6
smg_comms_skeys_s... 7
smg_comms_skeys_s... 8
smg_comms_skeys_s... 9
smg_comms_skeys_s... 10
smg_comms_skeys_s... 11
smg_comms_skeys_s... 12
smg_comms_skeys_s... 13
smg_comms_skeys_s... 14 with Raw_Types;
smg_comms_skeys_s... 15 with RNG;
smg_comms_skeys_s... 16 with CRC32;
smg_comms_skeys_s... 17 with Data_Structs; use Data_Structs;
smg_comms_skeys_s... 18 with Interfaces;
smg_comms_skeys_s... 19
smg_comms_skeys_s... 20 package Messages is
smg_comms_skeys_s... 21
smg_comms_skeys_s... 22 Invalid_Msg: exception;
smg_comms_skeys_s... 23
smg_comms_keymgm 24
smg_comms_keymgm 25
smg_comms_keymgm 26
smg_comms_keymgm 27
smg_comms_keymgm 28
smg_comms_skeys_s... 29
smg_comms_skeys_s... 30
smg_comms_skeys_s... 31
smg_comms_skeys_s... 32
smg_comms_skeys_s... 33 procedure Write_SKeys_SMsg( Keyset : in Serpent_Keyset;
smg_comms_skeys_s... 34 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 35 Pad : in Raw_Types.Octets_8;
smg_comms_skeys_s... 36 Msg : out Raw_Types.Serpent_Msg);
smg_comms_skeys_s... 37
smg_comms_skeys_s... 38
smg_comms_skeys_s... 39
smg_comms_skeys_s... 40
smg_comms_skeys_s... 41 procedure Read_SKeys_SMsg( Msg : in Raw_Types.Serpent_Msg;
smg_comms_skeys_s... 42 Counter : out Interfaces.Unsigned_16;
smg_comms_skeys_s... 43 Keyset : out Serpent_Keyset);
smg_comms_skeys_s... 44
smg_comms_keymgm 45
smg_comms_keymgm 46
smg_comms_keymgm 47
smg_comms_keymgm 48
smg_comms_keymgm 49
smg_comms_keymgm 50 procedure Write_KMgm_SMsg( KMgm : in Keys_Mgm;
smg_comms_keymgm 51 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 52 Pad : in Raw_Types.Octets_8;
smg_comms_keymgm 53 Msg : out Raw_Types.Serpent_Msg);
smg_comms_keymgm 54
smg_comms_keymgm 55
smg_comms_keymgm 56
smg_comms_keymgm 57
smg_comms_keymgm 58 procedure Read_KMgm_SMsg( Msg : in Raw_Types.Serpent_Msg;
smg_comms_keymgm 59 Counter : out Interfaces.Unsigned_16;
smg_comms_keymgm 60 KMgm : out Keys_Mgm);
smg_comms_keymgm 61
smg_comms_files 62
smg_comms_files 63
smg_comms_files 64
smg_comms_files 65
smg_comms_actions... 66
smg_comms_files 67 procedure Write_File_Transfer( Chunk : in File_Chunk;
smg_comms_actions... 68 Pad : in Raw_Types.Octets_8;
smg_comms_files 69 Msg : out Raw_Types.Serpent_Msg);
smg_comms_files 70
smg_comms_files 71
smg_comms_files 72
smg_comms_files 73 procedure Read_File_Transfer( Msg : in Raw_Types.Serpent_Msg;
smg_comms_files 74 Chunk : out File_Chunk);
smg_comms_files 75
smg_comms_files 76
smg_comms_files 77
smg_comms_files 78
smg_comms_files 79
smg_comms_files 80
smg_comms_files 81
smg_comms_files 82 procedure Write_File_Request( FR : in Filenames;
smg_comms_files 83 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 84 Pad : in Raw_Types.Octets_8;
smg_comms_files 85 Msg : out Raw_Types.Serpent_Msg;
smg_comms_files 86 Written : out Natural);
smg_comms_keymgm 87
smg_comms_files 88
smg_comms_files 89
smg_comms_files 90 procedure Read_File_Request( Msg : in Raw_Types.Serpent_Msg;
smg_comms_files 91 Counter : out Interfaces.Unsigned_16;
smg_comms_files 92 FR : out Filenames);
smg_comms_keymgm 93
smg_comms_actions... 94
smg_comms_actions... 95
smg_comms_actions... 96 procedure Write_Action( A : in Raw_Types.Text_Octets;
smg_comms_actions... 97 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 98 Pad : in Raw_Types.Octets_8;
smg_comms_actions... 99 Msg : out Raw_Types.Serpent_Msg);
smg_comms_actions... 100
smg_comms_actions... 101
smg_comms_actions... 102 procedure Read_Action( Msg : in Raw_Types.Serpent_Msg;
smg_comms_actions... 103 Counter : out Interfaces.Unsigned_16;
smg_comms_actions... 104 A : out Raw_Types.Text_Octets);
smg_comms_actions... 105
smg_comms_keymgm 106
smg_comms_keymgm 107
smg_comms_keymgm 108
smg_comms_keymgm 109
smg_comms_keymgm 110
smg_comms_actions... 111
smg_comms_actions... 112
smg_comms_actions... 113
smg_comms_actions... 114
smg_comms_actions... 115 procedure Write_RKeys_RMsg( K : in Player_RSA;
smg_comms_actions... 116 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 117 Pad : in Raw_Types.Octets_8;
smg_comms_actions... 118 Msg : out Raw_Types.RSA_Msg);
smg_comms_actions... 119
smg_comms_actions... 120
smg_comms_actions... 121
smg_comms_actions... 122 procedure Read_RKeys_RMsg( Msg : in Raw_Types.RSA_Msg;
smg_comms_actions... 123 Counter : out Interfaces.Unsigned_16;
smg_comms_actions... 124 K : out Player_RSA);
smg_comms_actions... 125
smg_comms_keymgm 126
smg_comms_keymgm 127
smg_comms_keymgm 128
smg_comms_keymgm 129
smg_comms_keymgm 130 procedure Write_SKeys_RMsg( Keyset : in Serpent_Keyset;
smg_comms_keymgm 131 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 132 Pad : in Raw_Types.Octets_8;
smg_comms_keymgm 133 Msg : out Raw_Types.RSA_Msg);
smg_comms_keymgm 134
smg_comms_keymgm 135
smg_comms_keymgm 136
smg_comms_keymgm 137
smg_comms_keymgm 138 procedure Read_SKeys_RMsg( Msg : in Raw_Types.RSA_Msg;
smg_comms_keymgm 139 Counter : out Interfaces.Unsigned_16;
smg_comms_keymgm 140 Keyset : out Serpent_Keyset);
smg_comms_keymgm 141
smg_comms_keymgm 142
smg_comms_keymgm 143
smg_comms_keymgm 144
smg_comms_keymgm 145
smg_comms_keymgm 146
smg_comms_actions... 147
smg_comms_keymgm 148 procedure Write_KMgm_RMsg( KMgm : in Keys_Mgm;
smg_comms_keymgm 149 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 150 Pad : in Raw_Types.Octets_8;
smg_comms_keymgm 151 Msg : out Raw_Types.RSA_Msg);
smg_comms_keymgm 152
smg_comms_keymgm 153
smg_comms_keymgm 154
smg_comms_files 155
smg_comms_keymgm 156 procedure Read_KMgm_RMsg( Msg : in Raw_Types.RSA_Msg;
smg_comms_keymgm 157 Counter : out Interfaces.Unsigned_16;
smg_comms_keymgm 158 KMgm : out Keys_Mgm);
smg_comms_keymgm 159
smg_comms_keymgm 160
smg_comms_files 161
smg_comms_files 162
smg_comms_files 163 procedure String_To_Octets(Str: in String; O: out Raw_Types.Octets);
smg_comms_files 164
smg_comms_files 165
smg_comms_files 166
smg_comms_files 167 procedure Octets_To_String(O: in Raw_Types.Octets; Str: out String);
smg_comms_files 168
smg_comms_actions... 169
smg_comms_actions... 170 RNG_PAD: constant Raw_Types.Octets_8 := ( 16#00#, 16#00#, 16#00#, 16#00#,
smg_comms_actions... 171 16#13#, 16#37#, 16#00#, 16#00#);
smg_comms_actions... 172
smg_comms_skeys_s... 173 private
smg_comms_skeys_s... 174
smg_comms_skeys_s... 175
smg_comms_skeys_s... 176
smg_comms_skeys_s... 177
smg_comms_skeys_s... 178 procedure Cast_LE( LE: in out Raw_Types.Octets );
smg_comms_skeys_s... 179
smg_comms_files 180
smg_comms_files 181 F_Sep: constant String := ";";
smg_comms_files 182 Sep: constant Interfaces.Unsigned_8 := 16#3B#;
smg_comms_files 183
smg_comms_skeys_s... 184
smg_comms_skeys_s... 185
smg_comms_skeys_s... 186
smg_comms_skeys_s... 187
smg_comms_skeys_s... 188
smg_comms_skeys_s... 189
smg_comms_skeys_s... 190 SKeys_S_Type : constant Interfaces.Unsigned_8 := 1;
smg_comms_skeys_s... 191 Key_Mgm_S_Type : constant Interfaces.Unsigned_8 := 2;
smg_comms_skeys_s... 192 File_Transfer_S_Type : constant Interfaces.Unsigned_8 := 3;
smg_comms_skeys_s... 193 File_Req_S_Type : constant Interfaces.Unsigned_8 := 4;
smg_comms_skeys_s... 194 Client_Action_S_Type : constant Interfaces.Unsigned_8 := 5;
smg_comms_skeys_s... 195 World_Bulletin_S_Type: constant Interfaces.Unsigned_8 := 6;
smg_comms_skeys_s... 196 Obj_Request_S_Type : constant Interfaces.Unsigned_8 := 7;
smg_comms_skeys_s... 197 Obj_Info_S_Type : constant Interfaces.Unsigned_8 := 8;
smg_comms_skeys_s... 198
smg_comms_skeys_s... 199
smg_comms_skeys_s... 200 RKeys_R_Type : constant Interfaces.Unsigned_8 := 251;
smg_comms_skeys_s... 201 SKeys_R_Type : constant Interfaces.Unsigned_8 := 157;
smg_comms_skeys_s... 202 Key_Mgm_R_Type : constant Interfaces.Unsigned_8 := 233;
smg_comms_skeys_s... 203
smg_comms_skeys_s... 204
smg_comms_skeys_s... 205 Lock_A_Type : constant Interfaces.Unsigned_8 := 0;
smg_comms_skeys_s... 206 Make_A_Type : constant Interfaces.Unsigned_8 := 1;
smg_comms_skeys_s... 207 Explore_A_Type : constant Interfaces.Unsigned_8 := 2;
smg_comms_skeys_s... 208 Exchange_A_Type : constant Interfaces.Unsigned_8 := 3;
smg_comms_skeys_s... 209 Attack_A_Type : constant Interfaces.Unsigned_8 := 4;
smg_comms_skeys_s... 210 Repair_A_Type : constant Interfaces.Unsigned_8 := 5;
smg_comms_skeys_s... 211 Move_A_Type : constant Interfaces.Unsigned_8 := 6;
smg_comms_skeys_s... 212 Train_A_Type : constant Interfaces.Unsigned_8 := 7;
smg_comms_skeys_s... 213
smg_comms_keymgm 214
smg_comms_keymgm 215
smg_comms_keymgm 216
smg_comms_keymgm 217
smg_comms_keymgm 218
smg_comms_keymgm 219 procedure Write_SKeys( Keyset : in Serpent_Keyset;
smg_comms_keymgm 220 Counter : in Interfaces.Unsigned_16;
smg_comms_keymgm 221 Type_ID : in Interfaces.Unsigned_8;
smg_comms_actions... 222 Pad : in Raw_Types.Octets_8;
smg_comms_keymgm 223 Msg : out Raw_Types.Octets);
smg_comms_keymgm 224
smg_comms_keymgm 225
smg_comms_keymgm 226 procedure Read_SKeys( Msg : in Raw_Types.Octets;
smg_comms_keymgm 227 Counter : out Interfaces.Unsigned_16;
smg_comms_keymgm 228 Keyset : out Serpent_Keyset);
smg_comms_keymgm 229
smg_comms_keymgm 230
smg_comms_keymgm 231
smg_comms_keymgm 232
smg_comms_keymgm 233
smg_comms_keymgm 234
smg_comms_keymgm 235
smg_comms_keymgm 236 procedure Write_KMgm( KMgm : in Keys_Mgm;
smg_comms_keymgm 237 Counter : in Interfaces.Unsigned_16;
smg_comms_keymgm 238 Type_ID : in Interfaces.Unsigned_8;
smg_comms_actions... 239 Pad : in Raw_Types.Octets_8;
smg_comms_keymgm 240 Msg : out Raw_Types.Octets);
smg_comms_keymgm 241
smg_comms_keymgm 242
smg_comms_keymgm 243 procedure Read_KMgm( Msg : in Raw_Types.Octets;
smg_comms_keymgm 244 Counter : out Interfaces.Unsigned_16;
smg_comms_keymgm 245 KMgm : out Keys_Mgm);
smg_comms_keymgm 246
smg_comms_files 247
smg_comms_files 248
smg_comms_files 249
smg_comms_files 250
smg_comms_files 251
smg_comms_files 252
smg_comms_files 253
smg_comms_files 254
smg_comms_files 255 procedure Write_U16( Msg: in out Raw_Types.Octets;
smg_comms_files 256 Pos: in out Natural;
smg_comms_files 257 U16: in Interfaces.Unsigned_16);
smg_comms_files 258
smg_comms_files 259
smg_comms_files 260
smg_comms_files 261
smg_comms_files 262
smg_comms_files 263
smg_comms_files 264 procedure Read_U16( Msg: in Raw_Types.Octets;
smg_comms_files 265 Pos: in out Natural;
smg_comms_files 266 U16: out Interfaces.Unsigned_16);
smg_comms_actions... 267
smg_comms_actions... 268
smg_comms_actions... 269
smg_comms_actions... 270
smg_comms_actions... 271
smg_comms_actions... 272
smg_comms_actions... 273
smg_comms_actions... 274
smg_comms_actions... 275
smg_comms_actions... 276 procedure Write_End( Msg : in out Raw_Types.Octets;
smg_comms_actions... 277 Pos : in out Natural;
smg_comms_actions... 278 Counter : in Interfaces.Unsigned_16;
smg_comms_actions... 279 Padding : in Raw_Types.Octets_8);
smg_comms_skeys_s... 280 end Messages;