| Function report | 
| Source Code: kernel\module_signature.c | Create Date:2022-07-28 10:59:46 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mod_check_sig - check that the given signature is sane*@ms: Signature to check.*@file_len: Size of the file to which @ms is appended.*@name: What is being checked. Used for error messages.
Proto:int mod_check_sig(const struct module_signature *ms, size_t file_len, const char *name)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const struct module_signature * | ms | |
| size_t | file_len | |
| const char * | name | 
| 24 | If be32_to_cpu(Length of signature data ) >= file_len - size of ms Then Return -EBADMSG | 
| 33 | If Public-key crypto algorithm [0] != 0 || Digest algorithm [0] != 0 || Length of signer's name [0] != 0 || Length of key identifier [0] != 0 || __pad[0] != 0 || __pad[1] != 0 || __pad[2] != 0 Then | 
| 45 | 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 |