mirror of
https://abf.rosa.ru/djam/libressl.git
synced 2025-02-23 16:12:53 +00:00
Fix typos in test 8
This commit is contained in:
parent
75ad3445f5
commit
b749df1fd8
1 changed files with 3 additions and 3 deletions
|
@ -456,10 +456,10 @@ unset _gost12sum _libressl
|
||||||
echo test8 > ./test8
|
echo test8 > ./test8
|
||||||
_gs_beg="$(gostsum ./test8 | awk '{print $1}' | head -c2)"
|
_gs_beg="$(gostsum ./test8 | awk '{print $1}' | head -c2)"
|
||||||
_gs_end="$(gostsum ./test8 | awk '{print $1}' | tail -c3)" #-c3 because of EOL
|
_gs_end="$(gostsum ./test8 | awk '{print $1}' | tail -c3)" #-c3 because of EOL
|
||||||
_ls_beg="$($libressl dgst -md_gost94 | awk '{print $NF}' | head -c2)"
|
_ls_beg="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | head -c2)"
|
||||||
_ls_end="$($libressl dgst -md_gost94 | awk '{print $NF}' | tail -c3)"
|
_ls_end="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | tail -c3)"
|
||||||
_gs_length="$(gostsum ./test8 | awk '{print $1}' | wc -c)"
|
_gs_length="$(gostsum ./test8 | awk '{print $1}' | wc -c)"
|
||||||
_ls_length="$($libressl dgst -md_gost94 | awk '{print $NF}' | wc -c)"
|
_ls_length="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | wc -c)"
|
||||||
[ "$_gs_beg" = "$_ls_end" ] && \
|
[ "$_gs_beg" = "$_ls_end" ] && \
|
||||||
[ "$_gs_end" = "$_ls_beg" ] && \
|
[ "$_gs_end" = "$_ls_beg" ] && \
|
||||||
[ "$_gs_length" = "$_ls_length" ] || exit 1
|
[ "$_gs_length" = "$_ls_length" ] || exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue