Home
last modified time | relevance | path

Searched refs:key_block (Results 1 – 17 of 17) sorted by relevance

/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c88 VbKeyBlockHeader *key_block; in Vblock() local
109 key_block = in Vblock()
111 if (!key_block) { in Vblock()
159 i = ((1 != fwrite(key_block, key_block_size, 1, f)) || in Vblock()
176 VbKeyBlockHeader *key_block; in Verify() local
216 key_block = (VbKeyBlockHeader *) blob; in Verify()
217 if (0 != KeyBlockVerify(key_block, blob_size, sign_key, 0)) { in Verify()
222 now += key_block->key_block_size; in Verify()
225 data_key = &key_block->data_key; in Verify()
227 key_block->key_block_size); in Verify()
[all …]
Dcmd_show.c58 static void show_keyblock(VbKeyBlockHeader *key_block, const char *name, in show_keyblock() argument
68 key_block->key_block_size); in show_keyblock()
70 key_block->key_block_flags); in show_keyblock()
71 if (key_block->key_block_flags & KEY_BLOCK_FLAG_DEVELOPER_0) in show_keyblock()
73 if (key_block->key_block_flags & KEY_BLOCK_FLAG_DEVELOPER_1) in show_keyblock()
75 if (key_block->key_block_flags & KEY_BLOCK_FLAG_RECOVERY_0) in show_keyblock()
77 if (key_block->key_block_flags & KEY_BLOCK_FLAG_RECOVERY_1) in show_keyblock()
81 VbPublicKey *data_key = &key_block->data_key; in show_keyblock()
278 VbKeyBlockHeader *key_block = (VbKeyBlockHeader *)state->my_area->buf; in futil_cb_show_fw_preamble() local
288 if (VBOOT_SUCCESS != KeyBlockVerify(key_block, len, NULL, 1)) { in futil_cb_show_fw_preamble()
[all …]
Ddump_kernel_config_lib.c75 VbKeyBlockHeader key_block; in FindKernelConfigFromStream() local
81 if (read_fn(ctx, &key_block, sizeof(key_block)) != sizeof(key_block)) { in FindKernelConfigFromStream()
85 ssize_t to_skip = key_block.key_block_size - sizeof(key_block); in FindKernelConfigFromStream()
90 now += key_block.key_block_size; in FindKernelConfigFromStream()
Dvb1_helper.c720 VbKeyBlockHeader *key_block = (VbKeyBlockHeader *)buf; in recognize_vblock1() local
726 if (VBOOT_SUCCESS == KeyBlockVerify(key_block, len, NULL, 1)) { in recognize_vblock1()
727 rsa = PublicKeyToRSA(&key_block->data_key); in recognize_vblock1()
728 uint32_t more = key_block->key_block_size; in recognize_vblock1()
Dcmd_sign.c140 VbKeyBlockHeader *key_block = (VbKeyBlockHeader *)state->my_area->buf; in futil_cb_sign_fw_vblock() local
148 if (VBOOT_SUCCESS != KeyBlockVerify(key_block, len, NULL, 1)) { in futil_cb_sign_fw_vblock()
155 RSAPublicKey *rsa = PublicKeyToRSA(&key_block->data_key); in futil_cb_sign_fw_vblock()
162 uint32_t more = key_block->key_block_size; in futil_cb_sign_fw_vblock()
/external/vboot_reference/firmware/lib/
Dvboot_firmware.c92 VbKeyBlockHeader *key_block; in LoadFirmware() local
104 key_block = (VbKeyBlockHeader *) in LoadFirmware()
109 key_block = (VbKeyBlockHeader *) in LoadFirmware()
120 if (!(key_block->key_block_flags & in LoadFirmware()
129 if (!(key_block->key_block_flags & KEY_BLOCK_FLAG_RECOVERY_0)) { in LoadFirmware()
136 if ((0 != KeyBlockVerify(key_block, vblock_size, in LoadFirmware()
144 key_version = key_block->data_key.key_version; in LoadFirmware()
164 data_key = PublicKeyToRSA(&key_block->data_key); in LoadFirmware()
173 ((uint8_t *)key_block + key_block->key_block_size); in LoadFirmware()
176 vblock_size - key_block->key_block_size, in LoadFirmware()
[all …]
Dvboot_kernel.c145 VbKeyBlockHeader *key_block; in LoadKernel() local
192 key_block = (VbKeyBlockHeader*)kbuf; in LoadKernel()
193 if (0 != KeyBlockVerify(key_block, KBUF_SIZE, in LoadKernel()
218 if (0 != KeyBlockVerify(key_block, KBUF_SIZE, in LoadKernel()
228 if (!(key_block->key_block_flags & in LoadKernel()
235 if (!(key_block->key_block_flags & in LoadKernel()
244 key_version = key_block->data_key.key_version; in LoadKernel()
272 data_key = PublicKeyToRSA(&key_block->data_key); in LoadKernel()
281 (kbuf + key_block->key_block_size); in LoadKernel()
284 KBUF_SIZE - key_block->key_block_size, in LoadKernel()
[all …]
/external/boringssl/src/crypto/hmac/
Dhmac.c119 uint8_t key_block[HMAC_MAX_MD_CBLOCK]; in HMAC_Init_ex() local
123 assert(block_size <= sizeof(key_block)); in HMAC_Init_ex()
128 !EVP_DigestFinal_ex(&ctx->md_ctx, key_block, &key_block_len)) { in HMAC_Init_ex()
132 assert(key_len >= 0 && key_len <= sizeof(key_block)); in HMAC_Init_ex()
133 memcpy(key_block, key, key_len); in HMAC_Init_ex()
138 memset(&key_block[key_block_len], 0, sizeof(key_block) - key_block_len); in HMAC_Init_ex()
142 pad[i] = 0x36 ^ key_block[i]; in HMAC_Init_ex()
150 pad[i] = 0x5c ^ key_block[i]; in HMAC_Init_ex()
/external/vboot_reference/host/lib/
Dhost_keyblock.c160 int KeyBlockWrite(const char* filename, const VbKeyBlockHeader* key_block) { in KeyBlockWrite() argument
162 if (0 != WriteFile(filename, key_block, key_block->key_block_size)) { in KeyBlockWrite()
/external/boringssl/src/ssl/
Ds3_enc.c230 if (s->s3->tmp.key_block != NULL) { in ssl3_cleanup_key_block()
231 OPENSSL_cleanse(s->s3->tmp.key_block, s->s3->tmp.key_block_length); in ssl3_cleanup_key_block()
232 OPENSSL_free(s->s3->tmp.key_block); in ssl3_cleanup_key_block()
233 s->s3->tmp.key_block = NULL; in ssl3_cleanup_key_block()
Dt1_enc.c336 key_data = s->s3->tmp.key_block; in tls1_change_cipher_state()
360 if (key_data - s->s3->tmp.key_block != s->s3->tmp.key_block_length) { in tls1_change_cipher_state()
443 s->s3->tmp.key_block = p; in tls1_setup_key_block()
Ds3_pkt.c1055 if (s->s3->tmp.key_block == NULL) { in ssl3_do_change_cipher_spec()
/external/vboot_reference/host/lib/include/
Dhost_keyblock.h43 int KeyBlockWrite(const char* filename, const VbKeyBlockHeader* key_block);
/external/wpa_supplicant_8/src/tls/
Dtlsv1_server.c61 u8 key_block[TLS_MAX_KEY_BLOCK_LEN]; in tlsv1_server_derive_keys() local
90 key_block, key_block_len)) { in tlsv1_server_derive_keys()
95 key_block, key_block_len); in tlsv1_server_derive_keys()
97 pos = key_block; in tlsv1_server_derive_keys()
Dtlsv1_client.c54 u8 key_block[TLS_MAX_KEY_BLOCK_LEN]; in tls_derive_keys() local
84 key_block, key_block_len)) { in tls_derive_keys()
89 key_block, key_block_len); in tls_derive_keys()
91 pos = key_block; in tls_derive_keys()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_module_tests.c845 const u8 key_block[] = { in test_eap_fast() local
938 buf, sizeof(key_block)) || in test_eap_fast()
939 os_memcmp(key_block, buf, sizeof(key_block)) != 0) { in test_eap_fast()
/external/boringssl/src/include/openssl/
Dssl3.h465 uint8_t *key_block; member