pub fn psa_asymmetric_sign_output_size(key_attrs: &psa_key_attributes_t) -> Result<usize> {
    match key_attrs.core.type_ {
        PSA_KEY_TYPE_RSA_KEYPAIR => Ok(usize::from(bits_to_bytes!(key_attrs.core.bits))),
        PSA_KEY_TYPE_ECC_KEYPAIR_BASE => Ok(usize::from(bits_to_bytes!(key_attrs.core.bits) * 2)),
        _ => Err(ResponseStatus::PsaErrorNotSupported),
    }
}
/// Compute the size of the asymmetric signature, given the key attributes of the signing key.
/// Implementing `PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE` as defined in `crypto_sizes.h` (Mbed Crypto).
Compute the size of the asymmetric signature, given the key attributes of the signing key.
Implementing `PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE` as defined in `crypto_sizes.h` (Mbed Crypto).
Compute the size of the asymmetric signature given the key attributes of the signing key . Implementing ` PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE ` as defined in ` crypto_sizes . h ` ( Mbed Crypto ) .
pub fn psa_asymmetric_sign_output_size(key_attrs: &psa_key_attributes_t) -> Result<usize> {
    match key_attrs.core.type_ {
        PSA_KEY_TYPE_RSA_KEYPAIR => Ok(usize::from(bits_to_bytes!(key_attrs.core.bits))),
        PSA_KEY_TYPE_ECC_KEYPAIR_BASE => Ok(usize::from(bits_to_bytes!(key_attrs.core.bits) * 2)),
        _ => Err(ResponseStatus::PsaErrorNotSupported),
    }
}
pub fn psa_asymmetric_sign_output_size ( key_attrs : & psa_key_attributes_t ) -> Result < usize > { match key_attrs . core . type_ { PSA_KEY_TYPE_RSA_KEYPAIR => Ok ( usize :: from ( bits_to_bytes ! ( key_attrs core bits ) ) ) , PSA_KEY_TYPE_ECC_KEYPAIR_BASE => Ok ( usize :: from ( bits_to_bytes ! ( key_attrs core bits ) * 2 ) ) , _ => Err ( ResponseStatus :: PsaErrorNotSupported ) , } }
Compute the size of the asymmetric signature, given the key attributes of the signing key.
Compute the size of the asymmetric signature given the key attributes of the signing key .
key_attrs
&psa_key_attributes_t
key_attrs
&psa_key_attributes_t