-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This wiki will be showing you how you can use PriSecFileStorage API.
Please browse the right hand side for more information.
Before you read the documentation, there's something I would like to inform, which is regarding the data type in C# and their representative in other language.
It's hard to explain between the differences of mutable and immutable data type. However, in cryptography, we generally uses mutable data type as they are safer to clear in memory as opposed to immutable data type.
-
Byte[] (mutable data type) Other language representatives include
unsigned char[]
(c) orchar[]
(most languages) oruint8_t[]
(c/c++) oruint8[]
(c/c++) orbyte[]
(Java) -
char[] (mutable data type) Other language representatives include
unsigned char[]
(c) orchar[]
(most languages) oruint8_t[]
(c/c++) oruint8[]
(c/c++) orbyte[]
(Java) -
IntPtr (pointer) Other language representatives include
variable**
(c/c++) -
String (immutable) Other languages do support string.
In my applications, you will realized that I use all the data types described here excluding the char[]. Most of the data are all processed in either IntPtr or Byte[]. You will need to find your own workaround to the data type used.