 30 Nov, 2019 1 commit


Daiki Ueno authored
This patch adds the necessary primitives for "curve448", defined in RFC 7748. Those primitives are namely: addition, doubling, scalar multiplication of the generator or an arbitrary point, inversion, and square root.

 24 Nov, 2019 1 commit


Niels Möller authored
Current gost support in gnutls depends on nettle internals.

 21 Nov, 2019 2 commits


Niels Möller authored
Related to the the edwards_root member of struct ecc_curve, which was used by ecc_a_to_eh before it was deleted, see 20140917 entry below. (ecc_curve_init): Delete corresponding curve25519 constants, and NULL arguments passed for the other curves.

Niels Möller authored

 05 Oct, 2019 3 commits


Niels Möller authored

Justus Winter authored

Justus Winter authored

 01 Oct, 2019 3 commits


Niels Möller authored
* testsuite/testutils.c (test_cipher_cfb8): Reset destination area between tests. Encrypt/decrypt final partial block.

Niels Möller authored

Daiki Ueno authored
Previously cfb8_decrypt didn't update the IV if the input is shorter than the AES block size. Reported by Stephan Mueller. Signedoffby: Daiki Ueno <dueno@redhat.com>

 30 Sep, 2019 2 commits


Niels Möller authored

Niels Möller authored

 26 Sep, 2019 1 commit


Niels Möller authored

 15 Sep, 2019 8 commits


Niels Möller authored

Niels Möller authored

Dmitry Baryshkov authored
Russian technical comitee working on standartization of cryptography algorithms has published the document describing usage of GOST R 34.1194 hash function with PBKDF2 algorithm (MR 26.2.0012012). Add test vectors from that document and a special function implementing Nettle interface for PBKDF2 using gosthash94cp. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
GOST hash functions can be used to generate MAC using HMAC algorithm. Add functions implementing HMAC with GOSTHASH94/GOSTHASH94CP. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Add entries for gosthash94 and gosthash94cp in nettle_hashes array. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Hash gosthash94 implements GOST R 34.1194 standard using SBox defined in the standard 'for testing purposes only'. RFC 4357 defines SBox (CryptoPro one) for GOST R 34.1194 hash function that is widely used in applications. Add separate hash function algorithm (gosthash94cp) implementing GOST R 34.1194 hashing using that SBox. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Hash function GOST R 34.1194 (gosthash94) in its compression function uses Russian block cipher (GOST 2814789, Magma). Start separating block cipher code from hash function code. For now there is no public interface for this cipher, it will be added later. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Niels Möller authored

 14 Sep, 2019 1 commit


Niels Möller authored

 04 Sep, 2019 3 commits


Dmitry Baryshkov authored
Move GCM's block shift function to blockinternal.h. This concludes moving of all Galois mulby2 to single header. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Move Galois polynomial shifts to blockinternal.h, simplifying common code. GCM is left unconverted for now, this will be fixed later. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Add common implementations for functions doing XOR over nettle_block16/nettle_block8. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

 03 Sep, 2019 2 commits


Dmitry Baryshkov authored
CMAC64 uses block8, rather than block16. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Dmitry Baryshkov authored
Remove last usage of unsigned long member of nettle_block16. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

 23 Aug, 2019 1 commit


Niels Möller authored

 22 Jul, 2019 1 commit


Dmitry Baryshkov authored

 21 Jul, 2019 1 commit


Niels Möller authored

 10 Jul, 2019 4 commits


Niels Möller authored

Dmitry Baryshkov authored
Implement CMAC using TrippleDES as underlying cipher. Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Niels Möller authored

Dmitry Baryshkov authored
Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

 08 Jul, 2019 3 commits


Niels Möller authored

Niels Möller authored

Niels Möller authored

 02 Jul, 2019 3 commits


Niels Möller authored

Dmitry Baryshkov authored
Signedoffby: Dmitry EreminSolenikov <dbaryshkov@gmail.com>

Simo Sorce authored
When performing ECDH the peer provided public key needs to be checked for validity. FIPS requires basic tests be performed to insure the provided points are in fact on the selected curve. Those checks already exists in the ecc_point_set() function. Add an explicit test that checks the boundaries so that any regression in checks will be caught. Signedoffby: Simo Sorce <simo@redhat.com>
