Skip to content

Conversation

@philljj
Copy link
Contributor

@philljj philljj commented Dec 28, 2025

Description

Support wolfcrypt FIPS in FreeBSD kernel.

Adds a bsdkm/README.md

Requires:

Testing

See readme:

fips_hash=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
./configure --enable-freebsdkm --enable-cryptonly --enable-crypttests --enable-fips=v6 \
  CFLAGS="-DWOLFCRYPT_FIPS_CORE_HASH_VALUE=$fips_hash" && \
  make && sudo kldload bsdkm/libwolfssl.ko

@philljj philljj self-assigned this Dec 28, 2025
@devin-ai-integration

This comment was marked as spam.

@philljj
Copy link
Contributor Author

philljj commented Dec 28, 2025

Retest this please.

(Found unhandled jenkins exception).

@philljj philljj requested a review from douzzer December 29, 2025 16:43
@philljj philljj assigned wolfSSL-Bot and unassigned philljj Dec 30, 2025
Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

small stuff -- just the trivial refactor to use WOLFSSL_DEBUG_PRINTF().

Comment on lines +47 to +48
#define wc_km_printf printf
#define wc_km_print_err printf
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need these -- the existing WOLFSSL_DEBUG_PRINTF() does the trick nicely.

Comment on lines +1433 to +1434
#define wc_km_print_err pr_err

Copy link
Contributor

Choose a reason for hiding this comment

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

as noted above, WOLFSSL_DEBUG_PRINTF() is the existing way to do this.

(void)arg;

return (ret);
return (error);
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting -- so in BSD, error codes are returned as positive numbers?

@philljj philljj assigned philljj and unassigned wolfSSL-Bot Jan 9, 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.

3 participants