security: Added enums for DigestAlgorithm, KeyClass and KeyType.