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)); }
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))); }
public override byte[] SignHash(byte[] hash) => _wrapped.SignHash(hash);