wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Feature/multiple aes siv ads

Open ptsiewie opened this issue 1 year ago • 2 comments

Description

The AES SIV algorithm implementation in WolfSSL would accept only exactly one vector of associated data, even though the definition of the algorithm of RFC5297 allows any number no larger than 126.

Fixes zd#18509

Testing

The tests in test.c have been extended to include the two examples given in the RFC5297 document. The second of these two examples uses two ADs.

Checklist

  • [x] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

ptsiewie avatar Aug 28 '24 09:08 ptsiewie

Can one of the admins verify this patch?

wolfSSL-Bot avatar Aug 28 '24 09:08 wolfSSL-Bot

Okay to test. Contributor agreement in progress.

dgarske avatar Aug 28 '24 14:08 dgarske

Okay to test. Contributor agreement in progress. @ptsiewie sorry for the delay in getting your agreement approved. Expect it next week.

dgarske avatar Aug 29 '24 14:08 dgarske

The old API goes through the new API so we will always include code.

SparkiDev avatar Aug 29 '24 22:08 SparkiDev

Hi @ptsiewie

Errors in ctidy check

TLDR: change '1u' to '1U'

Error: shellcheck configure.../var/lib/jenkins/workspace/PRB-multi-test-script/wolfssl/wolfcrypt/src/aes.c:13850:43: warning: integer literal has suffix 'u', which is not uppercase [readability-uppercase-literal-suffix] return AesSivCipher(key, keySz, &ad0, 1u, nonce, nonceSz, in, inSz, ^~ U /var/lib/jenkins/workspace/PRB-multi-test-script/wolfssl/wolfcrypt/src/aes.c:13864:43: warning: integer literal has suffix 'u', which is not uppercase [readability-uppercase-literal-suffix] return AesSivCipher(key, keySz, &ad0, 1u, nonce, nonceSz, in, inSz, ^~ U

SparkiDev avatar Aug 29 '24 22:08 SparkiDev

Okay to test. Retest this please

dgarske avatar Aug 30 '24 18:08 dgarske

Reminder, contributor agreement in progress, but not yet approved. Person needed for that is on vacation this week.

dgarske avatar Aug 30 '24 18:08 dgarske

Contributor agreement approved and on file. Thank you @ptsiewie!

dgarske avatar Sep 10 '24 00:09 dgarske

Do I need to do something before this branch will be merged?

ptsiewie avatar Sep 12 '24 10:09 ptsiewie

Hi @ptsiewie ,

Thank you for your work on this. I have merged it. Sorry about the delay.

Thanks, David Garske, wolfSSL

dgarske avatar Sep 12 '24 14:09 dgarske