aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/ecies
Commit message (Collapse)AuthorAgeFilesLines
* Add a more explicit exception to catch cases where app doesn't set IVJack Lloyd2019-10-131-0/+5
|
* Always try to use an IV with ECIESJack Lloyd2019-10-131-8/+3
| | | | | | | | If the mode requires an IV, and the user did not set an IV with set_initialization_vector, then previously some hard to understand errors would occur. GH #2150
* Fix some warnings with Clang 8Jack Lloyd2019-05-081-2/+3
| | | | | | Notably several from the new -Wdefaulted-function-deleted Also remove some compat macro checks for MSVC 2013
* Remove tab charactersJack Lloyd2019-04-101-3/+3
|
* Rename Integrity_Failure to Invalid_Authentication_TagJack Lloyd2019-01-181-1/+1
| | | | | | | | | This makes the meaning and usage more clear. Add a specific error type so invalid tags can be distinguished without having to catch that specific type. See also #1813
* Remove trailing whitespaceJack Lloyd2019-01-131-3/+3
|
* Add CT::Mask typeJack Lloyd2018-11-281-3/+1
|
* Add missing override annotations [ci skip]Jack Lloyd2018-08-131-1/+1
|
* Add function to return the size of a key agreement outputJack Lloyd2018-08-121-0/+2
| | | | Very useful when using "Raw" DH/ECDH via the FFI API.
* Add functions to get size of PK ciphertext,plaintextJack Lloyd2018-08-102-40/+61
| | | | Needed for https://github.com/strongswan/strongswan/pull/109
* Add RAII versions of get_cipher_mode and get_aeadJack Lloyd2018-04-071-6/+1
| | | | See also #1526
* Add PointGFp::encode as replacement for EC2OSPJack Lloyd2018-03-101-3/+2
| | | | | | Literally every single call to EC2OSP is converting the returned secure_vector to a std::vector. Which makes sense since private points are not really a thing in any protocol I know of.
* Add mixed (J+A) point addition, new scalar mul for base pointsJack Lloyd2018-03-081-3/+2
| | | | | | | | | Adds PointGFp::force_affine(), ::add_affine(), and ::is_affine() Use a (very simple) technique for base point precomputations. Stick with fixed window for variable point inputs. Scalar blinding is now always enabled
* New API for blinded ECC point multiplicationJack Lloyd2018-02-211-5/+13
| | | | No shared state
* Use shared representation of EC_GroupJack Lloyd2018-01-311-7/+6
| | | | Hide CurveGFp with an eye for eventual removal
* Cleanup ECIES testJack Lloyd2018-01-021-1/+1
| | | | And avoid warnings from Sonar about adding booleans
* Apply final annotations to the library alsoJack Lloyd2017-09-222-5/+5
| | | | | Done by a perl script which converted all classes to final, followed by selective reversion where it caused compilation failures.
* More include header cleanupsJack Lloyd2017-09-212-2/+2
|
* Header file cleanupsJack Lloyd2017-09-211-0/+1
| | | | Some help from include-what-you-use
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Add API stability annotations.Jack Lloyd2017-09-191-5/+5
| | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
* Use constant_time_compare instead of same_memJack Lloyd2017-09-161-1/+1
| | | | New name, same great operation
* Clean up use of <limits> headerJack Lloyd2017-09-031-0/+1
| | | | Don't include it where it is not needed, included it where it is used.
* Content:Tomasz Frydrych2017-04-031-0/+4
| | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
* Remove "Dirty hack" for multiple defines in lex_me_harder()Simon Warta2017-04-021-1/+3
|
* Merge GH #779 Add ECDH/ECIES blinding and DH small subgroup checkingJack Lloyd2016-12-211-5/+8
|\
| * Blind the ECDH/ECIES agree operation.Never2016-12-191-5/+8
| |
* | Convert to using standard uintN_t integer typesJack Lloyd2016-12-182-25/+25
|/ | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Pubkey cleanupsJack Lloyd2016-11-121-5/+0
| | | | | | | | | | Add Public_Key::key_length usable for policy checking (as in TLS::Policy::check_peer_key_acceptable) Remove Public_Key::max_input_bits because it didn't make much sense for most algorithms actually. Remove message_parts and message_part_size from PK_Ops
* Simplify some code by using T::create_or_throwJack Lloyd2016-11-032-21/+7
|
* Fix doxygen warnings [ci skip]René Korthaus2016-10-191-0/+3
|
* Improve pubkey doxygen [ci skip]René Korthaus2016-10-191-1/+1
|
* Make pk_ops.h internalJack Lloyd2016-10-082-16/+30
| | | | Some fixes for missing system_rng in ECIES and tests.
* Remove Algo_Registry usage from public key code.Jack Lloyd2016-10-072-7/+16
| | | | | | | | Instead the key types exposes operations like `create_encryption_op` which will return the relevant operation if the algorithm supports it. Changes pubkey.h interface, now RNG is passed at init time. Blinder previous created its own RNG, now it takes it from app.
* fix source file encoding ANSI -> UTF-8Daniel Neus2016-08-171-1/+1
| | | | | | | | | 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'. ```
* add more ECIES testsDaniel Neus2016-07-191-2/+2
|
* replace (deprecated) Pipe API with Cipher_Mode in ECIESDaniel Neus2016-07-133-22/+20
|
* Add missing override annotation. Fix formatting in ECIES testsJack Lloyd2016-06-301-1/+1
|
* ecies review change: decrypt only if mac is correct and catch exceptions ↵Philipp Weber2016-05-231-11/+25
| | | | during decryption
* add ecies implementation according to iso-18033Philipp Weber2016-04-273-0/+687