Open ghostidentity opened 1 month ago
adding some errors:
@ghostidentity you don't ever appear to be calling the EncapsulationKey::encapsulate
method, which would actually generate an encapsulated key message. Instead you're doing this:
// Retrieve the encoded ciphertext
let encoded_ciphertext = encapsulation_key.as_bytes();
...but that's the serialization of the encapsulation key itself. You still need to actually use that key to encrypt a message.
First of all, thanks for providing ML-KEM library for rust. I'm checking documentation but I'm unable to find a resource on how to marshal encapsulation key (generated from keypair),.
What I want to achieve is that the c# application can initiate a key exchage and the server can return an encapsulation key to generate a sharedkey, in turn the server will consume the cipherText to create its own shared key.
I'm stuck on this challenge: in turn the server will consume the cipherText to create its own shared key.
Is there a plan to easily export public keys to external system, so its easy to generate shared key.