Top
Back: m_merkle_hellman_decryption
Forward: merkle_hellman_decryption
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.3.51 merkle_hellman_encryption

Procedure from library crypto.lib (see crypto_lib).

Usage:
merkle_hellman_encryption(knapsack, message)

Return:
encrypted integer

Example:
 
LIB "crypto.lib";
//Please note that the values  have been obtained from the example of merkle_hellman_transformation!
list hardknapsack =3,9,15,13;
list message = 0,1,0,1;
merkle_hellman_encryption(hardknapsack,message);
==> 22


Top Back: m_merkle_hellman_decryption Forward: merkle_hellman_decryption FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.