"aesctr" test failing on ESP32-C3
- Dominant language
- C
- Stars
- 465
- Forks
- 779
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
While testing the `esp32c3-devkit:crypto` configuration I found out that the `aesctr` is the only test that is failing.
This issue was also confirmed by @acassis. Does anyone have any idea of why this is happening?
Thanks in advance!
Log:
```
nsh> aescbc
aescbc test ok
nsh> aesxts
OK encrypt test vector 0
OK decrypt test vector 0
OK encrypt test vector 1
OK decrypt test vector 1
OK encrypt test vector 2
OK decrypt test vector 2
OK encrypt test vector 3
OK decrypt test vector 3
OK encrypt test vector 4
OK decrypt test vector 4
OK encrypt test vector 5
OK decrypt test vector 5
OK encrypt test vector 6
OK decrypt test vector 6
OK encrypt test vector 7
OK decrypt test vector 7
OK encrypt test vector 8
OK decrypt test vector 8
OK encrypt test vector 9
OK decrypt test vector 9
OK encrypt test vector 10
OK decrypt test vector 10
OK encrypt test vector 11
OK decrypt test vector 11
OK encrypt test vector 12
OK decrypt test vector 12
OK encrypt test vector 13
OK decrypt test vector 13
nsh> des3cbc
ok, encrypt with /dev/crypto, decrypt with /dev/crypto
nsh> hmac
hmac md5 success
hmac md5 success
hmac md5 success
hmac sha1 success
hmac sha1 success
hmac sha1 success
hmac sha256 success
hmac sha256 success
hmac sha256 success
nsh> aesctr
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCGSESSION: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCGSESSION: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCGSESSION: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
10: CIOCCRYPT: Invalid argument
10: crypt with /dev/crypto failed
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the esp32c3-devkit:crypto configuration and run the aesctr command, comparing it with the passing aescbc and aesxts commands. Trace the /dev/crypto CIOCCRYPT and CIOCGSESSION operations that report Invalid argument, then confirm the test completes successfully without those errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cryptography, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100