simplicityhl-as-rust 0.2.0

Tools for working with SimplicityHL as literal Rust
Documentation
/* This file has been automatically generated. */

//! # Hash functions
//!
//! This module defines jets for computing SHA-256 hashes.
//! Be aware that SHA-256 padding isn't provided and messages should be manually padded.

#![allow(unused)]
#![allow(clippy::complexity)]

use super::*;

/// Update the given 256-bit midstate by running the SHA256 block compression function, using the given 512-bit block.
///
/// ## Cost
///
/// 771 mWU _(milli weight units)_
pub fn sha_256_block(a: u256, b: u256, c: u256) -> u256 {
    todo!()
}

/// Add 1   byte  to the SHA256 hash engine.
///
/// ## Cost
///
/// 642 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_1(a: Ctx8, b: u8) -> Ctx8 {
    todo!()
}

/// Add 2   bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 661 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_2(a: Ctx8, b: u16) -> Ctx8 {
    todo!()
}

/// Add 4   bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 645 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_4(a: Ctx8, b: u32) -> Ctx8 {
    todo!()
}

/// Add 8   bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 674 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_8(a: Ctx8, b: u64) -> Ctx8 {
    todo!()
}

/// Add 16  bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 747 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_16(a: Ctx8, b: u128) -> Ctx8 {
    todo!()
}

/// Add 32  bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 896 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_32(a: Ctx8, b: u256) -> Ctx8 {
    todo!()
}

/// Add 64  bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 1187 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_64(a: Ctx8, b: [u8; 64]) -> Ctx8 {
    todo!()
}

/// Add 128 bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 1779 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_128(a: Ctx8, b: [u8; 128]) -> Ctx8 {
    todo!()
}

/// Add 256 bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 2912 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_256(a: Ctx8, b: [u8; 256]) -> Ctx8 {
    todo!()
}

/// Add 512 bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 5299 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_512(a: Ctx8, b: [u8; 512]) -> Ctx8 {
    todo!()
}

/// Add a list of less than 512 bytes to the SHA256 hash engine.
///
/// ## Cost
///
/// 5060 mWU _(milli weight units)_
pub fn sha_256_ctx_8_add_buffer_511(a: Ctx8, b: List<u8, 512>) -> Ctx8 {
    todo!()
}

/// Produce a hash from the current state of the SHA256 hash engine.
///
/// ## Cost
///
/// 835 mWU _(milli weight units)_
pub fn sha_256_ctx_8_finalize(a: Ctx8) -> u256 {
    todo!()
}

/// Initialize a default SHA256 hash engine.
///
/// ## Cost
///
/// 118 mWU _(milli weight units)_
pub fn sha_256_ctx_8_init() -> Ctx8 {
    todo!()
}

/// Return the SHA256 initial value.
///
/// ## Cost
///
/// 93 mWU _(milli weight units)_
pub fn sha_256_iv() -> u256 {
    todo!()
}