safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit d89c6fc699fd695b5b7c6e000392da6a88f6e2b2
parent f9cce62c8b24ac4fb7f6d28ae6085b345081e4ca
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  4 Jun 2019 14:51:12 +0200

Make tag and uint8_t in secret_encrypt()

Diffstat:
safe.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/safe.c b/safe.c @@ -129,7 +129,7 @@ xwrite(int fd, const void *buf, size_t nbytes) int secret_encrypt(struct safe *s, uint8_t *m, size_t mlen, uint8_t *c, unsigned long long *clen, int flags) { - int tag = 0; + uint8_t tag = 0; if (flags & SAFE_INIT) if (crypto_secretstream_xchacha20poly1305_init_push(&s->st, s->h, s->key))