Home
last modified time | relevance | path

Searched refs:sig_len (Results 1 – 12 of 12) sorted by relevance

/linux-4.4.14/kernel/
Dmodule_signing.c35 __be32 sig_len; /* Length of signature data */ member
44 size_t modlen = *_modlen, sig_len; in mod_verify_sig() local
54 sig_len = be32_to_cpu(ms.sig_len); in mod_verify_sig()
55 if (sig_len >= modlen) in mod_verify_sig()
57 modlen -= sig_len; in mod_verify_sig()
76 return system_verify_data(mod, modlen, mod + modlen, sig_len, in mod_verify_sig()
/linux-4.4.14/scripts/
Dextract-module-sig.pl57 my ($algo, $hash, $id_type, $name_len, $kid_len, $sig_len) = @info;
73 unless ($p >= $name_len + $kid_len + $sig_len);
75 $p -= $sig_len;
76 my $raw_sig = substr($buf, $p, $sig_len);
84 if ($sig_len > 0) {
85 print STDERR "Found $sig_len bytes of signature [";
86 my $n = $sig_len > 16 ? 16 : $sig_len;
Dsign-file.c58 uint32_t sig_len; /* Length of signature data */ member
312 sig_info.sig_len = htonl(sig_size); in main()
/linux-4.4.14/crypto/asymmetric_keys/
Dverify_pefile.c109 ctx->sig_len = ddir->certs.size; in pefile_parse_binary()
111 ctx->sig_len, ctx->sig_offset, in pefile_parse_binary()
112 ctx->sig_len, pebuf + ctx->sig_offset); in pefile_parse_binary()
133 if (ctx->sig_len < sizeof(wrapper)) { in pefile_strip_sig_wrapper()
145 if (round_up(wrapper.length, 8) != ctx->sig_len) { in pefile_strip_sig_wrapper()
163 ctx->sig_len = wrapper.length; in pefile_strip_sig_wrapper()
165 ctx->sig_len -= sizeof(wrapper); in pefile_strip_sig_wrapper()
166 if (ctx->sig_len < 4) { in pefile_strip_sig_wrapper()
195 if (len <= ctx->sig_len) { in pefile_strip_sig_wrapper()
197 ctx->sig_len = len; in pefile_strip_sig_wrapper()
[all …]
Dverify_pefile.h24 unsigned sig_len; member
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c67 b->simple.sigs[i].sig_len = be32_to_cpup(p++); in nfs4_block_decode_volume()
68 if (b->simple.sigs[i].sig_len > PNFS_BLOCK_UUID_LEN) { in nfs4_block_decode_volume()
70 b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
74 p = xdr_inline_decode(xdr, b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
78 b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
80 b->simple.len += 8 + 4 + b->simple.sigs[i].sig_len; in nfs4_block_decode_volume()
Dblocklayout.h67 u32 sig_len; member
Drpc_pipefs.c48 b->simple.sigs[i].sig_len); in nfs4_encode_simple()
/linux-4.4.14/fs/nfsd/
Dblocklayoutxdr.c46 len = 4 + 4 + 8 + 4 + b->simple.sig_len; in nfsd4_block_encode_volume()
54 p = xdr_encode_opaque(p, b->simple.sig, b->simple.sig_len); in nfsd4_block_encode_volume()
Dblocklayout.c33 b->simple.sig_len = PNFS_BLOCK_UUID_LEN; in nfsd4_block_get_device_info_simple()
34 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple()
Dblocklayoutxdr.h29 u32 sig_len; member
/linux-4.4.14/net/sctp/
Dsm_statefuns.c3996 unsigned int sig_len; in sctp_sf_authenticate() local
4023 sig_len = ntohs(chunk->chunk_hdr->length) - sizeof(sctp_auth_chunk_t); in sctp_sf_authenticate()
4025 if (sig_len != hmac->hmac_len) in sctp_sf_authenticate()
4036 skb_pull(chunk->skb, sig_len); in sctp_sf_authenticate()
4038 save_digest = kmemdup(digest, sig_len, GFP_ATOMIC); in sctp_sf_authenticate()
4042 memset(digest, 0, sig_len); in sctp_sf_authenticate()
4049 if (memcmp(save_digest, digest, sig_len)) { in sctp_sf_authenticate()