X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fsptps.h;fp=src%2Fsptps.h;h=9754811c447508c306248ee42dc106ee4c79b21d;hb=03aafb2c9ea38c9baf9bc0672001ffe38c91c47d;hp=98e70f14d38a81b6e46e5958327455ddcec47248;hpb=f619a7412c1aeebcdeb98cb95244a9eed5d9b537;p=meshlink diff --git a/src/sptps.h b/src/sptps.h index 98e70f14..9754811c 100644 --- a/src/sptps.h +++ b/src/sptps.h @@ -22,8 +22,7 @@ #include "system.h" -#include "cipher.h" -#include "digest.h" +#include "chacha-poly1305/chacha-poly1305.h" #include "ecdh.h" #include "ecdsa.h" @@ -53,16 +52,14 @@ typedef struct sptps { uint16_t reclen; bool instate; - cipher_t *incipher; - digest_t *indigest; + chacha_poly1305_ctx_t *incipher; uint32_t inseqno; uint32_t received; unsigned int replaywin; char *late; bool outstate; - cipher_t *outcipher; - digest_t *outdigest; + chacha_poly1305_ctx_t *outcipher; uint32_t outseqno; ecdsa_t *mykey;