Ejemplo n.º 1
0
 internal static extern int hydro_kx_n_2(out SessionKeyPair sessionKeyPair, byte[] packet, IntPtr secretKey, ref KeyPair keyPair);
Ejemplo n.º 2
0
 public static bool N2(out SessionKeyPair sessionKeyPair, byte[] packet, ref KeyPair keyPair)
 {
     return(Native.hydro_kx_n_2(out sessionKeyPair, packet, IntPtr.Zero, ref keyPair) == 0);
 }
Ejemplo n.º 3
0
 internal static extern int hydro_kx_n_1(out SessionKeyPair sessionKeyPair, byte[] packet, IntPtr secretKey, byte[] publicKey);
Ejemplo n.º 4
0
 public static bool N1(out SessionKeyPair sessionKeyPair, byte[] packet, byte[] publicKey)
 {
     return(Native.hydro_kx_n_1(out sessionKeyPair, packet, IntPtr.Zero, publicKey) == 0);
 }
Ejemplo n.º 5
0
 internal static extern int hydro_kx_kk_3(ref KeyState keyState, out SessionKeyPair sessionKeyPair, byte[] packet, ref KeyPair keyPair);
Ejemplo n.º 6
0
 internal static extern int hydro_kx_kk_2(out SessionKeyPair sessionKeyPair, byte[] packet, byte[] initialPacket, byte[] publicKey, ref KeyPair keyPair);
Ejemplo n.º 7
0
 public static bool KK3(ref KeyState keyState, out SessionKeyPair sessionKeyPair, byte[] packet, ref KeyPair keyPair)
 {
     return(Native.hydro_kx_kk_3(ref keyState, out sessionKeyPair, packet, ref keyPair) == 0);
 }
Ejemplo n.º 8
0
 public static bool KK2(out SessionKeyPair sessionKeyPair, byte[] packet, byte[] initialPacket, byte[] publicKey, ref KeyPair keyPair)
 {
     return(Native.hydro_kx_kk_2(out sessionKeyPair, packet, initialPacket, publicKey, ref keyPair) == 0);
 }