|
@ -1017,26 +1017,26 @@ _sign() { |
|
|
_ec_s="$(echo "$_signedECText" | _head_n 3 | _tail_n 1 | cut -d : -f 4 | tr -d "\r\n")" |
|
|
_ec_s="$(echo "$_signedECText" | _head_n 3 | _tail_n 1 | cut -d : -f 4 | tr -d "\r\n")" |
|
|
if [ "$__ECC_KEY_LEN" -eq "256" ]; then |
|
|
if [ "$__ECC_KEY_LEN" -eq "256" ]; then |
|
|
while [ "${#_ec_r}" -lt "64" ]; do |
|
|
while [ "${#_ec_r}" -lt "64" ]; do |
|
|
_ec_r="0${_ec_r}" |
|
|
|
|
|
|
|
|
_ec_r="0${_ec_r}" |
|
|
done |
|
|
done |
|
|
while [ "${#_ec_s}" -lt "64" ]; do |
|
|
while [ "${#_ec_s}" -lt "64" ]; do |
|
|
_ec_s="0${_ec_s}" |
|
|
|
|
|
|
|
|
_ec_s="0${_ec_s}" |
|
|
done |
|
|
done |
|
|
fi |
|
|
fi |
|
|
if [ "$__ECC_KEY_LEN" -eq "384" ]; then |
|
|
if [ "$__ECC_KEY_LEN" -eq "384" ]; then |
|
|
while [ "${#_ec_r}" -lt "96" ]; do |
|
|
while [ "${#_ec_r}" -lt "96" ]; do |
|
|
_ec_r="0${_ec_r}" |
|
|
|
|
|
|
|
|
_ec_r="0${_ec_r}" |
|
|
done |
|
|
done |
|
|
while [ "${#_ec_s}" -lt "96" ]; do |
|
|
while [ "${#_ec_s}" -lt "96" ]; do |
|
|
_ec_s="0${_ec_s}" |
|
|
|
|
|
|
|
|
_ec_s="0${_ec_s}" |
|
|
done |
|
|
done |
|
|
fi |
|
|
fi |
|
|
if [ "$__ECC_KEY_LEN" -eq "512" ]; then |
|
|
if [ "$__ECC_KEY_LEN" -eq "512" ]; then |
|
|
while [ "${#_ec_r}" -lt "132" ]; do |
|
|
while [ "${#_ec_r}" -lt "132" ]; do |
|
|
_ec_r="0${_ec_r}" |
|
|
|
|
|
|
|
|
_ec_r="0${_ec_r}" |
|
|
done |
|
|
done |
|
|
while [ "${#_ec_s}" -lt "132" ]; do |
|
|
while [ "${#_ec_s}" -lt "132" ]; do |
|
|
_ec_s="0${_ec_s}" |
|
|
|
|
|
|
|
|
_ec_s="0${_ec_s}" |
|
|
done |
|
|
done |
|
|
fi |
|
|
fi |
|
|
_debug3 "_ec_r" "$_ec_r" |
|
|
_debug3 "_ec_r" "$_ec_r" |
|
|