mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
17 lines
631 B
Java
17 lines
631 B
Java
package VMSConnection.Security.SM2;
|
|
/*
|
|
* @Author: hongyu guo
|
|
* @Description: 所有对称加密方法必须实现的基本方法
|
|
* @Version: 1.0.0
|
|
* @Date: 17:06 2021/03/03
|
|
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
|
*/
|
|
|
|
import org.bouncycastle.crypto.InvalidCipherTextException;
|
|
|
|
public interface PublicKeyInterface {
|
|
public byte[] getBytes();
|
|
public boolean setBytes(byte[] bytes);
|
|
public byte[] encrypt(byte[] content) throws InvalidCipherTextException;
|
|
public boolean verify(byte[] content, byte[] digest);
|
|
} |