subject

Write a C program Implement counter mode using perm384bc. The user will supply a nonce that is a buffer of 12 bytes, a key that is a buffer of 32 bytes, and both a source and destination buffer that are nbytes long. Here are some implementation suggestions.
- Auto-allocate on the stack two 48-byte arrays, one to hold your counter block and one to hold your perm384bc output.
- Initialize your counter block to begin with your 12-byte nonce followed by 36 bytes of zero.
You can then loop doing the following each iteration until nbytes becomes zero.
- increment your block
- use perm384bc with your block as input and your buffer as output
- xor min(48, nbytes) bytes of the buffer with your source and write the result to your destination
- move your source and destination pointers forward by the number of bytes you just wrote
- decrement nbytes by the number of bytes you just wrote

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
question
Computers and Technology, 24.06.2019 21:40
Assume you need to test a function named inorder. the function inorder receives three int arguments and returns true if and only if the arguments are in non-decreasing order: that is, the second argument is not < the first and the third is not < the second. write the definition of driver function testinorder whose job it is to determine whether inorder is correct. so testinorder returns true if inorder is correct and returns false otherwise. for the purposes of this exercise, assume inorder is an expensive function call, so call it as few times as possible!
Answers: 1
You know the right answer?
Write a C program Implement counter mode using perm384bc. The user will supply a nonce that is a bu...
Questions
question
English, 14.01.2021 16:30
Questions on the website: 13722361