Home
last modified time | relevance | path

Searched refs:sig_size (Results 1 – 25 of 26) sorted by relevance

12

/external/vboot_reference/host/lib/
Dhost_signature.c24 VbSignature* SignatureAlloc(uint64_t sig_size, uint64_t data_size) { in SignatureAlloc() argument
25 VbSignature* sig = (VbSignature*)malloc(sizeof(VbSignature) + sig_size); in SignatureAlloc()
30 sig->sig_size = sig_size; in SignatureAlloc()
37 uint64_t sig_size, uint64_t data_size) { in SignatureInit() argument
39 sig->sig_size = sig_size; in SignatureInit()
45 if (dest->sig_size < src->sig_size) in SignatureCopy()
47 dest->sig_size = src->sig_size; in SignatureCopy()
49 Memcpy(GetSignatureData(dest), GetSignatureDataC(src), src->sig_size); in SignatureCopy()
69 sig->sig_size = SHA512_DIGEST_SIZE; in CalculateChecksum()
Dhost_common.c27 body_signature->sig_size); in CreateFirmwarePreamble()
42 block_sig_dest = body_sig_dest + body_signature->sig_size; in CreateFirmwarePreamble()
57 body_signature->sig_size, 0); in CreateFirmwarePreamble()
87 body_signature->sig_size); in CreateKernelPreamble()
104 block_sig_dest = body_sig_dest + body_signature->sig_size; in CreateKernelPreamble()
119 body_signature->sig_size, 0); in CreateKernelPreamble()
/external/vboot_reference/firmware/2lib/
D2rsa.c193 uint32_t sig_size = vb2_rsa_sig_size(sig_alg); in vb2_packed_key_size() local
195 if (!sig_size) in vb2_packed_key_size()
203 return 2 * sig_size + 2 * sizeof(uint32_t); in vb2_packed_key_size()
246 uint32_t sig_size = vb2_rsa_sig_size(key->sig_alg); in vb2_check_padding() local
248 uint32_t pad_size = sig_size - hash_size; in vb2_check_padding()
254 if (!sig_size || !hash_size || hash_size > sig_size) in vb2_check_padding()
299 int sig_size; in vb2_rsa_verify_digest() local
306 sig_size = vb2_rsa_sig_size(key->sig_alg); in vb2_rsa_verify_digest()
307 if (!sig_size) { in vb2_rsa_verify_digest()
314 if (key_bytes != sig_size) { in vb2_rsa_verify_digest()
[all …]
/external/vboot_reference/firmware/lib/cryptolib/
Drsa_utility.c92 int sig_size; in RSAVerifyBinary_f() local
99 sig_size = siglen_map[algorithm]; in RSAVerifyBinary_f()
113 success = RSAVerify(verification_key, sig, (uint32_t)sig_size, in RSAVerifyBinary_f()
131 int sig_size; in RSAVerifyBinaryWithDigest_f() local
138 sig_size = siglen_map[algorithm]; in RSAVerifyBinaryWithDigest_f()
151 success = RSAVerify(verification_key, sig, (uint32_t)sig_size, in RSAVerifyBinaryWithDigest_f()
/external/vboot_reference/host/lib21/
Dhost_keyblock.c35 uint32_t sig_size; in vb2_keyblock_create() local
46 if (vb2_sig_size_for_keys(&sig_size, signing_keys, signing_key_count)) in vb2_keyblock_create()
53 kb.c.total_size = kb.sig_offset + sig_size; in vb2_keyblock_create()
Dhost_fw_preamble.c39 uint32_t sig_size; in vb2_fw_preamble_create() local
53 if (vb2_sig_size_for_key(&sig_size, signing_key, NULL)) in vb2_fw_preamble_create()
56 fp.c.total_size = fp.sig_offset + sig_size; in vb2_fw_preamble_create()
Dhost_signature.c113 s.sig_size = vb2_sig_size(key->sig_alg, key->hash_alg); in vb2_sign_data()
114 if (!s.sig_size) in vb2_sign_data()
117 s.c.total_size = s.sig_offset + s.sig_size; in vb2_sign_data()
/external/vboot_reference/firmware/lib21/
Dpacked_key.c51 uint32_t sig_size; in vb2_unpack_key() local
84 sig_size = vb2_rsa_sig_size(key->sig_alg); in vb2_unpack_key()
85 if (!sig_size) in vb2_unpack_key()
Dcommon.c205 sig->sig_offset, sig->sig_size); in vb2_verify_signature()
213 if (sig->sig_size != expect_sig_size) in vb2_verify_signature()
242 if (sig->sig_size != key_sig_size) in vb2_verify_digest()
/external/vboot_reference/tests/
Dvboot_common2_tests.c63 sig->sig_size -= 16; in VerifyDataTest()
66 sig->sig_size += 16; in VerifyDataTest()
100 sig->sig_size = 1; in VerifyDigestTest()
180 h->preamble_signature.sig_size--; in VerifyKernelPreambleTest()
194 h->body_signature.sig_size = 0; in VerifyKernelPreambleTest()
Dvboot_common3_tests.c95 h->key_block_checksum.sig_size /= 2; in KeyBlockVerifyTest()
113 h->key_block_signature.sig_size--; in KeyBlockVerifyTest()
229 h->preamble_signature.sig_size--; in VerifyFirmwarePreambleTest()
245 h->body_signature.sig_size = 0; in VerifyFirmwarePreambleTest()
Dvb20_common_tests.c148 .sig_size = 128}; in test_helper_functions()
161 .sig_size = 4}; in test_helper_functions()
Dvb20_common2_tests.c86 uint32_t sig_total_size = sig->sig_offset + sig->sig_size; in test_verify_data()
121 sig2->sig_size -= 16; in test_verify_data()
Dvb20_common3_tests.c113 h->keyblock_signature.sig_size--; in test_verify_keyblock()
259 h->preamble_signature.sig_size--; in test_verify_fw_preamble()
277 h->body_signature.sig_size = 0; in test_verify_fw_preamble()
Dvboot_firmware_tests.c192 return sig->sig_size; in VerifyDigest()
337 mpreamble[0].body_signature.sig_size = 1; in LoadFirmwareTest()
427 mpreamble[0].body_signature.sig_size = 1; /* Mock bad sig */ in LoadFirmwareTest()
Dvb21_common2_tests.c151 sig2->sig_size += 4; in test_verify_signature()
215 sig2->sig_size -= 16; in test_verify_data()
Dvb20_api_tests.c82 pre->body_signature.sig_size = mock_sig_size; in reset_common_data()
382 pre->body_signature.sig_size++; in check_hash_tests()
/external/vboot_reference/host/lib/include/
Dhost_signature.h19 uint64_t sig_size, uint64_t data_size);
23 VbSignature* SignatureAlloc(uint64_t sig_size, uint64_t data_size);
/external/vboot_reference/firmware/lib/
Dvboot_common.c100 sig->sig_offset, sig->sig_size); in VerifySignatureInside()
150 (unsigned)sig->sig_size, siglen_map[key->algorithm], in VerifyData()
152 if (sig->sig_size != siglen_map[key->algorithm]) { in VerifyData()
155 (int)sig->sig_size, siglen_map[key->algorithm], in VerifyData()
174 if (sig->sig_size != siglen_map[key->algorithm]) { in VerifyDigest()
231 if (sig->sig_size != SHA512_DIGEST_SIZE) { in KeyBlockVerify()
/external/vboot_reference/firmware/lib20/
Dcommon.c64 sig->sig_offset, sig->sig_size); in vb2_verify_signature_inside()
74 if (sig->sig_size != vb2_rsa_sig_size(key->sig_alg)) { in vb2_verify_digest()
77 sig->sig_size, vb2_rsa_sig_size(key->sig_alg), in vb2_verify_digest()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h51 uint32_t sig_size; member
/external/vboot_reference/firmware/lib21/include/
Dvb2_struct.h206 uint32_t sig_size; member
/external/vboot_reference/firmware/include/
Dvboot_struct.h32 uint64_t sig_size; member
/external/vboot_reference/futility/
Dcmd_vbutil_keyblock.c173 if (block->key_block_signature.sig_size && signpubkey) { in Unpack()
/external/autotest/client/cros/faft/utils/
Dflashrom_handler.py502 sig_size = os.path.getsize(sig_name)
521 pad = ('%c' % 0) * (sig_size - os.path.getsize(sig_name))

12