Trait crypto_bigint::ArrayEncoding[][src]

pub trait ArrayEncoding: Encoding {
    type ByteSize: ArrayLength<u8> + Add + Eq + Ord + Unsigned;
    fn from_be_byte_array(bytes: ByteArray<Self>) -> Self;
fn from_le_byte_array(bytes: ByteArray<Self>) -> Self;
fn to_be_byte_array(&self) -> ByteArray<Self>;
fn to_le_byte_array(&self) -> ByteArray<Self>; }
This is supported on crate feature generic-array only.
Expand description

Support for encoding a big integer as a GenericArray.

Associated Types

Size of a byte array which encodes a big integer.

Required methods

Deserialize from a big-endian byte array.

Deserialize from a little-endian byte array.

Serialize to a big-endian byte array.

Serialize to a little-endian byte array.

Implementors