Function report |
Source Code:lib\crypto\aes.c |
Create Date:2022-07-28 06:43:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aes_expandkey - Expands the AES key as described in FIPS-197*@ctx: The location where the computed key will be stored.*@in_key: The supplied key.*@key_len: The length of the supplied key.* Returns 0 on success
Proto:int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, unsigned int key_len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct crypto_aes_ctx * | ctx | |
const u8 * | in_key | |
unsigned int | key_len |
196 | key_length = key_len |
205 | rko[0] = r32 - rotate a 32-bit value right*@word: value to rotate*@shift: bits to roll ^ rc ^ rki[0] |
210 | If key_len == AES_KEYSIZE_192 Then |
215 | Else if key_len == AES_KEYSIZE_256 Then |
237 | key_dec[i] = inv_mix_columns(key_enc[j]) |
238 | key_dec[i + 1] = inv_mix_columns(key_enc[j + 1]) |
239 | key_dec[i + 2] = inv_mix_columns(key_enc[j + 2]) |
240 | key_dec[i + 3] = inv_mix_columns(key_enc[j + 3]) |
248 | Return 0 |
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 |