conversion¶
Date: | Jul 5, 2011 |
---|---|
Authors: | Gary Belvin |
This class facilitates conversion between domain spaces
-
class
conversion.
Conversion
[source]¶ Bases:
object
The goal is to convert arbitrarily between any of the following types
Input types:
- bytes
- Bytes
- int
- Integer Element
- Modular Integer Element
Output types:
- int
- Group element
- Integer element
- Integer element mod N
-
classmethod
IP2OS
(number, xLen=None)[source]¶ Parameters: number
: is a normal integer, not modularxLen
: is the intended length of the resulting octet string
Converts an integer into a byte string