SignHash() public abstract method

public abstract SignHash ( byte hash ) : byte[]
hash byte
return 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);