Changeset 105eb27 in git
- Timestamp:
- Jul 6, 2015, 9:39:08 AM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- ddc1937b20b15407322fe606d93ad53240f5b367
- Parents:
- 7036d0b9fb90dfbbb225e698220889d8bfd08fb3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/crypto.lib
r7036d0 r105eb27 69 69 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 70 70 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 72 72 super_increasing_knapsack(int ksize) Creates the smallest super-increasing knapsack of given size ksize 73 73 h_increasing_knapsack(int ksize, int h) Creates the smallest h-increasing knapsack of given size ksize and h … … 1272 1272 if((k mod 2)==0) 1273 1273 { 1274 resu=ellipticMult(N,a,b,P,k /2);1274 resu=ellipticMult(N,a,b,P,k div 2); 1275 1275 return(ellipticAdd(N,a,b,resu,resu)); 1276 1276 }
Note: See TracChangeset
for help on using the changeset viewer.