pub fn algorithm_type(self) -> KeyManagementAlgorithmType {
        use self::KeyManagementAlgorithm::*;

        match self {
            A128KW | A192KW | A256KW | A128GCMKW | A192GCMKW | A256GCMKW | PBES2_HS256_A128KW
            | PBES2_HS384_A192KW | PBES2_HS512_A256KW => {
                KeyManagementAlgorithmType::SymmetricKeyWrapping
            }
            RSA1_5 | RSA_OAEP | RSA_OAEP_256 => KeyManagementAlgorithmType::AsymmetricKeyEncryption,
            DirectSymmetricKey => KeyManagementAlgorithmType::DirectEncryption,
            ECDH_ES => KeyManagementAlgorithmType::DirectKeyAgreement,
            ECDH_ES_A128KW | ECDH_ES_A192KW | ECDH_ES_A256KW => {
                KeyManagementAlgorithmType::KeyAgreementWithKeyWrapping
            }
        }
    }
/// Returns the type of operations that the algorithm is intended to support
Returns the type of operations that the algorithm is intended to support
Returns the type of operations that the algorithm is intended to support
pub fn algorithm_type(self) -> KeyManagementAlgorithmType {
        use self::KeyManagementAlgorithm::*;
        match self {
            A128KW | A192KW | A256KW | A128GCMKW | A192GCMKW | A256GCMKW | PBES2_HS256_A128KW
            | PBES2_HS384_A192KW | PBES2_HS512_A256KW => {
                KeyManagementAlgorithmType::SymmetricKeyWrapping
            }
            RSA1_5 | RSA_OAEP | RSA_OAEP_256 => KeyManagementAlgorithmType::AsymmetricKeyEncryption,
            DirectSymmetricKey => KeyManagementAlgorithmType::DirectEncryption,
            ECDH_ES => KeyManagementAlgorithmType::DirectKeyAgreement,
            ECDH_ES_A128KW | ECDH_ES_A192KW | ECDH_ES_A256KW => {
                KeyManagementAlgorithmType::KeyAgreementWithKeyWrapping
            }
        }
    }
pub fn algorithm_type ( self ) -> KeyManagementAlgorithmType { use self :: KeyManagementAlgorithm :: * ; match self { A128KW | A192KW | A256KW | A128GCMKW | A192GCMKW | A256GCMKW | PBES2_HS256_A128KW | PBES2_HS384_A192KW | PBES2_HS512_A256KW => { KeyManagementAlgorithmType :: SymmetricKeyWrapping } RSA1_5 | RSA_OAEP | RSA_OAEP_256 => KeyManagementAlgorithmType :: AsymmetricKeyEncryption , DirectSymmetricKey => KeyManagementAlgorithmType :: DirectEncryption , ECDH_ES => KeyManagementAlgorithmType :: DirectKeyAgreement , ECDH_ES_A128KW | ECDH_ES_A192KW | ECDH_ES_A256KW => { KeyManagementAlgorithmType :: KeyAgreementWithKeyWrapping } } }
Returns the type of operations that the algorithm is intended to support
Returns the type of operations that the algorithm is intended to support
self
self