-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathGmSSLProvider.java
More file actions
42 lines (36 loc) · 1.8 KB
/
GmSSLProvider.java
File metadata and controls
42 lines (36 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright 2014-2024 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.gmssl.crypto;
import java.security.Provider;
/**
* @author yongfeili
* @email 290836576@qq.com
* @date 2024/07/27
* @description
* GmSSL-Java currently provides functionality for random number generation, SM3 hash, SM3 message authentication code (HMAC-SM3),
* SM4 encryption (including block encryption and CBC/CTR/GCM encryption modes), ZUC encryption, SM2 encryption/signature, SM9 encryption/signature, and SM2 certificate parsing.
* These features cover the main application development scenarios for the current Chinese cryptographic algorithms.
*/
public class GmSSLProvider extends Provider {
public GmSSLProvider() {
super("GmSSL", "3.1.1", "GmSSL Provider");
put("SecureRandom.Random", "org.gmssl.crypto.Random");
put("Cipher.SM2", "org.gmssl.crypto.asymmetric.SM2Cipher");
put("KeyPairGenerator.SM2", "org.gmssl.crypto.asymmetric.SM2KeyPairGenerator");
put("Signature.SM2", "org.gmssl.crypto.asymmetric.SM2Signature");
put("MessageDigest.SM3", "org.gmssl.crypto.digest.SM3Digest");
put("Mac.SM3", "org.gmssl.crypto.digest.SM3Hmac");
put("SecretKeyFactory.SM3Pbkdf2", "org.gmssl.crypto.digest.SM3Pbkdf2");
put("Cipher.SM4", "org.gmssl.crypto.symmetric.SM4Cipher");
put("Cipher.SM9", "org.gmssl.crypto.asymmetric.SM9Cipher");
put("Signature.SM9", "org.gmssl.crypto.asymmetric.SM9Signature");
put("KeyPairGenerator.SM9", "org.gmssl.crypto.asymmetric.SM9KeyPairGeneratorSpi");
put("Cipher.ZUC", "org.gmssl.crypto.symmetric.ZucCipher");
}
}