curve: use sizeof instead of hard coded value

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>