LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Diffie-Hellman algorithm hexadecimal

Hello,

 

I've made DH algoritm (link) but I need it to calculate in hex, can someone please show me how to tweek my code for that?

0 Kudos
Message 1 of 2
(3,106 Views)

HEX is a representation (in Base 16) of numeric (usually integer!!) data.  Your code shows Dbl (64-bit floats), which is not an "exact" numeric representation, so is unlikely to implement Diffie-Hillman.  I notice you use the remainder operator which is well-defined for integer representations, but whose meaning is unclear (to me) for floats.

 

You should only need to use Hex to turn an input representation into an internal numeric form for computations, and to transform the output into a final representation.

 

Rethink what you are doing.

 

Bob Schor

0 Kudos
Message 2 of 2
(3,085 Views)