Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
embetrix committed Dec 19, 2024
1 parent 2ea77b0 commit 3c90bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stm32mp-sign-tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ int sign_stm32_image(std::vector<unsigned char>& image, const char* key_desc, co
std::vector<unsigned char> signature(sizeof(header.signature));
std::memset(signature.data(), 0, signature.size());
std::memcpy(signature.data() + (sizeof(header.signature) / 2 - r_bytes.size()), r_bytes.data(), r_bytes.size());
std::memcpy(signature.data() + sizeof(header.signature) / 2 + (sizeof(header.signature) / 2 - s_bytes.size()), s_bytes.data(), s_bytes.size());
std::memcpy(signature.data() + sizeof(header.signature) - s_bytes.size(), s_bytes.data(), s_bytes.size());
print_hex("Signature", signature);

std::memcpy(image.data() + offsetof(STM32Header, signature), signature.data(), signature.size());
Expand Down

0 comments on commit 3c90bf8

Please sign in to comment.