viff

changeset 1408:071cc09baa67

aes: More verbose documentation of the module.
author Marcel Keller <mkeller@cs.au.dk>
date Thu, 10 Dec 2009 16:10:04 +0100
parents c2e2cc8d195f
children 9e08c7c3cce9
files viff/aes.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/aes.py	Thu Dec 10 15:52:19 2009 +0100
     1.2 +++ b/viff/aes.py	Thu Dec 10 16:10:04 2009 +0100
     1.3 @@ -15,7 +15,16 @@
     1.4  # You should have received a copy of the GNU Lesser General Public
     1.5  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
     1.6  
     1.7 -"""MPC implementation of AES (Rijndael)."""
     1.8 +"""MPC implementation of AES (Rijndael). This module can be used to
     1.9 +securely compute a secret shared AES encrypted ciphertext of a
    1.10 +(possibly) secret shared plaintext with a (possibly) secret shared
    1.11 +key. The inputs have to be given either as a list of shares over GF256
    1.12 +(byte-wise) or as a string. The runtime has to be able to handle
    1.13 +shares over GF256. Decryption is not implemented yet.
    1.14 +
    1.15 +The implementation is based on the fact that AES has arithmetic
    1.16 +properties which makes its computation by arithmetic circuits
    1.17 +relatively fast."""
    1.18  
    1.19  import time
    1.20  import operator