Exemplo n.º 1
0
 public static byte[] Base(byte[] secretKey)
 {
     if (secretKey == null || secretKey.Length != 32)
     {
         throw new KeyOutOfRangeException("secretKey", (secretKey == null) ? 0 : secretKey.Length, string.Format("secretKey must be {0} bytes in length.", 32));
     }
     byte[] array = new byte[32];
     SodiumLibrary.crypto_scalarmult_base(array, secretKey);
     return(array);
 }