pub fn new<S: Into<String>>(domain: S) -> DomainSeparationContext {
        let domain: String = domain.into();

        let domain_bytes: &[u8] = domain.as_bytes();
        let domain_bytes_len = u8::try_from(domain_bytes.len()).expect("domain too long");

        let mut bytes = vec![domain_bytes_len];
        bytes.extend(domain_bytes);

        DomainSeparationContext { domain, bytes }
    }
/// Returns a new domain separation context.
///
/// The byte representation of the context is a concatenation of
/// * one byte indicating the length of the domain's UTF-8 bytes
/// * the domain's UTF-8 bytes
///
/// Panics if the length of the domain's UTF-8 bytes is too long to fit into
/// one byte (that is, greater than 255).
Returns a new domain separation context.
The byte representation of the context is a concatenation of
one byte indicating the length of the domain's UTF-8 bytes
the domain's UTF-8 bytes

Panics if the length of the domain's UTF-8 bytes is too long to fit into
one byte (that is, greater than 255).
Returns a new domain separation context . The byte representation of the context is a concatenation of one byte indicating the length of the domain ' s UTF - 8 bytes the domain ' s UTF - 8 bytes Panics if the length of the domain ' s UTF - 8 bytes is too long to fit into one byte ( that is greater than 255 ) .
pub fn new<S: Into<String>>(domain: S) -> DomainSeparationContext {
        let domain: String = domain.into();
        let domain_bytes: &[u8] = domain.as_bytes();
        let domain_bytes_len = u8::try_from(domain_bytes.len()).expect("domain too long");
        let mut bytes = vec![domain_bytes_len];
        bytes.extend(domain_bytes);
        DomainSeparationContext { domain, bytes }
    }
pub fn new < S : Into < String > > ( domain : S ) -> DomainSeparationContext { let domain : String = domain . into ( ) ; let domain_bytes : & [ u8 ] = domain . as_bytes ( ) ; let domain_bytes_len = u8 :: try_from ( domain_bytes . len ( ) ) . expect ( " " ) ; let mut bytes = vec ! [ domain_bytes_len ] ; bytes . extend ( domain_bytes ) ; DomainSeparationContext { domain , bytes } }
Returns a new domain separation context.
Returns a new domain separation context .
domain
S
domain
S