Skip to content

KEM Question about restoring encapsulated secret by decapsulation #1380

Answered by baentsch
sungmin-net asked this question in Q&A
Discussion options

You must be logged in to vote

Can you please share the complete code you're running? Looking at this statement

In my trial, I gave 0xC0, 0xC1, 0xC2, ... , 0xCF to 'shared_secret_e' and printed 'shared_secret_d' after OQS_KEM_frodokem_640_aes_decaps().

it seems you are not using encaps/decaps as a pair (as it needs to be). See a complete example highlighting identity test here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sungmin-net
Comment options

Answer selected by sungmin-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants