diff options
author | Nikolay Morozov <nmorozoff77@yandex.ru> | 2020-05-18 16:40:43 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2020-05-18 20:51:47 +0300 |
commit | c719289105537c5df301ccad0e6b7e94b6f7843d (patch) | |
tree | d1bd4d7d0212f1479c645ca83fd657a8ee366e4e /gost_eng.c | |
parent | e8747a5b9f045f63501d77fbd760154753c60966 (diff) | |
download | gost-engine-c719289105537c5df301ccad0e6b7e94b6f7843d.zip gost-engine-c719289105537c5df301ccad0e6b7e94b6f7843d.tar.gz gost-engine-c719289105537c5df301ccad0e6b7e94b6f7843d.tar.bz2 |
Fix code formating.
All tabs replcaded with spaces. One file was 2 tabs fornating.
Diffstat (limited to 'gost_eng.c')
-rw-r--r-- | gost_eng.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -177,9 +177,9 @@ static int gost_engine_destroy(ENGINE* e) { int i; for (i = 0; i < OSSL_NELEM(gost_digest_array); i++) - GOST_deinit_digest(gost_digest_array[i]); + GOST_deinit_digest(gost_digest_array[i]); for (i = 0; i < OSSL_NELEM(gost_cipher_array); i++) - GOST_deinit_cipher(gost_cipher_array[i]); + GOST_deinit_cipher(gost_cipher_array[i]); gost_param_free(); @@ -262,12 +262,12 @@ static int bind_gost(ENGINE* e, const char* id) { int i; for (i = 0; i < OSSL_NELEM(gost_cipher_array); i++) { - if (!EVP_add_cipher(GOST_init_cipher(gost_cipher_array[i]))) + if (!EVP_add_cipher(GOST_init_cipher(gost_cipher_array[i]))) goto end; } for (i = 0; i < OSSL_NELEM(gost_digest_array); i++) { - if (!EVP_add_digest(GOST_init_digest(gost_digest_array[i]))) + if (!EVP_add_digest(GOST_init_digest(gost_digest_array[i]))) goto end; } @@ -301,8 +301,8 @@ static int gost_digests(ENGINE *e, const EVP_MD **digest, for (i = 0; i < OSSL_NELEM(gost_digest_array); i++) if (nid == gost_digest_array[i]->nid) { - *digest = GOST_init_digest(gost_digest_array[i]); - return 1; + *digest = GOST_init_digest(gost_digest_array[i]); + return 1; } *digest = NULL; return 0; @@ -325,8 +325,8 @@ static int gost_ciphers(ENGINE *e, const EVP_CIPHER **cipher, for (i = 0; i < OSSL_NELEM(gost_cipher_array); i++) if (nid == gost_cipher_array[i]->nid) { - *cipher = GOST_init_cipher(gost_cipher_array[i]); - return 1; + *cipher = GOST_init_cipher(gost_cipher_array[i]); + return 1; } *cipher = NULL; return 0; |