Function report |
Source Code:lib\crypto\blake2s.c |
Create Date:2022-07-28 06:44:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blake2s256_hmac
Proto:void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen, const size_t keylen)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
u8 * | out | |
const u8 * | in | |
const u8 * | key | |
const size_t | inlen | |
const size_t | keylen |
81 | If keylen > BLAKE2S_BLOCK_SIZE Then |
82 | blake2s_init( & state, BLAKE2S_HASH_SIZE) |
83 | blake2s_update( & state, key, keylen) |
84 | blake2s_final( & state, x_key) |
85 | Else No 3D Now!(x_key, key, keylen) |
88 | When i < BLAKE2S_BLOCK_SIZE cycle x_key[i] ^= 0x36 |
91 | blake2s_init( & state, BLAKE2S_HASH_SIZE) |
92 | blake2s_update( & state, x_key, BLAKE2S_BLOCK_SIZE) |
93 | blake2s_update( & state, in, inlen) |
94 | blake2s_final( & state, i_hash) |
96 | When i < BLAKE2S_BLOCK_SIZE cycle x_key[i] ^= 0x5c ^ 0x36 |
99 | blake2s_init( & state, BLAKE2S_HASH_SIZE) |
100 | blake2s_update( & state, x_key, BLAKE2S_BLOCK_SIZE) |
101 | blake2s_update( & state, i_hash, BLAKE2S_HASH_SIZE) |
102 | blake2s_final( & state, i_hash) |
104 | No 3D Now!(out, i_hash, BLAKE2S_HASH_SIZE) |
Name | Describe |
---|---|
blake2s_selftest |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |