@@ -73,6 +73,10 @@ typedef struct {
7373 char_u * p2 , int last );
7474} cryptmethod_T ;
7575
76+ static int crypt_sodium_init (cryptstate_T * state , char_u * key , char_u * salt , int salt_len , char_u * seed , int seed_len );
77+ static long crypt_sodium_buffer_decode (cryptstate_T * state , char_u * from , size_t len , char_u * * buf_out , int last );
78+ static long crypt_sodium_buffer_encode (cryptstate_T * state , char_u * from , size_t len , char_u * * buf_out , int last );
79+
7680// index is method_nr of cryptstate_T, CRYPT_M_*
7781static cryptmethod_T cryptmethods [CRYPT_M_COUNT ] = {
7882 // PK_Zip; very weak
@@ -850,7 +854,7 @@ crypt_append_msg(
850854 }
851855}
852856
853- int
857+ static int
854858crypt_sodium_init (
855859 cryptstate_T * state UNUSED ,
856860 char_u * key UNUSED ,
@@ -1030,7 +1034,7 @@ crypt_sodium_decode(
10301034 * Encrypt "from[len]" into "to[len]".
10311035 * "from" and "to" can be equal to encrypt in place.
10321036 */
1033- long
1037+ static long
10341038crypt_sodium_buffer_encode (
10351039 cryptstate_T * state UNUSED ,
10361040 char_u * from UNUSED ,
@@ -1080,7 +1084,7 @@ crypt_sodium_buffer_encode(
10801084 * Decrypt "from[len]" into "to[len]".
10811085 * "from" and "to" can be equal to encrypt in place.
10821086 */
1083- long
1087+ static long
10841088crypt_sodium_buffer_decode (
10851089 cryptstate_T * state UNUSED ,
10861090 char_u * from UNUSED ,
0 commit comments