public class SM4 extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decrypt(byte[] s,
byte[] key) |
static byte[] |
decrypt(byte[] s,
byte[] key,
byte[] iv) |
static byte[] |
decrypt(byte[] s,
SecretKey key) |
static byte[] |
decrypt(byte[] s,
SecretKey key,
byte[] iv) |
static String |
decrypt(String s,
SecretKey key) |
static String |
decrypt(String s,
SecretKey key,
String iv) |
static String |
decrypt(String s,
String key) |
static String |
decrypt(String s,
String key,
String iv) |
static byte[] |
encrypt(byte[] s,
byte[] key) |
static byte[] |
encrypt(byte[] s,
byte[] key,
byte[] iv) |
static byte[] |
encrypt(byte[] s,
SecretKey key) |
static byte[] |
encrypt(byte[] s,
SecretKey key,
byte[] iv) |
static String |
encrypt(String s,
SecretKey key) |
static String |
encrypt(String s,
SecretKey key,
String iv) |
static String |
encrypt(String s,
String key) |
static String |
encrypt(String s,
String key,
String iv) |
public static byte[] encrypt(byte[] s, byte[] key)
public static byte[] encrypt(byte[] s, SecretKey key)
public static byte[] encrypt(byte[] s, byte[] key, byte[] iv)
public static byte[] encrypt(byte[] s, SecretKey key, byte[] iv)
public static byte[] decrypt(byte[] s, byte[] key)
public static byte[] decrypt(byte[] s, SecretKey key)
public static byte[] decrypt(byte[] s, byte[] key, byte[] iv)
public static byte[] decrypt(byte[] s, SecretKey key, byte[] iv)
Copyright © 2024. All rights reserved.