![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * sm2.h - SM2 asymmetric public-key algorithm 0004 * as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012 SM2 and 0005 * described at https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 0006 * 0007 * Copyright (c) 2020, Alibaba Group. 0008 * Written by Tianjia Zhang <tianjia.zhang@linux.alibaba.com> 0009 */ 0010 0011 #ifndef _CRYPTO_SM2_H 0012 #define _CRYPTO_SM2_H 0013 0014 #include <crypto/sm3.h> 0015 #include <crypto/akcipher.h> 0016 0017 /* The default user id as specified in GM/T 0009-2012 */ 0018 #define SM2_DEFAULT_USERID "1234567812345678" 0019 #define SM2_DEFAULT_USERID_LEN 16 0020 0021 extern int sm2_compute_z_digest(struct crypto_akcipher *tfm, 0022 const unsigned char *id, size_t id_len, 0023 unsigned char dgst[SM3_DIGEST_SIZE]); 0024 0025 #endif /* _CRYPTO_SM2_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |