diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-10-03 11:07:24 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-10-05 12:47:37 +0200 |
commit | a596d38a8cddca4af3416b2664e120028d96e6a9 (patch) | |
tree | e3be668b8c841599247d753745353f65f873bdb5 /include | |
parent | 657d1927c68bdc3fb0250d16df2a8439e8e043f1 (diff) |
obj: Add SM4 GCM/CCM OID
Add the following OID:
SM4-GCM: 1.2.156.10197.1.104.8
SM4-CCM: 1.2.156.10197.1.104.9
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16731)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/obj_mac.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/openssl/obj_mac.h b/include/openssl/obj_mac.h index 0e86027667..c70bf172ba 100644 --- a/include/openssl/obj_mac.h +++ b/include/openssl/obj_mac.h @@ -4952,6 +4952,16 @@ #define NID_sm4_ctr 1139 #define OBJ_sm4_ctr OBJ_sm_scheme,104L,7L +#define SN_sm4_gcm "SM4-GCM" +#define LN_sm4_gcm "sm4-gcm" +#define NID_sm4_gcm 1248 +#define OBJ_sm4_gcm OBJ_sm_scheme,104L,8L + +#define SN_sm4_ccm "SM4-CCM" +#define LN_sm4_ccm "sm4-ccm" +#define NID_sm4_ccm 1249 +#define OBJ_sm4_ccm OBJ_sm_scheme,104L,9L + #define SN_hmac "HMAC" #define LN_hmac "hmac" #define NID_hmac 855 |