/hpke-example

wolfCryptを用いたHPKEのサンプルプログラムです.

Primary LanguageC

HPKE Example Programs

How to Use

  1. Build
make
  1. Start the sending program.
./send

Enter your message.

  1. Start the receiving program in another terminal.
./receive

Then plain text is displayed.

  1. reset
make clean

How to Use (Old)

  1. Build
make
  1. Start the receiving program.
./receive
Enter the message name you want to receive: 

receiver.pub will generate.
Then, it enters the standard input waiting state.

  1. Send a message in another terminal.
./send outMsg

outMsg is the message name. You can replace it with any string.

outMsg.pub(ephemeral public key) and outMsg.enc(cipher text) will generate.

  1. Enter the message name for the receiving program.
./receive
Enter the message name you want to receive: outMsg

Then plain text is displayed.

  1. reset
make clean