1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stepan [7]
3 years ago
11

Bob and Alice have agreed that Bob would answer Alice's invitation using ElGamal with the following parameters: ( prime p = 29,

e1= 3, d = 5 and the random r = 7 ) find first the set of public and private keys. Bob replies in pairs of C1,C2 as follows: (12, 27), (12, 19), (12, 13), (12, 22), (12, 0), (12, 2), (12, 25), (12, 19), (12, 1), (12, 22), (12, 3), (12, 23), (12, 1), (12, 4). Please decipher the response that Bob sent to Alice.
Computers and Technology
1 answer:
Ira Lisetskai [31]3 years ago
3 0

Answer:

540, 380,260,440, 0, 40, 500, 380, 20, 440, 60, 460, 20 and 80.

Explanation:

So, we are given the following parameters or data or information which is going to assist us in solving the question above, they are;

(1). "prime p = 29, e1= 3, d = 5 and the random r = 7"

(2). C1C2 reply; "(12, 27), (12, 19), (12, 13), (12, 22), (12, 0), (12, 2), (12, 25), (12, 19), (12, 1), (12, 22), (12, 3), (12, 23), (12, 1), (12, 4)".

So, let us delve into the solution to the question;

Step one: determine the primitive modulo 29.

These are; 2, 3, 8, 10, 11, 14, 15, 18, 19, 21, 26, 27.

Step two: Compute V = k ^c mod p.

Say k = 2.

Then;

V = 2^7 mod 29 = 128 mod 29.

V = 12.

Step three: determine the Public key.

Thus, (p,g,y) = (29,2,12)

Private key = c = 7.

Step four: decipher.

Thus for each code pair we will decided it by using the formula below;

(1). (12,27).

W = j × b^(p - 1 - c) mod p.

W= 27 × 12^(29 -1 -7) mod 29. = 540

(2). (12, 19).

19 × 12^(29 - 1 - 7) mod 29.

( 12^(29 - 1 - 7) mod 29 = 20).

= 19 × 20 = 380.

(3).(12, 13) = 13× 20 = 260.

(4). (12, 22) = 22 × 20 = 440

(5). (12, 0) = 0 × 20 = 0.

(6). (12, 2) = 2× 20= 40.

(7). (12, 25) = 25 × 20 = 500.

(8). (12, 19) = 19 × 20 = 380.

(9).(12, 1) = 1 × 20 = 20.

(10). (12, 22) = 22 × 20 = 440.

(11). (12, 3) = 3× 20 = 60.

(13). (12, 23) = 23 × 20 = 460.

(14). (12, 1) =1 × 20 = 20.

(15). (12, 4) = 4 × 20 = 80.

You might be interested in
Describe how learning can be accessed in your class?​
SpyIntel [72]

There are four main learning styles used in classrooms today: Visual, auditory, reading/writing, and kinesthetic.

8 0
4 years ago
a(n) ___ loop allows you to cycle through an array without specifying the starting and ending points for the loop
Arte-miy333 [17]

Answer:

enhanced for loop

Explanation:

Enhanced for loop is an improve concept about loops, this features was implemented in Java SE 5.0 version, this method simplify the For structure. For example:

for (int i = 0; i <array.length; i ++) {  

   System.out.print (array [i]);  

}

Enhanced for loop

for (String element : array) {

   System.out.print(element);

}

8 0
3 years ago
Question: 4/8
Gemiola [76]

The generated test cases for the function assuming another developer coded the function is given below in a C++ program.

<h3>THE CODE</h3>

#include <iostream>  

#include <iomanip>

#include <string>

using namespace std;

// define the data type "triangletype" with {values}

enum triangleType { scalene, isosceles, equilateral, noTriangle };

// Prototype function which returns the position of triangleType{value}

// Example: Scalene = 0, isosceles = 1, etc. These are zero indexed.

triangleType triangleShape(double a, double b, double c);

// Prototype function which takes the integer value of the

// triangle type and outputs the name of triangle

string shapeAnswer(int value);

int main() {

   double inputA;

   double inputB;

   double inputC;

   cout << "To determine whether a triangle is either:" << endl;

   cout << setw(50) << " - Scalene" << endl; // Unequal in length

   cout << setw(52) << " - Isosceles" << endl; // Two sides equal length

   cout << setw(54) << " - Equilateral" << endl; // All sides equal

   cout << setw(57) << " - Not a triangle" << endl;

   cout << "Enter side A: ";

   cin >> inputA;

   cout << "Enter side B: ";

   cin >> inputB;

  cout << "Enter side C: ";

   cin >> inputC;

   cout << "The triangle is " << shapeAnswer(triangleShape(inputA, inputB, inputC)) << endl;

}

triangleType triangleShape(double a, double b, double c) {

   triangleType answer;

   if ( c >= (a + b) || b >= (a + c) || a >= (b + c) ) {

       answer = noTriangle;

   }

   else if (a == b && b == c) {

       answer = equilateral;

   }

   // Test the 3 options for Isosceles equality

   else if ( (a == b) && (a != c) || (b == c) && (b != a) || (a == c) && (a != b) ) {

       answer = isosceles;

   }

   else {

       answer = scalene;

   }

   return answer;

}

string shapeAnswer(int value) {

   string answer;

  switch (value) {

   case 0:

       answer = "Scalene";

       break;

   case 1:

       answer = "Isosceles";

       break;

   case 2:

       answer = "Equilateral";

       break;

   case 3:

       answer = "Not a triangle";

       break;

   default:

       break;

   }

   return answer;

}

Read more about C++ programs here:

brainly.com/question/20339175

#SPJ1

8 0
2 years ago
Which of the following operating systems includes a virtual assistant?<br> Group of answer choices
Anna [14]

Complete Question:

Which of the following operating systems includes a virtual assistant?

Group of answer choices

a. macOS

b. Linux

c. UNIX

d. Chrome OS

Answer:

a. macOS

Explanation:

Macintosh refers to a set of computers designed, developed and manufactured by Apple Inc. Apple officially began the sales of Macintosh on the 24th of January, 1984. The first designs of Macintosh are considered to be personal computers and had a mouse, in-built screen with a graphical user interface (GUI). The operating system designed and developed for Apple computers (MacBook) is known as macOS (Macintosh operating system).

A virtual assistant can be defined as a computer software program that is artificially intelligent to understand human voice commands and performs task for the end user based on instructions or commands.

Generally, macOS is an operating system that includes a virtual assistant referred to as Siri. Siri was developed and released by Apple on the 4th of October, 2011.

<em>Siri as a virtual assistant, is able to perform tasks such as setting reminders, scheduling events, media player controls, GPS navigation, internet search, answer some questions etc. </em>

3 0
3 years ago
If a preferred (faster) learned route over a WAN has administrative distance 110 that competes with a static backup (slower) rou
almond37 [142]

The engineer will need to set the distance to 130 for the static link so that it becomes a floating static route.

<h3>What is Floating static routes?</h3>

This is known to be a static routes that is said to have a kind of administrative distance that is also known to be bigger than the administrative distance of any other static route or dynamic routes.

Note that the value 130 stands for the next most logical value, nd as such it is to know that the right route comes first in the steps for administrative distance.

Learn more about WAN from

brainly.com/question/11352260

5 0
3 years ago
Other questions:
  • Classify the given items as belonging to the public domain or protected by copyright law.
    6·2 answers
  • What is the assignment operator?
    15·1 answer
  • Alison retrieved data from a company database containing personal information on customers. When she looks at the SSN field, she
    14·1 answer
  • What do u say to your bf if he says sayy lesssss
    14·2 answers
  • What property must be set on a menu item to have the user activate that option by pressing Ctrl C on the keyboard
    11·1 answer
  • What is polymerization1​
    11·1 answer
  • Write a description of the photograph to someone who cannot see the photograph. Be sure to include the title of the photograph a
    5·1 answer
  • Your organization has 20 employees who need an accounting software update installed. Due to a miscommunication, the purchaser on
    6·1 answer
  • If there are over 1,000 websites about a certain topic, the information is reliable. A. True B. False
    12·1 answer
  • Please help me on this match all this up i’ll give you brainlist
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!