cfrg / draft-irtf-cfrg-voprf

Oblivious Pseudorandom Functions (OPRFs) using Prime-Order Groups
https://cfrg.github.io/draft-irtf-cfrg-voprf/#go.draft-irtf-cfrg-voprf.html
Other
39 stars 15 forks source link

How long are the serialized byte arrays? #386

Closed jyasskin closed 1 year ago

jyasskin commented 1 year ago

https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-21.html#name-online-protocol says

Elements and scalars are serialized to byte arrays

but doesn't say how long the arrays are. I suspect the lengths are implied by the ciphersuite, but it would be good to say it explicitly so that implementers are sure to pick the same lengths.

armfazh commented 1 year ago

Section 2.1 already explains that: the size of elements is the constant Ne and the size of scalars is the constant Ns.

Also, each ciphersuite define the value of these constant values.

armfazh commented 1 year ago

Closing as answered.