/external/vboot_reference/host/lib/ |
D | host_signature.c | 24 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()
|
D | host_common.c | 27 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/ |
D | 2rsa.c | 193 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/ |
D | rsa_utility.c | 92 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/ |
D | host_keyblock.c | 35 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()
|
D | host_fw_preamble.c | 39 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()
|
D | host_signature.c | 113 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/ |
D | packed_key.c | 51 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()
|
D | common.c | 205 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/ |
D | vboot_common2_tests.c | 63 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()
|
D | vboot_common3_tests.c | 95 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()
|
D | vb20_common_tests.c | 148 .sig_size = 128}; in test_helper_functions() 161 .sig_size = 4}; in test_helper_functions()
|
D | vb20_common2_tests.c | 86 uint32_t sig_total_size = sig->sig_offset + sig->sig_size; in test_verify_data() 121 sig2->sig_size -= 16; in test_verify_data()
|
D | vb20_common3_tests.c | 113 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()
|
D | vboot_firmware_tests.c | 192 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()
|
D | vb21_common2_tests.c | 151 sig2->sig_size += 4; in test_verify_signature() 215 sig2->sig_size -= 16; in test_verify_data()
|
D | vb20_api_tests.c | 82 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/ |
D | host_signature.h | 19 uint64_t sig_size, uint64_t data_size); 23 VbSignature* SignatureAlloc(uint64_t sig_size, uint64_t data_size);
|
/external/vboot_reference/firmware/lib/ |
D | vboot_common.c | 100 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/ |
D | common.c | 64 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/ |
D | vb2_struct.h | 51 uint32_t sig_size; member
|
/external/vboot_reference/firmware/lib21/include/ |
D | vb2_struct.h | 206 uint32_t sig_size; member
|
/external/vboot_reference/firmware/include/ |
D | vboot_struct.h | 32 uint64_t sig_size; member
|
/external/vboot_reference/futility/ |
D | cmd_vbutil_keyblock.c | 173 if (block->key_block_signature.sig_size && signpubkey) { in Unpack()
|
/external/autotest/client/cros/faft/utils/ |
D | flashrom_handler.py | 502 sig_size = os.path.getsize(sig_name) 521 pad = ('%c' % 0) * (sig_size - os.path.getsize(sig_name))
|