sslcrypto icon indicating copy to clipboard operation
sslcrypto copied to clipboard

ECIES | How to get cipherPubKey, AES-nonce, authTag

Open ozan956 opened this issue 2 years ago • 1 comments

Hi all,

I want to reach the parameters above. I am doing a cross-platform application and I need them.

ozan956 avatar Oct 31 '23 18:10 ozan956

Hmm... Let's see if I even understand what you say. cipherPubKey seems like it could be a public ECC key, but you also mentioned AES, so that might be ECIES-related. authTag sounds like HMAC, and while sslcrypto supports HMAC, it's more or less transparent and isn't exposed to the API directly.

I'm... not really certain that you know what you're doing. The parameter names don't seem generally agreed upon, so you have to figure out the exact encryption scheme you're using and figure out how that maps onto the relatively low-level API sslcrypto provides, like AES keys and whatnot. If you don't understand what cryptographic primitives you're using, you're not really in a position to develop anything remotely secure.

purplesyringa avatar Nov 01 '23 18:11 purplesyringa