2020-02-03 17:49:27 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-03-05 00:58:25 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Cryptography
|
|
|
|
{
|
|
|
|
public interface ICryptoProvider
|
|
|
|
{
|
2019-05-21 10:28:34 -07:00
|
|
|
string DefaultHashMethod { get; }
|
2019-09-17 09:07:15 -07:00
|
|
|
|
2019-03-05 00:58:25 -07:00
|
|
|
IEnumerable<string> GetSupportedHashMethods();
|
2019-09-17 09:07:15 -07:00
|
|
|
|
2019-03-05 00:58:25 -07:00
|
|
|
byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);
|
2019-09-17 09:07:15 -07:00
|
|
|
|
2019-03-05 00:58:25 -07:00
|
|
|
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
|
2019-09-17 09:07:15 -07:00
|
|
|
|
2019-01-31 01:24:53 -07:00
|
|
|
byte[] GenerateSalt();
|
2019-09-17 09:07:15 -07:00
|
|
|
|
|
|
|
byte[] GenerateSalt(int length);
|
2019-03-05 00:58:25 -07:00
|
|
|
}
|
|
|
|
}
|