Skip to content

Xilinx asu ecc standalone - #11053

Open
night1rider wants to merge 11 commits into
wolfSSL:masterfrom
night1rider:Xilinx-ASU-ECC-standalone
Open

Xilinx asu ecc standalone#11053
night1rider wants to merge 11 commits into
wolfSSL:masterfrom
night1rider:Xilinx-ASU-ECC-standalone

Conversation

@night1rider

@night1rider night1rider commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@night1rider night1rider self-assigned this Aug 4, 2026

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src

Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
@night1rider
night1rider force-pushed the Xilinx-ASU-ECC-standalone branch 2 times, most recently from db9d0e3 to 0478f96 Compare August 11, 2026 21:17

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 21
21 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 14
14 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs
Failed targets: wolfcrypt-src, wolfssl-src

Findings: 10
10 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs
Failed targets: wolfcrypt-src, wolfssl-src

Findings: 6
6 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs
Failed targets: wolfcrypt-src, wolfssl-src

Findings: 6
6 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs
Failed targets: wolfcrypt-src, wolfssl-src

Findings: 5
5 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@night1rider
night1rider force-pushed the Xilinx-ASU-ECC-standalone branch 2 times, most recently from 0db5b02 to 300bbb4 Compare August 13, 2026 05:17

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfssl-bugs
Failed targets: wolfcrypt-src, wolfssl-src

Findings: 4
4 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 6
6 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 5
5 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 8
8 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Blocking findings require changes before merge.

Comment thread wolfcrypt/benchmark/benchmark.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c Outdated
Comment thread wolfcrypt/benchmark/benchmark.c Outdated
Comment thread wolfcrypt/benchmark/benchmark.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
@philljj philljj assigned night1rider and unassigned wolfSSL-Bot Aug 19, 2026
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c
Comment thread wolfcrypt/benchmark/benchmark.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c Outdated
Comment thread wolfcrypt/benchmark/benchmark.c Outdated
Comment thread wolfcrypt/benchmark/benchmark.c

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11053

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecc.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecies.c
Comment thread wolfcrypt/src/port/xilinx/versal_gen2_asu/asu_ecdh.c
@night1rider
night1rider force-pushed the Xilinx-ASU-ECC-standalone branch from ff931d8 to 5d9b2e0 Compare August 19, 2026 18:40

#ifdef HAVE_ED448
void bench_ed448KeyGen(void)
void bench_ed448KeyGen(int useDeviceID)

@philljj philljj Aug 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think the wc_ed448_make_key implementation supports crypto callbacks (it's only sign / verify). So the useDeviceID is unused.

/* Extra row using a 16-byte IV alongside the 12-byte default above. The
* stats list keeps the label by pointer, so it must outlive this call. */
{
static char gmacIvStr[40];

@philljj philljj Aug 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is memory or thread safe.

gmacIvStr gets passed down

  1. bench_gmac_internal
  2. bench_stats_sym_finish
  3. bench_stats_add()

In bench_stats_add() it becomes const char * desc, which does

bstat->desc == desc 

so it shallow copies the gmacIvStr pointer.

ret = wc_InitRng_ex(&myrng, HEAP_HINT,
useDeviceID ? devId : INVALID_DEVID);
#else
ret = wc_InitRng(&myrng);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The useDeviceID is unused when HAVE_FIPS

@philljj philljj assigned night1rider and unassigned wolfSSL-Bot Aug 20, 2026
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.

4 participants