pub fn PSA_ALG_AEAD_TAG_TRUNCATED_LENGTH(aead_alg: psa_algorithm_t) -> usize {
    const TAG_LENGTH_MASK: u32 = 0b111111; // tag lengths are 6 bits in length
    const PSA_V1_0_0_TAG_LENGTH_START_BIT: u32 = 16; // tag length at bit position [21:16]

    let pre_mask_tag_length = aead_alg >> PSA_V1_0_0_TAG_LENGTH_START_BIT;

    (pre_mask_tag_length & TAG_LENGTH_MASK) as usize
}
/// Retrieves the tag length from an aead_alg.
/// Note: `aead_alg` is an AEAD algorithm, such that `PSA_ALG_IS_AEAD(aead_alg)` is `true`.
Retrieves the tag length from an aead_alg.
Retrieves the tag length from an aead_alg .
pub fn PSA_ALG_AEAD_TAG_TRUNCATED_LENGTH(aead_alg: psa_algorithm_t) -> usize {
    const TAG_LENGTH_MASK: u32 = 0b111111; // tag lengths are 6 bits in length
    const PSA_V1_0_0_TAG_LENGTH_START_BIT: u32 = 16; // tag length at bit position [21:16]
    let pre_mask_tag_length = aead_alg >> PSA_V1_0_0_TAG_LENGTH_START_BIT;
    (pre_mask_tag_length & TAG_LENGTH_MASK) as usize
}
pub fn PSA_ALG_AEAD_TAG_TRUNCATED_LENGTH ( aead_alg : psa_algorithm_t ) -> usize { const TAG_LENGTH_MASK : u32 = 0b111111 ; // tag lengths are 6 bits in length const PSA_V1_0_0_TAG_LENGTH_START_BIT : u32 = 16 ; // tag length at bit position [21:16] let pre_mask_tag_length = aead_alg >> PSA_V1_0_0_TAG_LENGTH_START_BIT ; ( pre_mask_tag_length & TAG_LENGTH_MASK ) as usize }
Retrieves the tag length from an aead_alg.
Retrieves the tag length from an aead_alg .
aead_alg
psa_algorithm_t
aead_alg
psa_algorithm_t