Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Fix _plaintext is too small, and fix dependency in Makefile #267

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

LeoneChen
Copy link
Contributor

No description provided.

@LeoneChen LeoneChen mentioned this pull request Jun 6, 2023
@LeoneChen
Copy link
Contributor Author

LeoneChen commented Jun 6, 2023

I think RSA_size(key) at least bigger then 42.

Related to stack oob in issue #265

core/Makefile Outdated
@@ -207,7 +207,7 @@ Enclave/enclave_hsm_t.o: Enclave/enclave_hsm_t.c
@$(CXX) $(Enclave_C_Flags) -c $< -o $@
@echo "CXX <= $<"

Enclave/%.o: Enclave/%.cpp
Enclave/%.o: Enclave/%.cpp Enclave/enclave_hsm_t.c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.c or .h ?

@LeoneChen
Copy link
Contributor Author

LeoneChen commented Jun 7, 2023

Oh, sorry, I update it currently, please see newest commit

I find above BUGs via fuzzing and sanitizer, thus may not so familiar with code context

core/Makefile Outdated
@@ -203,11 +203,13 @@ Enclave/enclave_hsm_t.c: $(SGX_EDGER8R) Enclave/enclave_hsm.edl
@cd Enclave && $(SGX_EDGER8R) --trusted ../Enclave/enclave_hsm.edl --search-path ../Enclave --search-path ../Enclave/self_test --search-path $(SGX_SDK)/include --search-path $(OPENSSL_PATH)/include
@echo "GEN => $@"

Enclave/enclave_hsm_t.h: Enclave/enclave_hsm_t.c
Copy link
Contributor

@yang8621 yang8621 Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Our existing codes are not standard. Could we change Line 202 to:
Enclave/enclave_hsm_t.h : .....
And update your line to:
Enclave/enclave_hsm_t.c: Enclave/enclave_hsm_t.h

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, of course

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated commit

@yang8621 yang8621 requested a review from syan10 June 7, 2023 06:22
@syan10 syan10 merged commit 7a54667 into intel:main Jun 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants