Thread View: muc.lists.freebsd.hackers
1 messages
1 total messages
Started by Enji Cooper (yaneurabeya)
Sat, 10 Oct 2026 07:50
Re: RFC: adding "jitterentropy" library to base
Author: Enji Cooper (yaneurabeya)
Date: Sat, 10 Oct 2026 07:50
Date: Sat, 10 Oct 2026 07:50
272 lines
21361 bytes
21361 bytes
--Apple-Mail=_1DCD15CA-C654-4A26-90BB-631A813D9FE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 23, 2026, at 1:57=E2=80=AFPM, Enji Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote: >=20 > I stand corrected with a single important point... >=20 >> On Apr 23, 2026, at 12:17=E2=80=AFPM, Enji Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote: >>=20 >> (cem@ and secteam@ BCCed so they can weigh in on this if they like) >> Hi, >> A key component for FreeBSD becoming NIST FIPS 140-3 compliant = was completed when FreeBSD upgraded from OpenSSL 3.0 to 3.5. One of the = other requirements for FIPS 140-3 (and post-quantum cryptography) is = having sufficient random entropy in the system to generate sufficiently = random numbers. NIST SP800-90B provides some guidelines on how to = achieve that [1]. >> One capability in the base system that provides such a guarantee = is RDSEED [2], but that is CPU/hardware-specific and does not support = all possible architectures today. Furthermore, there are discussions of = challenges around certifying RDSEED in derivative distributions = (including the commit where the support was introduced). >> The jitterentropy project provides an alternative mechanism for = this in userspace that is less CPU/hardware-specific [3] [4].. >> This component already exists in ports [4], but in order to = ensure that the base system version of OpenSSL can capitalize on it, it = needs to be integrated into base and built alongside libcrypto. >> My proposal for how to achieve this is included below, along = with some deliverables, rough implementation-specific details, and rough = timelines. >> Does anyone have any thoughts on the proposed plan sketched out = below? >> Thank you, >> -Enji >>=20 >> PS I CCed the ports maintainer (swills@), several folks from = HPE/Juniper (since they provided the RDSEED implementation), secteam@, = etc, to obtain feedback on this work. >>=20 >> # Objective 1: add jitterentropy-library to the base system >>=20 >> - Do a vendor import of the component. >> - Add to the base system: >> - Given that it=E2=80=99s a cryptographic-related component, = crypto/jitterentropy seems like the most appropriate location for the = library. >> - Conditionally enable support in OpenSSL and building the = library using the `MK_OPENSSL_JITTERENTROPY` build knob. >> - Add packaging metadata so the component is properly released = using `pkgbase`. >> - Integrate any additional programs into the base system which = provide health check capabilities described in NIST SP800-90B [1]. >>=20 >> ## Timeline >>=20 >> The goal is to do this start this work in the next week. >>=20 >> # Objective 2: add additional hardware support to the jitterentropy = library. >>=20 >> The library supports the following FreeBSD-available architectures = out of the box: >=20 >> - amd64/i386 >> - PowerPC >=20 > aarch64 is supported in addition to amd64/i386/PowerPC (the check in = the library is a bit naive today =E2=80=94 it doesn=E2=80=99t confirm = that the featureset is enabled =E2=80=94 only that it=E2=80=99s being = built on aarch64). >=20 > This means that all Tier-1 architectures are supported with this = library. >=20 > Other architecture support is still outstanding. Following up on this thread, I do not plan on implementing the proposed = change. Jitterentropy was something that benefited my former employer (Dell). After a side discussion with Conrad and further inspection of the = library, I honestly think the approach taken is suboptimal and adds a = lot of overhead to each application which relies on OpenSSL to function = (a thread per process sits in the background to =E2=80=9Cincrease = entropy=E2=80=9D and run self-tests). A system-level daemon that = improves entropy makes a lot more sense than the Jitterentropy library. Thank you, -Enji= --Apple-Mail=_1DCD15CA-C654-4A26-90BB-631A813D9FE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br><div><blockquote type=3D"cite"><div>On= Apr 23, 2026, at 1:57=E2=80=AFPM, Enji Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">I stand corrected with a single important = point...</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: 2; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration-line: none; text-decoration-thickness: auto; = text-decoration-style: solid;"><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: = solid;"><blockquote type=3D"cite" style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: = none; text-decoration-thickness: auto; text-decoration-style: solid;">On = Apr 23, 2026, at 12:17=E2=80=AFPM, Enji Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote:<br><br>(cem@ and secteam@ BCCed so = they can weigh in on this if they like)<br>Hi,<br><span = class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>A key = component for FreeBSD becoming NIST FIPS 140-3 compliant was completed = when FreeBSD upgraded from OpenSSL 3.0 to 3.5. One of the other = requirements for FIPS 140-3 (and post-quantum cryptography) is having = sufficient random entropy in the system to generate sufficiently random = numbers. NIST SP800-90B provides some guidelines on how to achieve that = [1].<br><span class=3D"Apple-tab-span" style=3D"white-space: pre;"> = </span>One capability in the base system that provides such a guarantee = is RDSEED [2], but that is CPU/hardware-specific and does not support = all possible architectures today. Furthermore, there are discussions of = challenges around certifying RDSEED in derivative distributions = (including the commit where the support was introduced).<br><span = class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>The = jitterentropy project provides an alternative mechanism for this in = userspace that is less CPU/hardware-specific [3] [4]..<br><span = class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>This = component already exists in ports [4], but in order to ensure that the = base system version of OpenSSL can capitalize on it, it needs to be = integrated into base and built alongside libcrypto.<br><span = class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>My = proposal for how to achieve this is included below, along with some = deliverables, rough implementation-specific details, and rough = timelines.<br><span class=3D"Apple-tab-span" style=3D"white-space: = pre;"> </span>Does anyone have any thoughts on the proposed plan = sketched out below?<br>Thank you,<br>-Enji<br><br>PS I CCed the ports = maintainer (swills@), several folks from HPE/Juniper (since they = provided the RDSEED implementation), secteam@, etc, to obtain feedback = on this work.<br><br># Objective 1: add jitterentropy-library to the = base system<br><br>- Do a vendor import of the component.<br>- Add to = the base system:<br><span class=3D"Apple-tab-span" style=3D"white-space: = pre;"> </span>- Given that it=E2=80=99s a cryptographic-related = component, crypto/jitterentropy seems like the most appropriate location = for the library.<br><span class=3D"Apple-tab-span" style=3D"white-space: = pre;"> </span>- Conditionally enable support in OpenSSL and building = the library using the `MK_OPENSSL_JITTERENTROPY` build knob.<br><span = class=3D"Apple-tab-span" style=3D"white-space: pre;"> </span>- Add = packaging metadata so the component is properly released using = `pkgbase`.<br><span class=3D"Apple-tab-span" style=3D"white-space: = pre;"> </span>- Integrate any additional programs into the base system = which provide health check capabilities described in NIST SP800-90B = [1].<br><br>## Timeline<br><br>The goal is to do this start this work in = the next week.<br><br># Objective 2: add additional hardware support to = the jitterentropy library.<br><br>The library supports the following = FreeBSD-available architectures out of the box:<br></blockquote><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: = solid;"><blockquote type=3D"cite" style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: = none; text-decoration-thickness: auto; text-decoration-style: solid;">- = amd64/i386<br>- PowerPC<br></blockquote><br style=3D"caret-color: rgb(0, = 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">aarch64 is supported in addition to = amd64/i386/PowerPC (the check in the library is a bit naive today =E2=80=94= it doesn=E2=80=99t confirm that the featureset is enabled =E2=80=94 = only that it=E2=80=99s being built on aarch64).</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">This means that all Tier-1 architectures = are supported with this library.</span><br style=3D"caret-color: rgb(0, = 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">Other architecture support is still = outstanding.</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: 2; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration-line: none; text-decoration-thickness: auto; = text-decoration-style: = solid;"></div></blockquote></div><br><div>Following up on this thread, I = do not plan on implementing the proposed = change.</div><div><br></div><div>Jitterentropy was something that = benefited my former employer (Dell).</div><div><br></div><div>After a = side discussion with Conrad and further inspection of the library, I = honestly think the approach taken is suboptimal and adds a lot of = overhead to each application which relies on OpenSSL to function (a = thread per process sits in the background to =E2=80=9Cincrease = entropy=E2=80=9D and run self-tests). A system-level daemon that = improves entropy makes a lot more sense than the Jitterentropy = library.</div><div><br></div><div>Thank = you,</div><div>-Enji</div></body></html>= --Apple-Mail=_1DCD15CA-C654-4A26-90BB-631A813D9FE1-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads