SignHash() публичный абстрактный Метод

public abstract SignHash ( byte hash ) : byte[]
hash byte
Результат byte[]
Пример #1
0
 public async Task <byte[]> SignAsync(Stream source)
 {
     byte[] hash;
     using (var sha = System.Security.Cryptography.SHA256.Create())
     {
         hash = sha.ComputeHash(source);
     }
     return(Key.SignHash(hash));
 }
Пример #2
0
 public Task <byte[]> SignAsync(Stream source)
 {
     Logger.LogInformation($"start {nameof(SignAsync)}");
     byte[] hash;
     using (var sha = System.Security.Cryptography.SHA256.Create())
     {
         hash = sha.ComputeHash(source);
     }
     return(Task.FromResult(Key.SignHash(hash)));
 }
Пример #3
0
 public override byte[] SignHash(byte[] hash) => _wrapped.SignHash(hash);