소스 검색

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);