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
/**
* Represents a slice of bytes owned by Rust.
*
* # Safety
*
* To free the memory [`crypter_free_slice`](CrypterRustSlice::crypter_free_slice) must be called.
*/
typedef struct CrypterRustSlice CrypterRustSlice;
/**
* Represents a AES256 GCM SIV key.
*/
typedef uint8_t CrypterKey;
/**
* Represents a slice of bytes owned by the caller.
*/
typedef struct CrypterCSlice CrypterCSlice;
/**
* Frees the slice of bytes owned by Rust.
*
* # Safety
*
* It may be unsafe to call `free()` on this slice as there is no guarantee of which allocator
* was used.
*/
void ;
/**
* Encrypts the payload with AES256 GCM SIV. The iv is randomly generated for each call.
*
* A wrapper around [`encrypt`](../fn.encrypt.html)
*
* # Safety
*
* This method does not take ownership of the parameters.
*/
struct CrypterRustSlice ;
/**
* Encrypts the payload with AES256 GCM SIV using a key derived from password with Argon2.
* The iv and the salt are randomly generated for each call.
*
* A wrapper around [`encrypt_with_password`](../fn.encrypt_with_password.html)
*
* # Safety
*
* This method does not take ownership of the parameters.
*/
struct CrypterRustSlice ;
/**
* Decrypts the payload with AES256 GCM SIV.
*
* A wrapper around [`decrypt`](../fn.decrypt.html).
*
* # Safety
*
* This method does not take ownership of the parameters.
*/
struct CrypterRustSlice ;
/**
* Decrypts the payload with AES256 GCM SIV using a key derived from password with Argon2.
*
* A wrapper around [`decrypt_with_password`](../fn.decrypt_with_password.html)
*
* # Safety
*
* This method does not take ownership of the parameters.
*/
struct CrypterRustSlice ;