login about faq

From what i can tell the AES encryption requires an IV to be set. However, chilkat does not require an IV. When I use AES encryption with the Chilkat library how does the software handle this? Is there an algorithm to generate the IV when it is not provided?

The Chilkat library absolutely won't run in Azure despite limited responses from Azure staff and Chilkat staff on this matter. I must find a way to decrypt our data manually for clients using Cloud Services. Based on my research (limited to be honest) there is an incompatibility between .net decryption and the chilkat implementation based on the IV value. .Net requires an IV and our Chilkat does not. I have inspected the value of the IV just before encryption and it is byte[0], which will throw an error when trying to write my own decyption method in .net.

Can you please share how this IV is being used in Chilkat OR where my deficiency is in understanding this process?

asked Feb 10 at 11:59

heegar's gravatar image

heegar
33


It is the cipher mode (CipherMode property) that determines whether an IV is required or not. For example, AES in ECB cipher mode does NOT require an IV. AES in CBC cipher mode DOES require an IV.

If you forget to explicitly provide an IV in CBC mode, then a default all-zero IV is used. (i.e. 16 bytes each of which has the value 0x00)

link

answered Feb 10 at 12:31

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Great information, thank you. I have finally solved my issue.

(Feb 10 at 14:20) heegar
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×98
×33
×23

Asked: Feb 10 at 11:59

Seen: 397 times

Last updated: Feb 10 at 14:20

powered by OSQA