Skip to content

Uncompressed (de)serialization of PairingGroup Elements#112

Merged
jakinyele merged 8 commits intoJHUISI:devfrom
lferr:improve-pairingmodule
Jul 5, 2016
Merged

Uncompressed (de)serialization of PairingGroup Elements#112
jakinyele merged 8 commits intoJHUISI:devfrom
lferr:improve-pairingmodule

Conversation

@lferr
Copy link
Copy Markdown
Contributor

@lferr lferr commented Jul 5, 2016

Added support for uncompressed serialization of PairingGroup elements for faster deserialization (for scenarios with not-so-strict storage and network constraints).
To maintain compatibility with existing schemes, the default behavior of the (de)serialization routines is to use compression. Compression can be disabled by using a keyword-only boolean compression argument when calling PairingGroup.serialize and PairingGroup.deserialize.

Additionally, serialize, deserialize and pairing product routines now raise standard fine-grained python exceptions (TypeError and ValueError) with more informative messages (especially pairing product).

lferr added 8 commits July 5, 2016 11:30
Serializing curve elements through their compressed representation is sometime
not convenient due to the large computational costs of the "decompression"
algorithm of some curve.

The serialize and deserialize routines of the c extension 'pairing' now take
an additional positional argument to disable elements compression.

The corresponding serialize and deserialize methods of the PairingGroup class
now implements an optional keyword-only argument 'compression'.

The default value behavior is to use compression for compatibility with
previous versions.
@lferr lferr mentioned this pull request Jul 5, 2016
@jakinyele jakinyele merged commit 4b9f152 into JHUISI:dev Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants