Function report |
Source Code:include\crypto\internal\des.h |
Create Date:2022-07-28 06:47:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rypto_des_verify_key - Check whether a DES key is weak*@tfm: the crypto algo*@key: the key buffer* Returns -EINVAL if the key is weak and the crypto TFM does not permit weak* keys
Proto:static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct crypto_tfm * | tfm | |
| const u8 * | key |
| 33 | If crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS Then err = -EINVAL |
| 35 | Else err = 0 |
| 39 | If err Then crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY) |
| 43 | Return err |
| 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 |