Fix formatting for file with changes

This fixes the formatting for src/libcrypto.c for the last bits where it
is not correct.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Dirkjan Bussink
2020-12-14 11:58:24 +01:00
committed by Jakub Jelen
parent 1991bdac0d
commit 385ac0911d

View File

@@ -420,7 +420,8 @@ int ssh_kdf(struct ssh_crypto_struct *crypto,
}
#endif
HMACCTX hmac_init(const void *key, int len, enum ssh_hmac_e type) {
HMACCTX hmac_init(const void *key, int len, enum ssh_hmac_e type)
{
HMACCTX ctx = NULL;
ctx = HMAC_CTX_new();
@@ -428,7 +429,6 @@ HMACCTX hmac_init(const void *key, int len, enum ssh_hmac_e type) {
return NULL;
}
switch (type) {
case SSH_HMAC_SHA1:
HMAC_Init_ex(ctx, key, len, EVP_sha1(), NULL);
@@ -450,7 +450,8 @@ HMACCTX hmac_init(const void *key, int len, enum ssh_hmac_e type) {
return ctx;
}
void hmac_update(HMACCTX ctx, const void *data, unsigned long len) {
void hmac_update(HMACCTX ctx, const void *data, unsigned long len)
{
HMAC_Update(ctx, data, len);
}
@@ -460,7 +461,8 @@ void hmac_final(HMACCTX ctx, unsigned char *hashmacbuf, unsigned int *len)
HMAC_CTX_free(ctx);
}
static void evp_cipher_init(struct ssh_cipher_struct *cipher) {
static void evp_cipher_init(struct ssh_cipher_struct *cipher)
{
if (cipher->ctx == NULL) {
cipher->ctx = EVP_CIPHER_CTX_new();
}