xous-core/loader/ed25519-dalek-loader/src
bunnie 2f47a9d4f2 more rework of pre-hash argument
While ideally we'd be as light-fingered as possible on the cryptographic
APIs, unfortunately the reality is we have exactly one hardware
hash engine and we can't just leave the context laying around.

Given that the verification routine would consume the hash, that
would make it unavailable for use later on to pass to the system.
So, this patch set causes the pre-hash algorithm to take a simple
slice-u8 instead of a whole hash context.

The downside of this is it erases the type information about
needing a 64-bit hash to go into the context. This is partially
mitigated with an assert that gives us a run-time check of this
property.
2024-01-08 00:13:35 +08:00
..
batch.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00
constants.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00
errors.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00
keypair.rs more rework of pre-hash argument 2024-01-08 00:13:35 +08:00
lib.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00
public.rs more rework of pre-hash argument 2024-01-08 00:13:35 +08:00
secret.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00
signature.rs loader: move loader into main workspace 2022-03-22 02:09:18 +08:00