Closed faern closed 1 year ago
Hi @faern thank you for the clarification and adding these unit tests + refactor.
I read your response at #34 & I agree that CryptoCiphertextBytesTypenum
only affects the from_bytes
implementation on the EncappedKey
. Initially I thought that it affected the key encapsulation methods of kem
but this does not seem to be the case.
Some tests not related to the
kem
feature were still placed in thekem_api
module. Meaning they would only run if thekem
feature was active (which it is not in the CI). So I moved them out to the regular test module and made sure they work. For the tests running on the stack we must run it in a separate thread until we get the stack usage under control.I also added a test that verifies that the
CryptoCiphertextBytesTypenum
always corresponds toCRYPTO_CIPHERTEXTBYTES
since the CI passed when this was set wrong over in #33. This should help catch such errors.