Open jymchng opened 1 year ago
Hi let's say the key exchange was meant to be conducted by sending String, which is a base64 encoding of the SharedKey, over to the receiver.
String
SharedKey
receiver
Sender would need the receiver's PublicKey which is sent to the sender through a base64 encoded string.
Sender
PublicKey
sender
However, there is a no method of conversion from SecretKey to PublicKey then to ReceiverPublicKey.
SecretKey
ReceiverPublicKey
How can I get an instance of ReceiverPublicKey to generate CombinedSharedKey as it is done in one of your tests?
CombinedSharedKey
Hi let's say the key exchange was meant to be conducted by sending
String
, which is a base64 encoding of theSharedKey
, over to thereceiver
.Sender
would need thereceiver
'sPublicKey
which is sent to thesender
through a base64 encoded string.However, there is a no method of conversion from
SecretKey
toPublicKey
then toReceiverPublicKey
.How can I get an instance of
ReceiverPublicKey
to generateCombinedSharedKey
as it is done in one of your tests?