谷神_
2017-02-21 22:51
java.security.InvalidKeyException: Diffie-Hellman public key expected
at com.sun.crypto.provider.DHKeyAgreement.engineDoPhase(DHKeyAgreement.java:184)
at javax.crypto.KeyAgreement.doPhase(KeyAgreement.java:567)
at newa.DHdemo.jdkDH(DHdemo.java:47)
at newa.DHdemo.main(DHdemo.java:23)
public key 不对,是不是用错函数?
JAVA实现非对称加密
27470 学习 · 36 问题
相似问题
回答 2
回答 1
回答 1
回答 2
回答 1