jschanck / ntru

Implementations of the NIST post-quantum cryptography process finalist NTRU.
https://ntru.org
Creative Commons Zero v1.0 Universal
41 stars 8 forks source link

(question) what is the maximum length of encapsulate key (plain text) ? #21

Closed danieagle closed 3 years ago

danieagle commented 3 years ago

Hi! What is the maximum length of encapsulate key (plain text) ?

Motive: I need use the kem with a aes ctr mode. Beyond the key itself (256bits), the decryption part need the IV(nonce) used to encryption to be sended with the key. the IV has length of 128bits. I'm targeting ref-hps4096821.

Thanks! Best whishes, Dani.

jschanck commented 3 years ago

Hi Dani, ntruhps4096821 outputs a 256 bit key. For counter mode it's perfectly fine to start your counter at 0.