From 44d8dcc202c39a05a0f5f3a1172758f3483a4d70 Mon Sep 17 00:00:00 2001 From: Ken MacKay Date: Thu, 6 Jun 2013 21:36:03 -0700 Subject: [PATCH] Added stack usage information. --- README.md | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/README.md b/README.md index 2280fe9..bb0ac9e 100644 --- a/README.md +++ b/README.md @@ -213,3 +213,100 @@ In these tests, the measured speed is the time to verify an ECDSA signature. The +### Maximum stack usage ### + +In these tests, `ECC_ASM` was defined to `ecc_asm_thumb` in all cases. The table values are the maximum possible stack usage for each function, in btyes. + +#### No other optimizations (smallest code size) #### + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Curve:secp128r1secp192r1secp256r1secp384r1
ecc_make_key()392488624848
ecc_valid_public_key()184224304416
ecdh_shared_secret()416528680936
ecdsa_sign()4485687281000
ecdsa_verify()4806167921096
+ +#### All optimizations (fastest) #### + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Curve:secp128r1secp192r1secp256r1secp384r1
ecc_make_key()4726007601056
ecc_valid_public_key()192232304424
ecdh_shared_secret()4966408161144
ecdsa_sign()5286808641208
ecdsa_verify()4886247921104