malikkhaled
Junior Member level 1

hi,
i am doing encryption and decryption and my algorithm inputs sizes is 256 bits. in test bench i am getting an error like "555677895559 exceeds maximum integer value ", although i didn't declare it as an integer.
constant P: std_logic_vector(255 downto 0):=x"2523648240000001ba344d80000000086121000000000013a700000000000013";
i declare P as constant and perform A+B mod P and A-B mod P based on Cin. any suggestion or comment from your's side?
i am doing encryption and decryption and my algorithm inputs sizes is 256 bits. in test bench i am getting an error like "555677895559 exceeds maximum integer value ", although i didn't declare it as an integer.
constant P: std_logic_vector(255 downto 0):=x"2523648240000001ba344d80000000086121000000000013a700000000000013";
i declare P as constant and perform A+B mod P and A-B mod P based on Cin. any suggestion or comment from your's side?