[−][src]Struct lib3h_crypto_api::FakeCryptoSystem
WARNING THIS IS NOT SECURE!! This is a fake crypto system to give hints for implementing real systems. The functions here mimic a real crypto system, but are doing trivial things. Do not use this for any real systems. Even the random functions are fake, and produce poor results.
Trait Implementations
impl CryptoRandom for FakeCryptoSystem
[src]
fn randombytes_buf<OutputBuffer: Buffer>(
buffer: &mut OutputBuffer
) -> CryptoResult<()>
[src]
buffer: &mut OutputBuffer
) -> CryptoResult<()>
impl CryptoSignature for FakeCryptoSystem
[src]
const SIGN_SEED_BYTES: usize
[src]
const SIGN_PUBLIC_KEY_BYTES: usize
[src]
const SIGN_SECRET_KEY_BYTES: usize
[src]
const SIGN_BYTES: usize
[src]
fn sign_seed_keypair<SeedBuffer: Buffer, PublicKeyBuffer: Buffer, SecretKeyBuffer: Buffer>(
seed: &SeedBuffer,
public_key: &mut PublicKeyBuffer,
secret_key: &mut SecretKeyBuffer
) -> CryptoResult<()>
[src]
seed: &SeedBuffer,
public_key: &mut PublicKeyBuffer,
secret_key: &mut SecretKeyBuffer
) -> CryptoResult<()>
fn sign_keypair<PublicKeyBuffer: Buffer, SecretKeyBuffer: Buffer>(
public_key: &mut PublicKeyBuffer,
secret_key: &mut SecretKeyBuffer
) -> CryptoResult<()>
[src]
public_key: &mut PublicKeyBuffer,
secret_key: &mut SecretKeyBuffer
) -> CryptoResult<()>
fn sign<SignatureBuffer: Buffer, MessageBuffer: Buffer, SecretKeyBuffer: Buffer>(
signature: &mut SignatureBuffer,
message: &MessageBuffer,
secret_key: &SecretKeyBuffer
) -> CryptoResult<()>
[src]
signature: &mut SignatureBuffer,
message: &MessageBuffer,
secret_key: &SecretKeyBuffer
) -> CryptoResult<()>
fn sign_verify<SignatureBuffer: Buffer, MessageBuffer: Buffer, PublicKeyBuffer: Buffer>(
signature: &SignatureBuffer,
message: &MessageBuffer,
public_key: &PublicKeyBuffer
) -> CryptoResult<bool>
[src]
signature: &SignatureBuffer,
message: &MessageBuffer,
public_key: &PublicKeyBuffer
) -> CryptoResult<bool>
impl CryptoSystem for FakeCryptoSystem
[src]
Auto Trait Implementations
impl Sync for FakeCryptoSystem
impl Unpin for FakeCryptoSystem
impl Send for FakeCryptoSystem
impl RefUnwindSafe for FakeCryptoSystem
impl UnwindSafe for FakeCryptoSystem
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,