Uncompressed (de)serialization of PairingGroup Elements#112
Merged
jakinyele merged 8 commits intoJHUISI:devfrom Jul 5, 2016
Merged
Uncompressed (de)serialization of PairingGroup Elements#112jakinyele merged 8 commits intoJHUISI:devfrom
jakinyele merged 8 commits intoJHUISI:devfrom
Conversation
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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
compressionargument 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).