Merge "NativeCrypto: adjust thrown exceptions"