Debian Codegraph @

netgames/dmfc/encryption.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/dmfc/encryption.h $
21 * $Revision: 1.1.1.1 $
22 * $Date: 2003/08/26 03:57:21 $
23 * $Author: kevinb $
24 *
25 * header file for ICE encryption class
26 *
27 * $Log: encryption.h,v $
28 * Revision 1.1.1.1 2003/08/26 03:57:21 kevinb
29 * initial 1.5 import
30 *
31 *
32 * 2 7/08/99 2:37a Jeff
33 * created encryption class based off of ICE encryption
34 *
35 * $NoKeywords: $
36 */
37
38 #ifndef __ICEENCRYPT_H_
39 #define __ICEENCRYPT_H_cxx . . $ `netgames/dmfc/encryption.h:39:9`!
40
41 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
42
43 class IceSubkeycxx . . $ IceSubkey#;
44
45 class IceKeycxx . . $ IceKey# {
46 public:
47 IceKeycxx . . $ IceKey#IceKey(d4f767463ce0a6b3).(int n);
48 ~cxx . . $ IceKey#`~IceKey`(ced63f7c635d850d).IceKeycxx . . $ IceKey#();
49
50 void setcxx . . $ IceKey#set(28caea9380bfac8a).(const uint8_tcxx . . $ uint8_t# *key);
51
52 void encryptcxx . . $ IceKey#encrypt(a18788b04e8c2902).(const uint8_tcxx . . $ uint8_t# *plaintext, uint8_tcxx . . $ uint8_t# *ciphertext) const;
53 void decryptcxx . . $ IceKey#decrypt(a18788b04e8c2902).(const uint8_tcxx . . $ uint8_t# *ciphertext, uint8_tcxx . . $ uint8_t# *plaintext) const;
54
55 int keySizecxx . . $ IceKey#keySize(455f465bc33b4cdf).(void) const;
56 int blockSizecxx . . $ IceKey#blockSize(455f465bc33b4cdf).(void) const;
57
58 private:
59 void scheduleBuildcxx . . $ IceKey#scheduleBuild(d8d4a5161d44b488).(uint16_tcxx . . $ uint16_t# *k, int n, const int *keyrot);
60
61 int _sizecxx . . $ IceKey#_size.;
62 int _roundscxx . . $ IceKey#_rounds.;
63 IceSubkeycxx . . $ IceSubkey# *_keyschedcxx . . $ IceKey#_keysched.;
64 };
65
66 #endif