tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

std/crypto: Ed25519 verification, and signing for tests (ADR 0067)

ed25519_verify, ed25519_public_key and ed25519_sign, over the ring the
runtime already links (UnparsedPublicKey with ED25519, and
Ed25519KeyPair::from_seed_unchecked), through the five extern places.
The kernels are in louise_rt_prims, so both back ends share them.

verify answers False for a key that is not 32 bytes or a signature that
is not 64; public_key and sign panic on a seed that is not 32 bytes,
with one message on both back ends. tests/run/crypto.lse checks
RFC 8032 section 7.1's tests 1 to 3 (derived key, reproduced signature,
verification, flipped bits, wrong lengths), interpreted and native.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 3 sem. · 7d0597180b2d8505e151dee39ec3e78be933bc4e

Parents 1cbfea4

8 fichiers modifiés, 313 ajouts, 9 suppressions