convert_seed_to_handles

Function convert_seed_to_handles 

Source
fn convert_seed_to_handles(
    algo_name: &str,
    seed_bytes: &[u8],
    private_key_bytes: Option<&[u8]>,
    public_key_bytes: Option<&[u8]>,
) -> Result<(Handle, Handle), Error>
Expand description

Convert seed bytes to an ML-DSA private key handle and an ML-DSA public key handle. If private key bytes and/or public key bytes are provided, it runs a consistency check against the seed. If the length in bits of seed bytes is not 256, the conversion fails, or the consistency check fails, throw a DataError.