fn cose_alg()

in src/encrypt.rs [23:32]


    fn cose_alg(&self, key: &[u8]) -> Option<COSEAlgorithm> {
        Some(match self {
            CipherConfiguration::Gcm => match key.len() {
                16 => COSEAlgorithm::AesGcm96_128_128,
                24 => COSEAlgorithm::AesGcm96_128_192,
                32 => COSEAlgorithm::AesGcm96_128_256,
                _ => return None,
            },
        })
    }