Home
last modified time | relevance | path

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

/linux/scripts/
A Dextract-module-sig.pl59 my ($algo, $hash, $id_type, $name_len, $kid_len, $sig_len) = @info;
75 unless ($p >= $name_len + $kid_len + $sig_len);
77 $p -= $sig_len;
78 my $raw_sig = substr($buf, $p, $sig_len);
86 if ($sig_len > 0) {
87 print STDERR "Found $sig_len bytes of signature [";
88 my $n = $sig_len > 16 ? 16 : $sig_len;
A Dsign-file.c62 uint32_t sig_len; /* Length of signature data */ member
388 sig_info.sig_len = htonl(sig_size); in main()
/linux/security/integrity/ima/
A Dima_modsig.c46 size_t sig_len; in ima_read_modsig() local
64 sig_len = be32_to_cpu(sig->sig_len); in ima_read_modsig()
65 buf_len -= sig_len + sizeof(*sig); in ima_read_modsig()
68 hdr = kzalloc(sizeof(*hdr) + sig_len, GFP_KERNEL); in ima_read_modsig()
72 hdr->pkcs7_msg = pkcs7_parse_message(buf + buf_len, sig_len); in ima_read_modsig()
79 memcpy(hdr->raw_pkcs7, buf + buf_len, sig_len); in ima_read_modsig()
80 hdr->raw_pkcs7_len = sig_len; in ima_read_modsig()
/linux/kernel/
A Dmodule_signing.c23 size_t sig_len, modlen = info->len; in mod_verify_sig() local
37 sig_len = be32_to_cpu(ms.sig_len); in mod_verify_sig()
38 modlen -= sig_len + sizeof(ms); in mod_verify_sig()
41 return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len, in mod_verify_sig()
A Dmodule_signature.c24 if (be32_to_cpu(ms->sig_len) >= file_len - sizeof(*ms)) in mod_check_sig()
/linux/crypto/asymmetric_keys/
A Dverify_pefile.c105 ctx->sig_len = ddir->certs.size; in pefile_parse_binary()
107 ctx->sig_len, ctx->sig_offset, in pefile_parse_binary()
108 ctx->sig_len, pebuf + ctx->sig_offset); in pefile_parse_binary()
129 if (ctx->sig_len < sizeof(wrapper)) { in pefile_strip_sig_wrapper()
141 if (round_up(wrapper.length, 8) != ctx->sig_len) { in pefile_strip_sig_wrapper()
159 ctx->sig_len = wrapper.length; in pefile_strip_sig_wrapper()
161 ctx->sig_len -= sizeof(wrapper); in pefile_strip_sig_wrapper()
162 if (ctx->sig_len < 4) { in pefile_strip_sig_wrapper()
191 if (len <= ctx->sig_len) { in pefile_strip_sig_wrapper()
193 ctx->sig_len = len; in pefile_strip_sig_wrapper()
[all …]
A Dverify_pefile.h19 unsigned sig_len; member
/linux/drivers/md/
A Ddm-verity-verify-sig.c107 const void *sig_data, size_t sig_len) in verity_verify_root_hash() argument
114 if (!sig_data || sig_len == 0) { in verity_verify_root_hash()
122 sig_len, in verity_verify_root_hash()
A Ddm-verity-verify-sig.h24 const void *sig_data, size_t sig_len);
38 const void *sig_data, size_t sig_len) in verity_verify_root_hash() argument
/linux/arch/s390/kernel/
A Dmachine_kexec_file.c33 unsigned long sig_len; in s390_verify_sig() local
50 sig_len = be32_to_cpu(ms->sig_len); in s390_verify_sig()
51 if (sig_len >= kernel_len) in s390_verify_sig()
53 kernel_len -= sig_len; in s390_verify_sig()
69 kernel + kernel_len, sig_len, in s390_verify_sig()
/linux/fs/nfs/blocklayout/
A Ddev.c80 b->simple.sigs[i].sig_len = be32_to_cpup(p++); in nfs4_block_decode_volume()
81 if (b->simple.sigs[i].sig_len > PNFS_BLOCK_UUID_LEN) { in nfs4_block_decode_volume()
83 b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
87 p = xdr_inline_decode(xdr, b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
91 b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
94 (XDR_QUADLEN(b->simple.sigs[i].sig_len) << 2); in nfs4_block_decode_volume()
A Dblocklayout.h66 u32 sig_len; member
A Drpc_pipefs.c48 b->simple.sigs[i].sig_len); in nfs4_encode_simple()
/linux/include/linux/
A Dmodule_signature.h40 __be32 sig_len; /* Length of signature data */ member
/linux/fs/nfsd/
A Dblocklayoutxdr.c48 len = 4 + 4 + 8 + 4 + (XDR_QUADLEN(b->simple.sig_len) << 2); in nfsd4_block_encode_volume()
56 p = xdr_encode_opaque(p, b->simple.sig, b->simple.sig_len); in nfsd4_block_encode_volume()
A Dblocklayoutxdr.h35 u32 sig_len; member
A Dblocklayout.c159 b->simple.sig_len = PNFS_BLOCK_UUID_LEN; in nfsd4_block_get_device_info_simple()
160 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple()
/linux/net/sctp/
A Dsm_statefuns.c4355 unsigned int sig_len; in sctp_sf_authenticate() local
4382 sig_len = ntohs(chunk->chunk_hdr->length) - in sctp_sf_authenticate()
4385 if (sig_len != hmac->hmac_len) in sctp_sf_authenticate()
4396 skb_pull(chunk->skb, sig_len); in sctp_sf_authenticate()
4398 save_digest = kmemdup(digest, sig_len, GFP_ATOMIC); in sctp_sf_authenticate()
4402 memset(digest, 0, sig_len); in sctp_sf_authenticate()
4409 if (memcmp(save_digest, digest, sig_len)) { in sctp_sf_authenticate()

Completed in 28 milliseconds