Home
last modified time | relevance | path

Searched full:sdsa (Results 1 – 13 of 13) sorted by relevance

/freebsd/crypto/libecc/src/examples/sig/sdsa/
H A Dsdsa.h15 * NOTE: although we only need libarith for SDSA as we
27 /* We define hereafter the types and functions for SDSA.
30 /* SDSA public key, composed of:
31 * p the SDSA prime modulus
32 * q the SDSA prime order (prime divisor of (p-1))
33 * g the SDSA generator
36 * NOTE: the SDSA (Schnorr DSA) public key is mapped to a DSA public key
41 /* SDSA private key, composed of:
42 * p the SDSA prime modulus
43 * q the SDSA prime order (prime divisor of (p-1))
[all …]
H A DMakefile10 all: sdsa
20 sdsa: libhash target
21sdsa.c ../../hash/hash.c ../dsa/dsa.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/extern…
26 …$(VERBOSE_MAKE)$(CROSS_COMPILE)$(CC) $(BIN_CFLAGS) -DSDSA sdsa.c ../../hash/hash.c ../dsa/dsa.c $(…
31 @rm -f sdsa
H A Dsdsa.c11 #include "sdsa.h"
25 * scheme (aka SDSA for Schnorr DSA) based on libecc arithmetic primitives.
27 * one corresponding to SDSA as described in the ISO14888-3 standard.
31 * not optimized for big numbers >= 1024 bits usually used for SDSA.
48 * have to be considered. Use this SDSA code knowingly and at your own risk!
52 /* NOTE: since SDSA is very similar to DSA, we reuse some of our DSA
53 * primitives to factorize some code. Also, SDSA private and public keys
57 /* Import a SDSA private key from buffers */
66 /* Import a SDSA public key from buffers */
77 /* Compute a SDSA public key from a private key.
[all …]
/freebsd/crypto/libecc/src/sig/
H A Decsdsa_common.c27 #define EC_SIG_ALG "EC[O]SDSA"
32 * Generic *internal* helper for EC-{,O}SDSA public key initialization
62 * Generic *internal* helper for EC{,O}SDSA signature length functions.
90 * Generic *internal* EC-{,O}SDSA signature functions. There purpose is to
138 * Generic *internal* helper for EC-{,O}SDSA signature initialization functions.
240 * Generic *internal* helper for EC-{,O}SDSA signature update functions.
267 * Generic *internal* helper for EC-{,O}SDSA signature finalization functions.
422 * Generic *internal* helper for EC-{,O}SDSA verification initialization functions.
553 * Generic *internal* helper for EC-{,O}SDSA verification update functions.
581 * Generic *internal* helper for EC-{,O}SDSA verification finalization
H A Decfsdsa.c644 * NOTE: among all the EC-SDSA ISO14888-3 variants, only EC-FSDSA supports
/freebsd/crypto/libecc/.github/workflows/
H A Dlibecc_examples.yml36 …6" make && ./sig/rsa/rsa && ./sig/dsa/dsa && ./sig/kcdsa/kcdsa && ./sig/sdsa/sdsa && ./sig/gostr34…
/freebsd/contrib/ntp/ntpd/
H A Dntp_crypto.c2235 DSA_SIG *sdsa; /* DSA signature context fake */
2255 sdsa = NULL; in crypto_bob()
2278 sdsa = DSA_SIG_new(); in crypto_bob()
2285 DSA_SIG_set0(sdsa, bn, bk); in crypto_bob()
2297 len = i2d_DSA_SIG(sdsa, NULL); in crypto_bob()
2317 i2d_DSA_SIG(sdsa, &ptr); in crypto_bob()
2336 DSA_SIG_free(sdsa); in crypto_bob()
2358 DSA_SIG *sdsa; /* DSA parameters */ in crypto_iff()
2395 if ((sdsa = d2i_DSA_SIG(NULL, &ptr, len)) == NULL) { in crypto_iff()
2407 DSA_SIG_get0(sdsa, in crypto_iff()
2247 DSA_SIG *sdsa; /* DSA signature context fake */ crypto_bob() local
2362 DSA_SIG *sdsa; /* DSA parameters */ crypto_iff() local
2577 DSA_SIG *sdsa; /* DSA parameters */ crypto_bob2() local
2685 DSA_SIG *sdsa; /* RSA signature context fake */ crypto_gq() local
2920 DSA *sdsa; /* DSA signature context fake */ crypto_bob3() local
3036 DSA *sdsa; /* DSA parameters */ crypto_mv() local
[all...]
/freebsd/crypto/libecc/src/examples/sig/
H A DMakefile7 SDSA_DIR=sdsa/
/freebsd/crypto/libecc/include/libecc/sig/
H A Dsig_algs_internal.h128 #if (defined(WITH_SIG_ECSDSA) || defined(WITH_SIG_ECOSDSA)) /* EC[O]SDSA */
184 #if (defined(WITH_SIG_ECSDSA) || defined(WITH_SIG_ECOSDSA)) /* EC[O]SDSA */
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1561 DSA *dsa, *dsa2, *sdsa; /* DSA parameters */ in gen_mvkey()
1917 sdsa = DSA_new(); in gen_mvkey()
1918 DSA_set0_pqg(sdsa, BN_dup(p), BN_dup(BN_value_one()), in gen_mvkey()
1920 DSA_set0_key(sdsa, BN_dup(xhat[j]), BN_dup(xbar[j])); in gen_mvkey()
1922 EVP_PKEY_set1_DSA(pkey1, sdsa); in gen_mvkey()
1927 DSA_print_fp(stderr, sdsa, 0); in gen_mvkey()
1546 DSA *dsa, *dsa2, *sdsa; /* DSA parameters */ gen_mvkey() local
/freebsd/crypto/libecc/scripts/
H A Dcrossbuild.sh48 …check_and_copy $ROOT_DIR/src/examples/sig/sdsa/sdsa $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"/…
H A Dexpand_libecc.py1016 raise Exception("EC[O]SDSA verify: bad signature length!")
/freebsd/crypto/libecc/
H A DREADME.md34 * Core ISO 14888-3:2018 algorithms: ECDSA, ECKCDSA, ECGDSA, ECRDSA, EC{,O}SDSA, ECFSDSA, SM2.
140 * The SDSA (Schnorr DSA) as defined in ISO14888-3
337 …p finite fields discrete logarithm) in [src/examples/sig](src/examples/sig) (RSA, DSA, SDSA, KCDSA,