Diff
Not logged in

Differences From Artifact [b805184f93]:

To Artifact [5e6ed4c24a]:


80
81
82
83
84
85
86














87
88
89
90
91
92
93












94
95
96
97
98
99
100
                                    c: *const u8,
                                    mac: *const u8,
                                    clen: c_ulonglong,
                                    n: *const u8,
                                    pk: *const u8,
                                    sk: *const u8)
                                    -> c_int;














    pub fn crypto_box_seal(c: *mut u8, m: *const u8, mlen: c_ulonglong, pk: *const u8) -> c_int;
    pub fn crypto_box_seal_open(m: *mut u8,
                                c: *const u8,
                                clen: c_ulonglong,
                                pk: *const u8,
                                sk: *const u8)
                                -> c_int;












}

#[test]
fn test_crypto_box_seedbytes() {
    assert!(unsafe { crypto_box_seedbytes() as usize } == crypto_box_SEEDBYTES)
}
#[test]







>
>
>
>
>
>
>
>
>
>
>
>
>
>







>
>
>
>
>
>
>
>
>
>
>
>







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
                                    c: *const u8,
                                    mac: *const u8,
                                    clen: c_ulonglong,
                                    n: *const u8,
                                    pk: *const u8,
                                    sk: *const u8)
                                    -> c_int;
    pub fn crypto_box_detached_afternm(c: *mut u8,
                                       mac: *mut u8,
                                       m: *const u8,
                                       mlen: c_ulonglong,
                                       n: *const u8,
                                       k: *const u8)
                                       -> c_int;
    pub fn crypto_box_open_detached_afternm(m: *mut u8,
                                            c: *const u8,
                                            mac: *const u8,
                                            clen: c_ulonglong,
                                            n: *const u8,
                                            k: *const u8)
                                            -> c_int;
    pub fn crypto_box_seal(c: *mut u8, m: *const u8, mlen: c_ulonglong, pk: *const u8) -> c_int;
    pub fn crypto_box_seal_open(m: *mut u8,
                                c: *const u8,
                                clen: c_ulonglong,
                                pk: *const u8,
                                sk: *const u8)
                                -> c_int;
    pub fn crypto_box_easy_afternm(c: *mut u8,
                                   m: *const u8,
                                   mlen: c_ulonglong,
                                   n: *const u8,
                                   k: *const u8)
                                   -> c_int;
    pub fn crypto_box_open_easy_afternm(m: *mut u8,
                                        c: *const u8,
                                        clen: c_ulonglong,
                                        n: *const u8,
                                        k: *const u8)
                                        -> c_int;
}

#[test]
fn test_crypto_box_seedbytes() {
    assert!(unsafe { crypto_box_seedbytes() as usize } == crypto_box_SEEDBYTES)
}
#[test]