awslabs / bike-kem

Additional implementation of BIKE (Bit Flipping Key Encapsulation)
Apache License 2.0
45 stars 11 forks source link

How to decrypt ciphertext to plaintext ? #2

Closed ting1996 closed 4 years ago

ting1996 commented 4 years ago

Why I can't find any decrypt function ?

Shay-Gueron commented 4 years ago

BIKE is a KEM (not a PKE). The counterpart of “encapsultation” (encaps) is decapsultion (decaps). Perhaps it would be useful to look at the BIKE specification document posted on https://bikesuite.org/

Regards, Shay G

ting1996 commented 4 years ago

So encaps provide shared key to receiver and decaps provide shared key to sender. Then they use shared key to encrypt and decrypt, right?

Shay-Gueron commented 4 years ago

As a protocol, a KEM ends up with a shared key that is agreed between the communicating parties. The subsequent use of the shared key, by the parties, is not in the scope of the KEM. A common use is that the parties would use the key to encrypt/decrypt and authenticate messages.