Uses of Enum
cn.gmkit.core.SM2CipherMode
Packages that use SM2CipherMode
-
Uses of SM2CipherMode in cn.gmkit.core
Methods in cn.gmkit.core that return SM2CipherModeModifier and TypeMethodDescriptionstatic SM2CipherModeReturns the enum constant of this type with the specified name.static SM2CipherMode[]SM2CipherMode.values()Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of SM2CipherMode in cn.gmkit.sm2
Methods in cn.gmkit.sm2 that return SM2CipherModeMethods in cn.gmkit.sm2 with parameters of type SM2CipherModeModifier and TypeMethodDescriptionstatic byte[]SM2Ciphertexts.decodeAsn1(byte[] asn1Ciphertext, SM2CipherMode mode) 将 ASN.1 DER 密文解码为原始 SM2 密文。static byte[]SM2Ciphertexts.decodeAuto(byte[] ciphertext, SM2CipherMode mode) 自动识别原始密文和 ASN.1 DER 密文。static byte[]SM2Ciphertexts.decodeDer(byte[] derCiphertext, SM2CipherMode mode) 将DER格式的密文解码为原始格式byte[]SM2.decrypt(String privateKeyHex, byte[] ciphertext, SM2CipherMode mode) 使用指定密文布局解密。byte[]SM2.decrypt(String privateKeyHex, String ciphertext, SM2CipherMode mode) 解密十六进制或 Base64 形式的密文字符串。static byte[]SM2Util.decrypt(String privateKeyHex, byte[] ciphertext, SM2CipherMode mode) 使用指定密文布局解密字节密文。static byte[]SM2Util.decrypt(String privateKeyHex, String ciphertext, SM2CipherMode mode) 使用指定密文布局解密字符串形式密文。SM2.decryptToString(String privateKeyHex, byte[] ciphertext, Charset charset, SM2CipherMode mode) 使用指定字符集解码解密结果。static StringSM2Util.decryptToString(String privateKeyHex, byte[] ciphertext, Charset charset, SM2CipherMode mode) 解密字节密文并按指定字符集解码。SM2.decryptToUtf8(String privateKeyHex, byte[] ciphertext, SM2CipherMode mode) 使用 UTF-8 解码解密结果。SM2.decryptToUtf8(String privateKeyHex, String ciphertext, SM2CipherMode mode) 使用 UTF-8 解码字符串形式的密文解密结果。static StringSM2Util.decryptToUtf8(String privateKeyHex, byte[] ciphertext, SM2CipherMode mode) 解密字节密文并按 UTF-8 解码。static StringSM2Util.decryptToUtf8(String privateKeyHex, String ciphertext, SM2CipherMode mode) 解密字符串形式密文并按 UTF-8 解码。static byte[]SM2Ciphertexts.encodeAsn1(byte[] ciphertext, SM2CipherMode mode) 将原始密文编码为 ASN.1 DER 格式。static byte[]SM2Ciphertexts.encodeDer(byte[] ciphertext, SM2CipherMode mode) 将密文编码为DER格式byte[]SM2.encrypt(String publicKeyHex, byte[] data, SM2CipherMode mode) 使用指定密文布局加密。byte[]SM2.encrypt(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后进行加密。static byte[]SM2Util.encrypt(String publicKeyHex, byte[] data, SM2CipherMode mode) 使用指定密文布局加密字节数组。static byte[]SM2Util.encrypt(String publicKeyHex, byte[] data, SM2CipherMode mode, GmSecurityContext securityContext) 使用指定安全上下文和密文布局加密字节数组。static byte[]SM2Util.encrypt(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后加密。SM2.encryptBase64(String publicKeyHex, byte[] data, SM2CipherMode mode) 加密并输出 Base64 密文。SM2.encryptBase64(String publicKeyHex, String data, SM2CipherMode mode) 使用 UTF-8 编码后的字符串加密并输出 Base64 密文。SM2.encryptBase64(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后加密并输出 Base64 密文。static StringSM2Util.encryptBase64(String publicKeyHex, byte[] data, SM2CipherMode mode) 使用指定密文布局加密并输出 Base64 密文。static StringSM2Util.encryptBase64(String publicKeyHex, byte[] data, SM2CipherMode mode, GmSecurityContext securityContext) 使用指定安全上下文加密并输出 Base64 密文。static StringSM2Util.encryptBase64(String publicKeyHex, String data, SM2CipherMode mode) 使用 UTF-8 编码字符串后加密并输出 Base64 密文。static StringSM2Util.encryptBase64(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后加密并输出 Base64 密文。SM2.encryptHex(String publicKeyHex, byte[] data, SM2CipherMode mode) 加密并输出十六进制密文。SM2.encryptHex(String publicKeyHex, String data, SM2CipherMode mode) 使用 UTF-8 编码后的字符串加密并输出十六进制密文。SM2.encryptHex(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后加密并输出十六进制密文。static StringSM2Util.encryptHex(String publicKeyHex, byte[] data, SM2CipherMode mode) 使用指定密文布局加密并输出十六进制密文。static StringSM2Util.encryptHex(String publicKeyHex, byte[] data, SM2CipherMode mode, GmSecurityContext securityContext) 使用指定安全上下文加密并输出十六进制密文。static StringSM2Util.encryptHex(String publicKeyHex, String data, SM2CipherMode mode) 使用 UTF-8 编码字符串后加密并输出十六进制密文。static StringSM2Util.encryptHex(String publicKeyHex, String data, Charset charset, SM2CipherMode mode) 使用指定字符集编码字符串后加密并输出十六进制密文。static SM2CiphertextSM2Ciphertexts.parse(byte[] ciphertext, SM2CipherMode mode) 解析SM2密文数据Constructors in cn.gmkit.sm2 with parameters of type SM2CipherModeModifierConstructorDescriptionSM2Ciphertext(byte[] c1, byte[] c2, byte[] c3, SM2CipherMode mode) 创建一个 SM2 密文分段对象。