Add support for key sanitation. Tests refactored and added. RS support SDK 8+ now. Issue #97