Bug 2005536 (rust-fiat-crypto) - Review Request: rust-fiat-crypto - Fiat-crypto generated RustFiat-crypto generated Rust
Summary: Review Request: rust-fiat-crypto - Fiat-crypto generated RustFiat-crypto gene...
Keywords:
Status: CLOSED DUPLICATE of bug 2213270
Alias: rust-fiat-crypto
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-18 01:17 UTC by Robert-André Mauchin 🐧
Modified: 2023-06-07 17:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-07 17:12:03 UTC
Type: ---
Embargoed:
decathorpe: fedora-review?


Attachments (Terms of Use)

Description Robert-André Mauchin 🐧 2021-09-18 01:17:17 UTC
Spec URL: https://eclipseo.fedorapeople.org/for-review/rust-fiat-crypto.spec
SRPM URL: https://eclipseo.fedorapeople.org/for-review/rust-fiat-crypto-0.1.8-1.fc36.src.rpm

Description:
Fiat-crypto generated Rust.Fiat-crypto generated Rust.

Fedora Account System Username: eclipseo

Comment 1 Robert-André Mauchin 🐧 2021-09-18 01:23:44 UTC
Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=75870166

Comment 2 Fabio Valentini 2022-01-21 21:41:48 UTC
Three comments before a final review:

- The crate has been updated to version 0.1.11, please update to that version, if possible.
- Re-generate the .spec file with rust2rpm 20.
- The Summary and description are nonsense, please improve them (preferably submit those improvements upstream, too).

Comment 4 Robert-André Mauchin 🐧 2022-11-03 21:20:12 UTC
(In reply to Fabio Valentini from comment #2)
> Three comments before a final review:
> 
> - The crate has been updated to version 0.1.11, please update to that
> version, if possible.
> - Re-generate the .spec file with rust2rpm 20.
> - The Summary and description are nonsense, please improve them (preferably
> submit those improvements upstream, too).

I've updated the SPEC if you want to have a look.

Comment 5 Robert-André Mauchin 🐧 2022-11-03 21:27:34 UTC
Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=93757768

Comment 6 Fabio Valentini 2022-11-04 15:09:09 UTC
Package looks good to me, with one exception.

The fiat-crypto crate ships implementations of many elliptic curves, some of which aren't explicitly listed as "permitted in Fedora" here:
https://fedoraproject.org/wiki/Legal:ECC

There has been some discussion about whether any elliptic curves are actually still not "good", but we haven't received any definitive resonses from Red Hat legal:
https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/IQELSXUUNQFYYQ2JU3NOWLF2TOI7DEYZ/

Looks like the curves implemented in fiat-crypto are:

- Curve 25519: listed as OK
- p224 / secp224r1: listed as OK
- p256 / secp256r1: listed as OK
- p384 / secp384r1: listed as OK
- p434: not listed as OK; cannot find any documentation or source for this curve
- p448 / Curve 448: listed as OK
- p521 / secp521r1: listed as OK
- secp256k1: listed as OK

Blocking FE-Legal. We need to know whether the p434 curve is OK ...

Comment 7 Fabio Valentini 2022-11-04 15:27:11 UTC
Also sent to the "legal" mailing list, since in my experience the FE-Legal tracker bug is ignored:
https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/FBZU2X7ZKTK2BVZKBHFUCI44SMY4UQCE/

Comment 8 Fabio Valentini 2023-05-02 22:04:34 UTC
Finally got an actionable response from Red Hat Legal after asking ** a third time **:

https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/Z3PPWO6KNIPK2BNVNY5QUGJPCFSMO2BO/

The relevant part:

> > Ok, so ... I'm pretty sure we actually don't *need* the affected code.
> > Would removing all p434 related code from the sources entirely (to be
> > on the safe side), and building the package without support for this
> > curve, be an acceptable solution until the legal status is cleared up? 

> Yes, that's an acceptable solution in the meantime.

All code related to p434 curve will need to removed from the upstream tarball and the Fedora package can only use a "cleaned" tarball.

Comment 9 Fabio Valentini 2023-06-07 17:12:03 UTC
I've submitted a new package for the latest version of the fiat-crypto crate where I've tried to implement this approach.
Closing this bug as a duplicate since it has not been updated in the last 6 months.

*** This bug has been marked as a duplicate of bug 2213270 ***


Note You need to log in before you can comment on or make changes to this bug.