Home
last modified time | relevance | path

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

/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/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/boringssl/src/crypto/fipsmodule/hmac/
Dhmac.c129 uint8_t key_block[EVP_MAX_MD_BLOCK_SIZE]; in HMAC_Init_ex() local
133 assert(block_size <= sizeof(key_block)); in HMAC_Init_ex()
138 !EVP_DigestFinal_ex(&ctx->md_ctx, key_block, &key_block_len)) { in HMAC_Init_ex()
142 assert(key_len <= sizeof(key_block)); in HMAC_Init_ex()
143 OPENSSL_memcpy(key_block, key, key_len); in HMAC_Init_ex()
148 OPENSSL_memset(&key_block[key_block_len], 0, sizeof(key_block) - key_block_len); in HMAC_Init_ex()
152 pad[i] = 0x36 ^ key_block[i]; in HMAC_Init_ex()
160 pad[i] = 0x5c ^ key_block[i]; in HMAC_Init_ex()
/external/boringssl/src/fipstools/
Dcavp_tlskdf_test.cc83 std::vector<uint8_t> key_block(key_block_len); in TestTLSKDF() local
86 md, key_block.data(), key_block.size(), master_secret, in TestTLSKDF()
96 EncodeHex(key_block.data(), key_block.size()).c_str()); in TestTLSKDF()
/external/boringssl/src/ssl/
Dt1_enc.cc211 Span<const uint8_t> key_block = *key_block_cache; in tls1_configure_aead() local
215 mac_secret = key_block.subspan(0, mac_secret_len); in tls1_configure_aead()
216 key = key_block.subspan(2 * mac_secret_len, key_len); in tls1_configure_aead()
217 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len, iv_len); in tls1_configure_aead()
220 mac_secret = key_block.subspan(mac_secret_len, mac_secret_len); in tls1_configure_aead()
221 key = key_block.subspan(2 * mac_secret_len + key_len, key_len); in tls1_configure_aead()
222 iv = key_block.subspan(2 * mac_secret_len + 2 * key_len + iv_len, iv_len); in tls1_configure_aead()
247 return tls1_configure_aead(hs->ssl, direction, &hs->key_block, in tls1_change_cipher_state()
Dhandoff.cc449 Array<uint8_t> key_block; in SSL_apply_handback() local
452 (!tls1_configure_aead(ssl, evp_aead_seal, &key_block, session->cipher, in SSL_apply_handback()
459 (!tls1_configure_aead(ssl, evp_aead_open, &key_block, session->cipher, in SSL_apply_handback()
Dinternal.h1557 Array<uint8_t> key_block;
/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/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.c55 u8 key_block[TLS_MAX_KEY_BLOCK_LEN]; in tls_derive_keys() local
85 key_block, key_block_len)) { in tls_derive_keys()
90 key_block, key_block_len); in tls_derive_keys()
92 pos = key_block; in tls_derive_keys()
/external/scapy/scapy/layers/tls/
Dsession.py132 key_block = self.prf.derive_key_block(master_secret,
152 mac_secret = key_block[start:end]
163 cipher_secret = key_block[start:end]
200 iv = key_block[start:end]
211 fixed_iv = key_block[start:end]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_module_tests.c864 const u8 key_block[] = { in test_eap_fast() local
959 buf, sizeof(key_block)) || in test_eap_fast()
960 os_memcmp(key_block, buf, sizeof(key_block)) != 0) { in test_eap_fast()
/external/u-boot/fs/ubifs/
Dgc.c137 unsigned int blka = key_block(c, &sa->key); in data_nodes_cmp()
138 unsigned int blkb = key_block(c, &sb->key); in data_nodes_cmp()
Dkey.h385 static inline unsigned int key_block(const struct ubifs_info *c, in key_block() function
Dtnc.c1506 unsigned int block = key_block(c, &bu->key); in ubifs_tnc_get_bu_keys()
1572 next_block = key_block(c, key); in ubifs_tnc_get_bu_keys()
1614 block = key_block(c, &bu->key) + bu->blk_cnt; in ubifs_tnc_get_bu_keys()
1617 if (key_block(c, &bu->zbranch[bu->cnt - 1].key) < block) in ubifs_tnc_get_bu_keys()
3313 block = key_block(c, key); in dbg_check_inode_size()
Ddebug.c122 get_key_type(type), key_block(c, key)); in dbg_snprintf_key()
2383 blka = key_block(c, &sa->key); in dbg_check_data_nodes_order()
2384 blkb = key_block(c, &sb->key); in dbg_check_data_nodes_order()
2473 hasha = key_block(c, &sa->key); in dbg_check_nondata_nodes_order()
2474 hashb = key_block(c, &sb->key); in dbg_check_nondata_nodes_order()
Dreplay.c609 key_block(c, &snod->key) * in replay_bud()