Changeset 105eb27 in git for Singular/LIB/crypto.lib


Ignore:
Timestamp:
Jul 6, 2015, 9:39:08 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
ddc1937b20b15407322fe606d93ad53240f5b367
Parents:
7036d0b9fb90dfbbb225e698220889d8bfd08fb3
Message:
fix: ddiv vs. / in crypto.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/crypto.lib

    r7036d0 r105eb27  
    6969  merkle_hellman_transformation(list knapsack, int key, int mod1                generates a hard knapsack for the  Merkle-Hellman Kryptosystem for a given easy knapsack , a multiplicator key and a modulus mod1
    7070  merkle_hellman_encryption(list knapsack, list message)                    encrypts a message with the Merkle-Hellman Kryptosystem, using a hard knapsack and a message encoded as binary list
    71   merkle_hellman_decryption(list knapsack, int key, int mod1, int message)          decrypts a message with the multiplicative Merkle-Hellman Kryptosystem, using the hard knapsack, the key, the modulus mod1 and the message encoded as integer   
     71  merkle_hellman_decryption(list knapsack, int key, int mod1, int message)          decrypts a message with the multiplicative Merkle-Hellman Kryptosystem, using the hard knapsack, the key, the modulus mod1 and the message encoded as integer
    7272  super_increasing_knapsack(int ksize)                            Creates the smallest super-increasing knapsack of given size ksize
    7373  h_increasing_knapsack(int ksize, int h)                            Creates the smallest h-increasing knapsack of given size ksize and h
     
    12721272   if((k mod 2)==0)
    12731273   {
    1274       resu=ellipticMult(N,a,b,P,k/2);
     1274      resu=ellipticMult(N,a,b,P,k div 2);
    12751275      return(ellipticAdd(N,a,b,resu,resu));
    12761276   }
Note: See TracChangeset for help on using the changeset viewer.