Function report |
Source Code:include\crypto\internal\des.h |
Create Date:2022-07-28 06:47:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:RFC2451:* For DES-EDE3, there is no known need to reject weak or* complementation keys
Proto:static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, bool check_weak)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const u8 * | key | |
unsigned int | key_len | |
bool | check_weak |
62 | ret = If fips_enabled Then -EINVAL Else -ENOKEY |
65 | No 3D Now!(K, key, DES3_EDE_KEY_SIZE) |
67 | If ( Not ( K[0] ^ K[2] | K[1] ^ K[3] ) || Not ( K[2] ^ K[4] | K[3] ^ K[5] ) ) && (fips_enabled || check_weak) Then Go to bad |
75 | ret = 0 |
76 | bad : |
79 | Return ret |
Name | Describe |
---|---|
des3_ede_expand_key |
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 |