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, 22.06.2019 07:30
By refraining from constructing a building until they are certain that it will not cause harm to the environment, an organization is adhering to the
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
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
Social Studies, 23.11.2021 21:50
question
Computers and Technology, 23.11.2021 21:50
question
English, 23.11.2021 21:50
question
Geography, 23.11.2021 21:50