Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/build/rust/libcrux-traits/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1011 B image not shown  

Quelle  lib.rs   Sprache: Rust

 

// Copyright 2023 Cryspen Sarl
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0

#![no_std]

extern crate alloc;

// NOTE: This Digest trait and the new `digest` trait APIs overlap to some extent.
// See issue #1039
/// A Hash algorithm returning hashes of length `HASH_LEN`.
pub trait Digest<const HASH_LEN: usize> {
    /// Writes the digest for the given input byte slice, into `digest` in immediate mode.
    fn hash(digest: &mut [u8], payload: &[u8]);

    /// Add the `payload` to the digest.
    fn update(&mut self, payload: &[u8]);

    /// Writes the digest into `digest`.
    ///
    /// Note that the digest state can be continued to be used, to extend the
    /// digest.
    fn finish(&self, digest: &mut [u8; HASH_LEN]);

    /// Reset the digest state.
    fn reset(&mut self);
}

pub mod digest;
pub mod kem;

Messung V0.5 in Prozent
C=50 H=100 G=79

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-09-30) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.