Warning, file /include/nettle/gostdsa.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef NETTLE_GOSTDSA_H_INCLUDED
0034 #define NETTLE_GOSTDSA_H_INCLUDED
0035
0036 #include "ecc.h"
0037 #include "dsa.h"
0038 #include "ecdsa.h"
0039
0040 #ifdef __cplusplus
0041 extern "C" {
0042 #endif
0043
0044
0045 #define gostdsa_sign nettle_gostdsa_sign
0046 #define gostdsa_verify nettle_gostdsa_verify
0047 #define gostdsa_vko nettle_gostdsa_vko
0048 #define ecc_gostdsa_sign nettle_ecc_gostdsa_sign
0049 #define ecc_gostdsa_sign_itch nettle_ecc_gostdsa_sign_itch
0050 #define ecc_gostdsa_verify nettle_ecc_gostdsa_verify
0051 #define ecc_gostdsa_verify_itch nettle_ecc_gostdsa_verify_itch
0052
0053
0054 #define gostdsa_generate_keypair ecdsa_generate_keypair
0055
0056
0057
0058
0059
0060 void
0061 gostdsa_sign (const struct ecc_scalar *key,
0062 void *random_ctx, nettle_random_func *random,
0063 size_t digest_length,
0064 const uint8_t *digest,
0065 struct dsa_signature *signature);
0066
0067 int
0068 gostdsa_verify (const struct ecc_point *pub,
0069 size_t length, const uint8_t *digest,
0070 const struct dsa_signature *signature);
0071
0072 void
0073 gostdsa_vko (const struct ecc_scalar *key,
0074 const struct ecc_point *pub,
0075 size_t ukm_length, const uint8_t *ukm,
0076 uint8_t *out);
0077
0078
0079 mp_size_t
0080 ecc_gostdsa_sign_itch (const struct ecc_curve *ecc);
0081
0082 void
0083 ecc_gostdsa_sign (const struct ecc_curve *ecc,
0084 const mp_limb_t *zp,
0085
0086
0087 const mp_limb_t *kp,
0088 size_t length, const uint8_t *digest,
0089 mp_limb_t *rp, mp_limb_t *sp,
0090 mp_limb_t *scratch);
0091
0092 mp_size_t
0093 ecc_gostdsa_verify_itch (const struct ecc_curve *ecc);
0094
0095 int
0096 ecc_gostdsa_verify (const struct ecc_curve *ecc,
0097 const mp_limb_t *pp,
0098 size_t length, const uint8_t *digest,
0099 const mp_limb_t *rp, const mp_limb_t *sp,
0100 mp_limb_t *scratch);
0101
0102
0103 #ifdef __cplusplus
0104 }
0105 #endif
0106
0107 #endif