Преглед на файлове

Use explicit_bzero to clear gcm context

The impl of gcm_zero_ctx does nothing to avoid dead-store elimination.
twisted_pear преди 2 години
родител
ревизия
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
 	esubghz_chat_explicit_bzero(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);