Просмотр исходного кода

Use explicit_bzero to clear gcm context

The impl of gcm_zero_ctx does nothing to avoid dead-store elimination.
twisted_pear 2 лет назад
Родитель
Сommit
aafd85772b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      esubghz_chat.c

+ 1 - 1
esubghz_chat.c

@@ -873,7 +873,7 @@ int32_t esubghz_chat(void)
 	// clear the key and potential password
 	// clear the key and potential password
 	esubghz_chat_explicit_bzero(state->text_input_store,
 	esubghz_chat_explicit_bzero(state->text_input_store,
 			sizeof(state->text_input_store));
 			sizeof(state->text_input_store));
-	gcm_zero_ctx(&(state->gcm_ctx));
+	esubghz_chat_explicit_bzero(&(state->gcm_ctx), sizeof(state->gcm_ctx));
 
 
 	furi_stream_buffer_free(state->rx_collection_buffer);
 	furi_stream_buffer_free(state->rx_collection_buffer);