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

D.12.2.52 m_merkle_hellman_decryption

Procedure from library crypto.lib (see crypto_lib).

Usage:
m_merkle_hellman_decryption(knapsack, primitive, mod1, message)

Return:
decrypted binary list

Example:
 
LIB "crypto.lib";
//Please note that the values  have been obtained from the example of m_merkle_hellman_encryption and m_merkle_hellman_transformation!
list knapsack = 2,3,5,7;
int message = 140;
bigint primitive = 2;
bigint mod1 = 211;
m_merkle_hellman_decryption(knapsack,primitive,mod1,message);
==> [1]:
==>    1
==> [2]:
==>    0
==> [3]:
==>    0
==> [4]:
==>    1


Top Back: m_merkle_hellman_encryption Forward: merkle_hellman_encryption FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.