DEC
ntru_decrypt now uses pb_normalize
This commit is contained in:
parent
4030335661
commit
f8f7634c84
@ -73,5 +73,7 @@ pb_poly* ntru_decrypt(pb_poly *encr_msg, pb_poly *priv_key,
|
|||||||
|
|
||||||
pb_starmultiply(a, priv_key_inv, d, context, p);
|
pb_starmultiply(a, priv_key_inv, d, context, p);
|
||||||
|
|
||||||
|
pb_normalize(d,-1,1,context);
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user