ecdh Demo implementation for share key negotiation between openssl and java bouncycastle (ECDH secp256k1) The key is stored after generated, so you can exchange public key offline, to check the share key is same or not