Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\digsig.c Create Date:2022-07-28 07:19:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pkcs_1_v1_5_decode_emsa

Proto:static const char *pkcs_1_v1_5_decode_emsa(const unsigned char *msg, unsigned long msglen, unsigned long modulus_bitlen, unsigned long *outlen)

Type:char

Parameter:

TypeParameterName
const unsigned char *msg
unsigned longmsglen
unsigned longmodulus_bitlen
unsigned long *outlen
37  modulus_len = (modulus_bitlen >> 3) + If modulus_bitlen & 7 Then 1 Else 0
40  If msglen > modulus_len || modulus_len < 11 Then Return NULL
44  If msg[0] != 0x00 || msg[1] != 0x01 Then Return NULL
47  When i < modulus_len - 1 cycle If msg[i] != 0xFF Then
49  Break
52  If msg[i] != 0 Then Return NULL
57  ps_len = i - 2
59  outlen = msglen - 2 + ps_len + 1
61  Return msg + 2 + ps_len + 1
Caller
NameDescribe
digsig_verify_rsaRSA Signature verification with public key