SignatureMessageLimits

Trait SignatureMessageLimits 

Source
pub trait SignatureMessageLimits: Signature {
    const MAX_MESSAGE_SIZE: Option<usize>;
    const REQUIRES_PREHASH: bool;
}
Expand description

Optional trait for signature algorithms with message size limits

Some algorithms may have restrictions on message sizes or require pre-hashing for large messages.

Required Associated Constants§

Source

const MAX_MESSAGE_SIZE: Option<usize>

Maximum message size that can be signed directly (in bytes)

None indicates no limit

Source

const REQUIRES_PREHASH: bool

Whether this algorithm requires pre-hashing of messages

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§