Psha1DerivedKeyGeneratorHelper.cs 687 B

1234567891011121314151617
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.Security
  5. {
  6. using Psha1DerivedKeyGenerator = System.IdentityModel.Psha1DerivedKeyGenerator;
  7. static class Psha1DerivedKeyGeneratorHelper
  8. {
  9. internal static byte[] GenerateDerivedKey(byte[] key, byte[] label, byte[] nonce, int derivedKeySize, int position)
  10. {
  11. Psha1DerivedKeyGenerator psha1 = new Psha1DerivedKeyGenerator(key);
  12. return psha1.GenerateDerivedKey(label, nonce, derivedKeySize, position);
  13. }
  14. }
  15. }