Research Article
Post-Quantum Secure Password-Authenticated Key Exchange Based on Ouroboros
Algorithm 1
Weight-restricted hash function.
| Input: Message byte string , integer , integer . | | Output: A -bit string with Hamming weight . | (1) | | (2) | | (3) | | (4) | fordo | (5) | SHA3-512 | (6) | | (7) | for to do | (8) | int | (9) | ifthen | (10) | | (11) | end if | (12) | ifthen | (13) | | (14) | end if | (15) | end for | (16) | end for | (17) | ifthen | (18) | Outputs | (19) | else | (20) | Outputs a -bit string where - bit is 1 () and other bits are 0. | (21) | end if |
|