Diff
Not logged in

Differences From Artifact [b805184f93]:

To Artifact [5e6ed4c24a]:


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