Removed all references to System.Security.Cryptography, now using bouncy castle for all crypto.
removed unnecessary dynamic invocation.