summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* experiment: Fix t-ecdsa.c for building SEXP.gniibe/new-pk-apiNIIBE Yutaka2021-12-081-1/+1
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: One more fix testing gcry_pk_hash_sign.NIIBE Yutaka2021-10-071-1/+1
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add a feature specifying hash algo in the template.NIIBE Yutaka2021-10-062-12/+74
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Fix test error messages.NIIBE Yutaka2021-10-062-4/+4
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Change use of pkey_open for classic ECC.NIIBE Yutaka2021-10-025-10/+80
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add the test forgotten.NIIBE Yutaka2021-10-011-0/+450
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add _gcry_pkey_rsa_dec and a test.NIIBE Yutaka2021-09-297-35/+112
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add _gcry_pkey_nist_ecdh and a test.NIIBE Yutaka2021-09-246-5/+679
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: RSA decryption input, ECDH input.NIIBE Yutaka2021-09-222-0/+1689
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Test gcry_pk_hash_sign/gcry_pk_hash_verify for DSA.NIIBE Yutaka2021-09-221-0/+278
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Test gcry_pk_hash_sign/gcry_pk_hash_verify for RSA 15.NIIBE Yutaka2021-09-221-0/+173
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Test gcry_pk_hash_sign/gcry_pk_hash_verify for ECDSA.NIIBE Yutaka2021-09-172-0/+285
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Also support "label" in data.NIIBE Yutaka2021-09-171-0/+25
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add tests for RSA-PSS.NIIBE Yutaka2021-09-171-0/+216
| | | | | | | | | | | | | * tests/t-rsa-pss.c (one_test_sexp): New. -- Preparing data template for RSS-PSS is a bit tricky, because default is generating salt internally and we need to supply "(salt-length 1:0)" to specify no salt. GnuPG-bug-id: 4894 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment-pk_hash_sign/verify: Implement pk_hash_sign/verify.NIIBE Yutaka2021-09-174-1/+13
| | | | | Fixes-commit: 117f5c3f8028efc18a0b20d854b6b2b8babcb1d6 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Support random_override context.NIIBE Yutaka2021-09-161-6/+32
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add gcry_pk_random_override_new function.NIIBE Yutaka2021-09-166-2/+65
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Supply CTX to internal implementation.NIIBE Yutaka2021-09-163-17/+28
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment-pk_hash_sign/verify: Implement pk_hash_sign/verify.NIIBE Yutaka2021-09-164-13/+142
| | | | | | | -- GnuPG-bug-id: 4894 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* pk: Add gcry_pk_hash_sign function.NIIBE Yutaka2021-09-151-0/+13
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* cipher: Fix ECDSA to support supplied K input.NIIBE Yutaka2021-09-133-31/+58
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Fix for NIST curves.NIIBE Yutaka2021-09-133-10/+65
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement ECDSA with NIST curves by PKEY API.NIIBE Yutaka2021-09-105-30/+302
| | | | | | | | -- Need to fix _gcry_ecc_ecdsa_sign to support supplying K externally. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add tests for ECDSA with NIST curves.NIIBE Yutaka2021-09-104-3/+3166
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Fix the previous commit.NIIBE Yutaka2021-09-101-0/+1
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* cipher:dsa: Support supplying K by "label".NIIBE Yutaka2021-09-102-7/+52
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement DSA for PKEY, and add its test.NIIBE Yutaka2021-09-107-19/+3170
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement X9.31 with truncated hash.NIIBE Yutaka2021-09-103-1/+198
| | | | | | | | | -- md_number = 0x39, 0x40 is guess work, as I don't have access to X9.31 document. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement RSA PSS with truncated hash, fix its tests.NIIBE Yutaka2021-09-092-29/+56
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add test vectors for RSA PSS truncated hash.NIIBE Yutaka2021-09-093-1/+274
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add truncated hash support for PKCS#1 ver1.5.NIIBE Yutaka2021-09-093-1/+253
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* cipher: Support sha512-224 and sha512-256.NIIBE Yutaka2021-09-092-2/+14
| | | | | | | | * cipher/pubkey-util.c (get_hash_algo): Add. * cipher/sha512.c (sha512_256_asn, sha512_224_asn): Fill correct values. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Use fixedlen flag and it is already fixedlen for pss/15.NIIBE Yutaka2021-09-091-66/+10
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* cipher: Support "fixedlen" flag.NIIBE Yutaka2021-09-091-0/+2
| | | | | | | | | * cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): Add the support. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement RSA X9.31 signature.NIIBE Yutaka2021-09-083-11/+368
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add test for RSA X9.31.NIIBE Yutaka2021-09-083-2/+778
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* cipher: Support internal hashing with "prehash" for RSA PKCS#1.NIIBE Yutaka2021-09-081-15/+67
| | | | | | | * cipher/pubkey-util.c (_gcry_pk_util_data_to_mpi): Support internal hashing. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement RSA PKCS#1 Ver1.5.NIIBE Yutaka2021-09-087-5/+983
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement RSA-PSS.NIIBE Yutaka2021-09-076-78/+417
| | | | | | * cipher/pkey-rsapss.c: New. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Wrote the test for RSA PSS.NIIBE Yutaka2021-09-074-2/+882
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add Ed448 implementation.NIIBE Yutaka2021-09-075-10/+427
| | | | | | | * cipher/pkey-ed448.c: New. * tests/t-ed448.c: Add testing with new API. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Factor out Ed25519 implementation into a single file.NIIBE Yutaka2021-09-074-189/+283
| | | | | | * cipher/pkey-ed25519.c: New. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Add comment and figures.NIIBE Yutaka2021-09-061-1/+20
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement Ed25519ctx.NIIBE Yutaka2021-09-061-8/+40
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement Ed25519ph.NIIBE Yutaka2021-09-061-14/+26
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement gcry_pkey_op.NIIBE Yutaka2021-09-032-30/+170
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Implement _gcry_pkey_vopen/_gcry_pkey_close.NIIBE Yutaka2021-09-033-2/+171
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Write the test, in the beginning.NIIBE Yutaka2021-09-038-13/+395
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: Export PKEY API.NIIBE Yutaka2021-09-034-2/+44
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* experiment: New PKEY API.NIIBE Yutaka2021-09-022-1/+22
| | | | | | | | | | | | * src/gcrypt-int.h: Add functions. * src/gcrypt.h.in: Add enum and typedef. -- Commits here are not expected to merge directly. Instead, please review again and manually pick to merge. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>