Skip to content

Commit

Permalink
Merge pull request #1026 from lvyaoting/master
Browse files Browse the repository at this point in the history
chore: remove repetitive words
  • Loading branch information
qtum-neil authored Apr 11, 2024
2 parents fedc98c + 9d2d1f7 commit 0aaac44
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cryptopp/TestScripts/setenv-embedded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fi
# IS_LINUX or IS_DARWIN, and incorporate settings for ARM_EMBEDDED
export IS_ARM_EMBEDDED=1

# GNUmakefile-cross uses these to to set CXXFLAGS for ARM_EMBEDDED
# GNUmakefile-cross uses these to set CXXFLAGS for ARM_EMBEDDED
if [ -z "$ARM_EMBEDDED_SYSROOT" ]; then
export ARM_EMBEDDED_SYSROOT="/usr/arm-linux-gnueabi"
fi
Expand Down
4 changes: 2 additions & 2 deletions src/cryptopp/algparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class CRYPTOPP_DLL AlgorithmParametersBase
//! \param name the parameter name
//! \param throwIfNotUsed flags indicating whether an exception should be thrown
//! \details If throwIfNotUsed is true, then a ParameterNotUsed exception
//! will be thrown in the destructor if the parameter is not not retrieved.
//! will be thrown in the destructor if the parameter is not retrieved.
AlgorithmParametersBase(const char *name, bool throwIfNotUsed)
: m_name(name), m_throwIfNotUsed(throwIfNotUsed), m_used(false) {}

Expand Down Expand Up @@ -378,7 +378,7 @@ class AlgorithmParametersTemplate : public AlgorithmParametersBase
//! \param value a reference to the value
//! \param throwIfNotUsed flags indicating whether an exception should be thrown
//! \details If throwIfNotUsed is true, then a ParameterNotUsed exception
//! will be thrown in the destructor if the parameter is not not retrieved.
//! will be thrown in the destructor if the parameter is not retrieved.
AlgorithmParametersTemplate(const char *name, const T &value, bool throwIfNotUsed)
: AlgorithmParametersBase(name, throwIfNotUsed), m_value(value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/cryptopp/des.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This is a major rewrite of my old public domain DES code written
* circa 1987, which in turn borrowed heavily from Jim Gillogly's 1977
* public domain code. I pretty much kept my key scheduling code, but
* the actual encrypt/decrypt routines are taken from from Richard
* the actual encrypt/decrypt routines are taken from Richard
* Outerbridge's DES code as printed in Schneier's "Applied Cryptography."
*
* This code is in the public domain. I would appreciate bug reports and
Expand Down
2 changes: 1 addition & 1 deletion src/cryptopp/pubkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ class CRYPTOPP_NO_VTABLE DL_GroupParameters : public CryptoParameters
//! \brief Determines if an element is an identity
//! \param element element to check
//! \return true if the element is an identity, false otherwise
//! \details The identity element or or neutral element is a special element in a group that leaves
//! \details The identity element or neutral element is a special element in a group that leaves
//! other elements unchanged when combined with it.
//! \details IsIdentity() must be implemented in a derived class.
virtual bool IsIdentity(const Element &element) const =0;
Expand Down
2 changes: 1 addition & 1 deletion src/cryptopp/setenv-embedded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fi
# IS_LINUX or IS_DARWIN, and incorporate settings for ARM_EMBEDDED
export IS_ARM_EMBEDDED=1

# GNUmakefile-cross uses these to to set CXXFLAGS for ARM_EMBEDDED
# GNUmakefile-cross uses these to set CXXFLAGS for ARM_EMBEDDED
if [ -z "$ARM_EMBEDDED_SYSROOT" ]; then
export ARM_EMBEDDED_SYSROOT="/usr/arm-linux-gnueabi"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1/src/secp256k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ static int secp256k1_ecdsa_sign_inner(const secp256k1_context* ctx, secp256k1_sc
break;
}
is_nonce_valid = secp256k1_scalar_set_b32_seckey(&non, nonce32);
/* The nonce is still secret here, but it being invalid is is less likely than 1:2^255. */
/* The nonce is still secret here, but it being invalid is less likely than 1:2^255. */
secp256k1_declassify(ctx, &is_nonce_valid, sizeof(is_nonce_valid));
if (is_nonce_valid) {
ret = secp256k1_ecdsa_sig_sign(&ctx->ecmult_gen_ctx, r, s, &sec, &msg, &non, recid);
Expand Down
4 changes: 2 additions & 2 deletions test/lint/lint-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def check_all_filenames(files) -> int:
for filename in filenames:
if not filename_regex.match(filename):
print(
f"""File {repr(filename)} does not not match the allowed filename regexp ('{ALLOWED_FILENAME_REGEXP}')."""
f"""File {repr(filename)} does not match the allowed filename regexp ('{ALLOWED_FILENAME_REGEXP}')."""
)
failed_tests += 1
return failed_tests
Expand All @@ -111,7 +111,7 @@ def check_source_filenames(files) -> int:
for filename in filenames:
if not filename_regex.match(filename) and not filename_exception_regex.match(filename):
print(
f"""File {repr(filename)} does not not match the allowed source filename regexp ('{ALLOWED_SOURCE_FILENAME_REGEXP}'), or the exception regexp ({ALLOWED_SOURCE_FILENAME_EXCEPTION_REGEXP})."""
f"""File {repr(filename)} does not match the allowed source filename regexp ('{ALLOWED_SOURCE_FILENAME_REGEXP}'), or the exception regexp ({ALLOWED_SOURCE_FILENAME_EXCEPTION_REGEXP})."""
)
failed_tests += 1
return failed_tests
Expand Down

0 comments on commit 0aaac44

Please sign in to comment.