pub unsafe fn PSA_RAW_ECDH_KEY_AGREEMENT_OUTPUT_SIZE(
    _key_type: psa_key_type_t,
    key_bits: usize,
) -> usize {
    /*
    The size of the shared secret is always `ceiling(m/8)` bytes long where `m` is the bit size associated with the curve,
    i.e. the bit size of the order of the curve's coordinate field. When m is not a multiple of 8, the byte containing the most
    significant bit of the shared secret is padded with zero bits.
    */
    if let Some(numerator) = key_bits.checked_add(7) {
        numerator / 8
    } else {
        0
    }
}
/// Retrieves the output size of an ECDH raw key agreement operation shared secret.
/// Caller must ensure key type is compatible.
/// Returns 0 if key size is too large.
/// This does not match any PSA macro, it will be replaces by PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE once
/// mbedTLS adds support for it.
Retrieves the output size of an ECDH raw key agreement operation shared secret.
Caller must ensure key type is compatible.
Returns 0 if key size is too large.
This does not match any PSA macro, it will be replaces by PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE once
mbedTLS adds support for it.
Retrieves the output size of an ECDH raw key agreement operation shared secret . Caller must ensure key type is compatible . Returns 0 if key size is too large . This does not match any PSA macro it will be replaces by PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE once mbedTLS adds support for it .
pub unsafe fn PSA_RAW_ECDH_KEY_AGREEMENT_OUTPUT_SIZE(
    _key_type: psa_key_type_t,
    key_bits: usize,
) -> usize {
    /*
    The size of the shared secret is always `ceiling(m/8)` bytes long where `m` is the bit size associated with the curve,
    i.e. the bit size of the order of the curve's coordinate field. When m is not a multiple of 8, the byte containing the most
    significant bit of the shared secret is padded with zero bits.
    */
    if let Some(numerator) = key_bits.checked_add(7) {
        numerator / 8
    } else {
        0
    }
}
pub unsafe fn PSA_RAW_ECDH_KEY_AGREEMENT_OUTPUT_SIZE ( _key_type : psa_key_type_t , key_bits : usize , ) -> usize { /*
    The size of the shared secret is always `ceiling(m/8)` bytes long where `m` is the bit size associated with the curve,
    i.e. the bit size of the order of the curve's coordinate field. When m is not a multiple of 8, the byte containing the most
    significant bit of the shared secret is padded with zero bits.
    */ if let Some ( numerator ) = key_bits . checked_add ( 7 ) { numerator / 8 } else { 0 } }
Retrieves the output size of an ECDH raw key agreement operation shared secret.
Retrieves the output size of an ECDH raw key agreement operation shared secret .
_key_type
psa_key_type_t
key_bits
usize
_key_type
psa_key_type_t
key_bits
usize