view src/proto/sha256.pro @ 27243:c072eed37deb v8.2.4150

patch 8.2.4150: Coverity warns for using pointer after free Commit: https://github.com/vim/vim/commit/8aa0e6c60da5f7a4b04eaead40d183fd8e5640a4 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 20 11:27:58 2022 +0000 patch 8.2.4150: Coverity warns for using pointer after free Problem: Coverity warns for using pointer after free. Solution: Swap statements, even though using the pointer is no problem.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 12:30:07 +0100
parents 21b0a39d13ed
children
line wrap: on
line source

/* sha256.c */
void sha256_start(context_sha256_T *ctx);
void sha256_update(context_sha256_T *ctx, char_u *input, UINT32_T length);
void sha256_finish(context_sha256_T *ctx, char_u digest[32]);
char_u *sha256_bytes(char_u *buf, int buf_len, char_u *salt, int salt_len);
char_u *sha256_key(char_u *buf, char_u *salt, int salt_len);
int sha256_self_test(void);
void sha2_seed(char_u *header, int header_len, char_u *salt, int salt_len);
/* vim: set ft=c : */