GetHashAlgorithm() 공개 정적인 메소드

Gets the HashAlgorithm with the specified IPFS multi-hash name.
public static GetHashAlgorithm ( string name = DefaultAlgorithmName ) : HashAlgorithm
name string
리턴 System.Security.Cryptography.HashAlgorithm
예제 #1
0
 public void GetAlgorithmByName()
 {
     Assert.IsNotNull(MultiHash.GetHashAlgorithm());
     Assert.IsNotNull(MultiHash.GetHashAlgorithm("sha2-512"));
     var e = ExceptionAssert.Throws <KeyNotFoundException>(() =>
     {
         var _ = MultiHash.GetHashAlgorithm("unknown");
     });
 }