1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
namespace Devolutions.Cryptography
{
/// <summary>
/// Enum containing the definition of native errors.
/// </summary>
public enum NativeError
{
/// <summary>
/// The provided data has an invalid length. Error code: -1
/// </summary>
InvalidLength = -1,
/// <summary>
/// The key length is invalid. Error code: -2
/// </summary>
InvalidKeyLength = -2,
/// <summary>
/// The length of the FFI output buffer is invalid. Error code: -3
/// </summary>
InvalidOutputLength = -3,
/// <summary>
/// The signature of the data blob does not match 0x0d0c. Error code: -11
/// </summary>
InvalidSignature = -11,
/// <summary>
/// The MAC is invalid. Error code: -12
/// </summary>
InvalidMac = -12,
/// <summary>
/// The operation cannot be done with this type. Error code: -13
/// </summary>
InvalidDataType = -13,
/// <summary>
/// The data type is unknown. Error code: -21
/// </summary>
UnknownType = -21,
/// <summary>
/// The data subtype is unknown. Error code: -22
/// </summary>
UnknownSubtype = -22,
/// <summary>
/// The data type version is unknown. Error code: -23
/// </summary>
UnknownVersion = -23,
/// <summary>
/// The data is invalid. Error code: -24
/// </summary>
InvalidData = -24,
/// <summary>
/// A null pointer has been passed to the FFI interface. Error code: -31
/// </summary>
NullPointer = -31,
/// <summary>
/// A cryptographic error occurred. Error code: -32
/// </summary>
CryptoError = -32,
/// <summary>
/// An error with the Random Number Generator occurred. Error code: -33
/// </summary>
RandomError = -33,
/// <summary>
/// A generic IO error has occurred. Error code: -34
/// </summary>
IoError = -34,
/// <summary>
/// There is not enough shares to regenerate a secret: -41
/// </summary>
NotEnoughShares = -41,
/// <summary>
/// The version of the multiple data is inconsistent: -42
/// </summary>
InconsistentVersion = -42,
/// <summary>
/// The length of the data to encrypt/decrypt during online encryption is not the same as the chunk size: -43
/// </summary>
InvalidChunkLength = -43,
/// <summary>
/// The mutex is poisoned and cannot be locked: -44
/// </summary>
PoisonedMutex = -44,
}
}