~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/crypto/sm3.h

Version: ~ [ linux-6.6-rc4 ] ~ [ linux-6.5.5 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.55 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.133 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.197 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.257 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.295 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.326 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Common values for SM3 algorithm
  3  */
  4 
  5 #ifndef _CRYPTO_SM3_H
  6 #define _CRYPTO_SM3_H
  7 
  8 #include <linux/types.h>
  9 
 10 #define SM3_DIGEST_SIZE 32
 11 #define SM3_BLOCK_SIZE  64
 12 
 13 #define SM3_T1          0x79CC4519
 14 #define SM3_T2          0x7A879D8A
 15 
 16 #define SM3_IVA         0x7380166f
 17 #define SM3_IVB         0x4914b2b9
 18 #define SM3_IVC         0x172442d7
 19 #define SM3_IVD         0xda8a0600
 20 #define SM3_IVE         0xa96f30bc
 21 #define SM3_IVF         0x163138aa
 22 #define SM3_IVG         0xe38dee4d
 23 #define SM3_IVH         0xb0fb0e4e
 24 
 25 extern const u8 sm3_zero_message_hash[SM3_DIGEST_SIZE];
 26 
 27 struct sm3_state {
 28         u32 state[SM3_DIGEST_SIZE / 4];
 29         u64 count;
 30         u8 buffer[SM3_BLOCK_SIZE];
 31 };
 32 
 33 struct shash_desc;
 34 
 35 extern int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
 36                               unsigned int len);
 37 
 38 extern int crypto_sm3_finup(struct shash_desc *desc, const u8 *data,
 39                              unsigned int len, u8 *hash);
 40 #endif
 41 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp