Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Tinycrypt for mbedTLS 3.x support #243

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

rosahay-silabs
Copy link
Collaborator

Problem / Feature

What is being fixed? What is the feature being added? Examples:

  • tinycrypt was integrated with mbedTLS 2.x
  • due to recent PSRIT, mbedTLS 3.x was recommended to be integrated.

Change overview

  • Remove unused source from tinycrypt.
  • Adding additional changes to existing tinycrypt source to fix compilation issues.
  • Restyling the source files as maintained in armbed barebone source.

Testing

  • Manually tested with SiWx917

mkardous-silabs and others added 10 commits November 22, 2024 22:00
* clean up

* Add mld6 source file with include fix

* Restyle Add mld6 source file to fix missing include (#215)

* Restyled by whitespace

* Restyled by clang-format

* Restyled by prettier-markdown

---------

Co-authored-by: Restyled.io <[email protected]>

---------

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <[email protected]>
#include <stddef.h>
#include <stdint.h>

#if defined(SL_MBEDTLS_USE_TINYCRYPT)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this define guard since we are in a tinycript specific file?

Comment on lines +13 to +14
// int mbedtls_platform_memmove(void *dst, const void *src, size_t num);
// int mbedtls_platform_memequal(const void *buf1, const void *buf2, size_t num);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should these be commented / deleted?

#include MBEDTLS_CONFIG_FILE
#endif

#if defined(SL_MBEDTLS_USE_TINYCRYPT)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same question

Copy link
Collaborator

Choose a reason for hiding this comment

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

what was changed in this file? Hard to tell from the diff

Copy link
Collaborator

Choose a reason for hiding this comment

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

same question

Copy link
Collaborator

Choose a reason for hiding this comment

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

where were these function taken from?

@@ -12,6 +12,7 @@
#define MBEDTLS_ASN1_WRITE_C
#define MBEDTLS_BASE64_C
#define MBEDTLS_CIPHER_C
#define MBEDTLS_CIPHER_PADDING_PKCS7
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we revert this change since the define was already present?

@@ -12,6 +12,7 @@
#define MBEDTLS_ASN1_WRITE_C
#define MBEDTLS_BASE64_C
#define MBEDTLS_CIPHER_C
#define MBEDTLS_CIPHER_PADDING_PKCS7
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we revert this change since the define was already present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants