cloudflare / circl

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
http://blog.cloudflare.com/introducing-circl
Other
1.26k stars 138 forks source link

Pad blind RSA protocol messages to fixed modulus width #310

Closed chris-wood closed 2 years ago

chris-wood commented 2 years ago

Before, some messages would contain |N|-1 bytes, and the spec requires the endpoints to abort in that case. This change ensures that all protocol messages are of the appropriate fixed width.

chris-wood commented 2 years ago

@cjpatton added tests for the lengths!