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

ARMv7-M, ARMv8-M using Thumb2 version of ARMASM #515

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

danielinux
Copy link
Member

No description provided.

@danielinux
Copy link
Member Author

Benchmark did not show relevant differences in terms of size or performance between the two assembly implementations. Selecting thumb-2 as suggested for cortex-M targets.

@rizlik rizlik merged commit da1e869 into wolfSSL:master Oct 30, 2024
99 checks passed
@danielinux
Copy link
Member Author

Benchmarks with thumb2 (Compare with #513)

Name Configuration Bootloader size Stack size Image header size Boot time
SHA2 only SIGN=NONE 8780 1216 256 .386
SHA384 only SIGN=NONE HASH=SHA384 18088 3760 256 .688
SHA3 only SIGN=NONE HASH=SHA3 8552 1216 256 1.161
SHA2 only,small SIGN=NONE NO_ASM=1 5564 1216 256 .495
rsa2048 SIGN=RSA2048 15060 17568 512 .496
rsa3072 SIGN=RSA3072 15200 12288 512 .605
rsa4096 SIGN=RSA4096 15344 18064 1024 .778
rsa4096 with sha384 SIGN=RSA4096 HASH=SHA384 25036 18064 1024 1.061
ecdsa256 SIGN=ECC256 21840 7632 256 .603
ecdsa384 SIGN=ECC384 21424 11216 512 2.616
ecdsa521 SIGN=ECC521 25100 8288 512 3.765
ecdsa256 with small stack SIGN=ECC384 WOLFBOOT_SMALL_STACK=1 22180 5880 512 2.567
ecdsa256 with fast math SIGN=ECC384 SP_MATH=0 21424 11216 512 2.612
ecdsa256, no asm SIGN=ECC256 NO_ASM=1 14416 7632 256 3.374
ecdsa384, no asm SIGN=ECC384 NO_ASM=1 15900 11216 512 11.563
ecdsa521, no asm SIGN=ECC521 NO_ASM=1 14652 8288 512 25.805
ecdsa384 with sha384 SIGN=ECC384 HASH=SHA384 30716 11216 512 2.985
ed25519 with sha384, small SIGN=ED25519 HASH=SHA384 NO_ASM=1 10976 5000 256 10.080
ed25519 fast SIGN=ED25519 NO_ASM=0 27828 5000 256 15.197
ed448 SIGN=ED448 17640 4578 512 45.402
ML_DSA-44 SIGN=ML_DSA ML_DSA_LEVEL=2 IMAGE_SIGNATURE_SIZE=2420 IMAGE_HEADER_SIZE=8192 19596 19544 8192 .583
ML_DSA-65 SIGN=ML_DSA ML_DSA_LEVEL=3 IMAGE_SIGNATURE_SIZE=3309 IMAGE_HEADER_SIZE=8192 20236 19544 8192 .692
ML_DSA-87 SIGN=ML_DSA ML_DSA_LEVEL=5 IMAGE_SIGNATURE_SIZE=4627 IMAGE_HEADER_SIZE=12288 20876 19544 12288 .865
LMS 1-10-8 SIGN=LMS LMS_LEVELS=1 LMS_HEIGHT=10 LMS_WINTERNITZ=8 IMAGE_HEADER_SIZE=4096 IMAGE_SIGNATURE_SIZE=1456 11536 1320 4096 1.451
XMSS-SHA2_10_256' XMSS_PARAMS=XMSS-SHA2_10_256 SIGN=XMSS IMAGE_SIGNATURE_SIZE=2500 IMAGE_HEADER_SIZE=8192 12200 9352 8192 1.166

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

Successfully merging this pull request may close these issues.

2 participants