Skip to content
Chrono edited this page Sep 10, 2021 · 4 revisions

Welcome to the PriSecFileStorage wiki!

This wiki will be showing you how you can use PriSecFileStorage API.

Please browse the right hand side for more information.

Note

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.

  1. Byte[] (mutable data type)
    Other language representatives include unsigned char[](c) or char[](most languages) or uint8_t[](c/c++) or uint8[](c/c++) or byte[](Java)

  2. char[] (mutable data type)
    Other language representatives include unsigned char[](c) or char[](most languages) or uint8_t[](c/c++) or uint8[](c/c++) or byte[](Java)

  3. IntPtr (pointer)
    Other language representatives include variable**(c/c++)

  4. 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.

Clone this wiki locally