answersLogoWhite

0


Best Answer

1- Input text T and 64 bit key K and initialization vector IV

2- Divide T into 64 bit size blocks B1...Bn

3- Get the first block B1 and perform bit-wise XOR with IV to

produce scrambled plaintext

4- Get the scrambled plaintext and encrypt with K with DES to

produce encrypted block E1

5- Repeat

a. Get next block Bi and perform bit-wise XOR with Ei-1 to

produce scrambled plaintext

b. Get the scrambled plaintext and encrypt with K with DES

to produce Ei

6- Until End of Text

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Consider a simple symmetric encryption algorithm as follows 1- input text t and 64 bit key k 2- divide t into 64 bit size blocks b1.bn 3- get first block b1 and perform bit-wise xor with k to?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

Broadcast IP 123.123.2.5 and a subnet mask of 255.255.255.224?

First, convert the relevant portion of the subnet mask to binary: 255.255.255.1110 0000[1], aka /27. Next the last octet of the IP address (slightly more complex, but 5's an easy one): 0000 0101.That means the network is 123.123.2.0/27, the all-host-bits-1 broadcast address is at 123.123.2.31, and available host addresses are 30 hosts from 123.123.2.1 to 123.123.2.30 .[1] I skipped the all-ones octets, because they're not really necessary to write out.If you want it slightly more expanded:Subnet mask: 1111 1111.1111 1111.1111 1111.1111 1111.1110 0000IP address: 0111 1011.0111 1011.0000 0010.0000 0101Network address: 0111 1011.0111 1011.0000 0010.0000 0000For each bit of the subnet mask that is 1, you take the equivalent bit out of the IP address, and the rest you fill with 0. If you prefer that terminology, you perform a bitwise AND of subnet mask and IP address.Broadcast address: 0111 1011.0111 1011.0000 0010.0001 1111For the broadcast address, take the network address and fill the host bits with 1s instead of 0 (this is why they're also called all-0s and all-1s respectively).Now just convert that binary broadcast address back to decimal: 123.123.2.31(ProTip: You already know three of those octets because of where you got them from.)(ProTip: a nibble filled with 1s is 15 or 240 decimal, and a nibble filled with 0s is always 0)When you have the network address and the broadcast address, you also know the available host range for this subnet: one inward from each end, or 123.123.2.1 to 123.123.2.30 .


Related questions

How many bitwise operators are present in Java?

The bitwise & operator performs a bitwise AND operation. The bitwise ^ operator performs a bitwise exclusive OR operation. The bitwise | operator performs a bitwise inclusive OR operation.


All the bitwise operators have the same level of precedence in Java true or false?

False: highest precedence & bitwise AND ^ bitwise XOR | bitwise OR lowest precedence


How do you represent assignment by bitwise XOR operator?

The bitwise XOR operator is ^, or shift 6. The bitwise XOR assignment operator is ^=.


What is the use of bitwise operator in c plus plus?

They perform bitwise operations like AND (&), OR (|), XOR (^) and NOT (~).


How do you write a javascript to swap two numbers without using third one?

By using the algorithm of bitwise EORing (Exclusive ORing) the numbers together:If the two numbers are X and Y, then to swap them:X = X EOR YY = Y EOR XX =X EOR Ywill swap them.With knowledge of that algorithm, one then uses the syntax of Javascript to implement it.


What is use of l in c language?

Bitwise OR.


What are Bit Manipulations in C programming?

in C you can manipulate the individual bits of a data item. << leftwise shift >> rightwise shift & bitwise AND | bitwise OR ~ bitwise complement (flips all bits) I can't go intoa tutorial here in how to use these, but google it - i just did and there's tons of info out there.


What are different type's operators?

The different types of operators are as follows: *Arithmatic operator *Relational operator *Logical operator *Assignment operator *Increment/Decrement operator *Conditional operator *Bitwise operator *Special operator


Explain the Difference between bitwise operator ' and ' and address operator ' and ' of pointer?

The bitwise logical operator and (&) calculates the bitwise logical and of two integral values. It is a binary operator.The address of (&) operator returns the address of the value to its right. It is a unary operator.The distinction between the two is one of context. The logical and operator will follow (and be preceeded by) a value, while the address of operator will follow an operator.


Which bit wise operator is suitable for putting on a particular bit in a number?

bitwise OR is used..


Which bitwise operator is suitable for turning off a perticular bit in a number?

AND, or to be more precise: OR


What are logical classes in c plus plus?

There is no such thing. Logic is bitwise operation, not a data type.