OLD | NEW |
1 /* | 1 /* |
2 * Implement J-PAKE, as described in | 2 * Implement J-PAKE, as described in |
3 * http://grouper.ieee.org/groups/1363/Research/contributions/hao-ryan-2008.pdf | 3 * http://grouper.ieee.org/groups/1363/Research/contributions/hao-ryan-2008.pdf |
4 * | 4 * |
5 * With hints from http://www.cl.cam.ac.uk/~fh240/software/JPAKE2.java. | 5 * With hints from http://www.cl.cam.ac.uk/~fh240/software/JPAKE2.java. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef HEADER_JPAKE_H | 8 #ifndef HEADER_JPAKE_H |
9 #define HEADER_JPAKE_H | 9 #define HEADER_JPAKE_H |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 /* Error codes for the JPAKE functions. */ | 108 /* Error codes for the JPAKE functions. */ |
109 | 109 |
110 /* Function codes. */ | 110 /* Function codes. */ |
111 #define JPAKE_F_JPAKE_STEP1_PROCESS 101 | 111 #define JPAKE_F_JPAKE_STEP1_PROCESS 101 |
112 #define JPAKE_F_JPAKE_STEP2_PROCESS 102 | 112 #define JPAKE_F_JPAKE_STEP2_PROCESS 102 |
113 #define JPAKE_F_JPAKE_STEP3A_PROCESS 103 | 113 #define JPAKE_F_JPAKE_STEP3A_PROCESS 103 |
114 #define JPAKE_F_JPAKE_STEP3B_PROCESS 104 | 114 #define JPAKE_F_JPAKE_STEP3B_PROCESS 104 |
115 #define JPAKE_F_VERIFY_ZKP 100 | 115 #define JPAKE_F_VERIFY_ZKP 100 |
116 | 116 |
117 /* Reason codes. */ | 117 /* Reason codes. */ |
| 118 #define JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL 108 |
| 119 #define JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL 109 |
118 #define JPAKE_R_G_TO_THE_X4_IS_ONE 105 | 120 #define JPAKE_R_G_TO_THE_X4_IS_ONE 105 |
119 #define JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH 106 | 121 #define JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH 106 |
120 #define JPAKE_R_HASH_OF_KEY_MISMATCH 107 | 122 #define JPAKE_R_HASH_OF_KEY_MISMATCH 107 |
121 #define JPAKE_R_VERIFY_B_FAILED 102 | 123 #define JPAKE_R_VERIFY_B_FAILED 102 |
122 #define JPAKE_R_VERIFY_X3_FAILED 103 | 124 #define JPAKE_R_VERIFY_X3_FAILED 103 |
123 #define JPAKE_R_VERIFY_X4_FAILED 104 | 125 #define JPAKE_R_VERIFY_X4_FAILED 104 |
124 #define JPAKE_R_ZKP_VERIFY_FAILED 100 | 126 #define JPAKE_R_ZKP_VERIFY_FAILED 100 |
125 | 127 |
126 #ifdef __cplusplus | 128 #ifdef __cplusplus |
127 } | 129 } |
128 #endif | 130 #endif |
129 #endif | 131 #endif |
OLD | NEW |