Re: What is the need for 0x00 byte prefix in pubkey and prime of a static DH key pair?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 30/11/2018 05:26, M K Saravanan wrote:
> Hi,
> 
> When I create static DH key pair using openssl, why the public key and
> prime contains the prefix 0x00 byte?

Because otherwise those numbers would be treated as negative (due to the most
significant bit being set) which is incorrect.

Matt
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux