diff options
author | Daniel Neus <[email protected]> | 2016-08-17 19:14:06 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-08-17 19:14:06 +0200 |
commit | 5675750b04ffab7d17e5f41b9d169d59fb298adf (patch) | |
tree | 5945d48672694eac3e6835c02d5c0338f4246c32 /src | |
parent | 8d7087066a5343a6f142643cf50d55a7681746a3 (diff) |
fix source file encoding ANSI -> UTF-8
should fix:
```
WARN: Invalid character encountered in file /home/travis/build/randombit/botan/src/tests/test_utils.cpp at line 381 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
WARN: Invalid character encountered in file /home/travis/build/randombit/botan/src/lib/pubkey/ecies/ecies.cpp at line 311 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
```
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/pubkey/ecies/ecies.cpp | 2 | ||||
-rw-r--r-- | src/tests/test_utils.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubkey/ecies/ecies.cpp b/src/lib/pubkey/ecies/ecies.cpp index 59f7c9eca..d44d14803 100644 --- a/src/lib/pubkey/ecies/ecies.cpp +++ b/src/lib/pubkey/ecies/ecies.cpp @@ -308,7 +308,7 @@ ECIES_Decryptor::ECIES_Decryptor(const PK_Key_Agreement_Key& key, const ECIES_Sy m_iv(), m_label() { - // ISO 18033: "If v > 1 and CheckMode = 0, then we must have gcd(�, v) = 1." (v = index, � = order) + // ISO 18033: "If v > 1 and CheckMode = 0, then we must have gcd(u, v) = 1." (v = index, u= order) if(!ecies_params.check_mode()) { Botan::BigInt cofactor = m_params.domain().get_cofactor(); diff --git a/src/tests/test_utils.cpp b/src/tests/test_utils.cpp index 04d1092d8..3d474d605 100644 --- a/src/tests/test_utils.cpp +++ b/src/tests/test_utils.cpp @@ -378,7 +378,7 @@ class Charset_Tests : public Text_Based_Test result.test_throws("conversion fails for non-Latin1 characters", []() { - // "abcdef�abcdef" + // "abcdefŸabcdef" std::vector<byte> input = { 0x00, 0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00, 0x65, 0x00, 0x66, 0x01, 0x78, 0x00, 0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00, 0x65, 0x00, 0x66 }; @@ -406,7 +406,7 @@ class Charset_Tests : public Text_Based_Test result.test_throws("conversion fails for non-Latin1 characters", []() { - // "abcdef�abcdef" + // "abcdefŸabcdef" std::vector<byte> input = { 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0xC5, 0xB8, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 }; |