コード例 #1
0
 /// <summary>
 /// Test of sign method, of class FilePrivateKeyStorage.
 /// </summary>
 ///
 public void testSign()
 {
     int[] data = new int[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 };
     FilePrivateKeyStorage instance = new FilePrivateKeyStorage();
     Blob result = instance.sign(toBuffer(data), new Name("/test/KEY/123"),
             net.named_data.jndn.security.DigestAlgorithm.SHA256);
     AssertNotNull(result);
 }