How can I build a java.security.Key from a compressed SEC-1 encoded ByteArray?
I am using the P-256 curve and I have a compressed SEC-1 encoded ByteArray representing the public key. I would like to make a java.security.PublicKey
out of it in order to run an ECDH, like this: