RTEMS | cpukit/libcrypt: Add SHA3-512 Keccak Implementation (!687)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Tue Sep 2 14:42:17 UTC 2025
Wayne Thornton commented on a discussion on cpukit/include/crypt.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/687#note_129847
> + unsigned int rate;
> + unsigned int capacity;
> + unsigned int pos;
> +} sha3_ctx_t;
> +
> +void sha3_init(sha3_ctx_t *ctx);
> +void sha3_update(sha3_ctx_t *ctx, const void *data, size_t len);
> +void sha3_final(sha3_ctx_t *ctx, uint8_t *out, size_t outlen);
> +
> +void _crypt_to64(char *s, unsigned long v, int n);
> +
> +/* Dirty hack to re-introduce the C11 memset_s function
> +* which is missing from the RTEMS C11 compiler but which
> +* is used in the libcrypt functions to securely erase
> +* sensitive data after use.
> +*/
The term "dirty hack" was perhaps misplaced for usage here. I have amended and cleaned up the comment for clarity.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/687#note_129847
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250902/c6a397bc/attachment-0001.htm>
More information about the bugs
mailing list