public interface SM4Ext
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] in,
byte[] keyBytes)
SM4解密
|
byte[] |
encrypt(byte[] in,
byte[] keyBytes)
SM4加密
|
byte[] encrypt(byte[] in,
byte[] keyBytes)
throws Exception
in - 原文keyBytes - 密钥BadPaddingExceptionIllegalBlockSizeExceptionNoSuchPaddingExceptionNoSuchProviderExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionExceptionCopyright © 2021. All rights reserved.