/// <exception cref="Sharpen.InvalidKeySpecException"></exception> /// <exception cref="Sharpen.NoSuchAlgorithmException"></exception> internal ObjectEncryptionV2(string algo, string key) { algorithmName = algo; PBEKeySpec s; s = new PBEKeySpec(key.ToCharArray(), salt, ITERATION_COUNT, 32); skey = SecretKeyFactory.GetInstance(algo).GenerateSecret(s); aspec = new PBEParameterSpec(salt, ITERATION_COUNT); }