|
Eneboo - Documentación para desarrolladores
|
Funciones | |
| ECDSA_SIG * | ECDSA_do_sign (const unsigned char *dgst, int dlen, EC_KEY *eckey) |
| ECDSA_SIG * | ECDSA_do_sign_ex (const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) |
| int | ECDSA_sign (int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) |
| int | ECDSA_sign_ex (int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) |
| int | ECDSA_sign_setup (EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) |
ECDSA_do_sign computes the ECDSA signature of the given hash value using the supplied private key and returns the created signature.
| dgst | pointer to the hash value |
| dgst_len | length of the hash value |
| eckey | pointer to the EC_KEY object containing a private EC key |
| ECDSA_SIG* ECDSA_do_sign_ex | ( | const unsigned char * | dgst, |
| int | dgstlen, | ||
| const BIGNUM * | kinv, | ||
| const BIGNUM * | rp, | ||
| EC_KEY * | eckey | ||
| ) |
ECDSA_do_sign_ex computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
| dgst | pointer to the hash value to sign |
| dgstlen | length of the hash value |
| kinv | optional pointer to a pre-computed inverse k |
| rp | optional pointer to the pre-computed rp value (see ECDSA_sign_setup |
| eckey | pointer to the EC_KEY object containing a private EC key |
| int ECDSA_sign | ( | int | type, |
| const unsigned char * | dgst, | ||
| int | dgstlen, | ||
| unsigned char * | sig, | ||
| unsigned int * | siglen, | ||
| EC_KEY * | eckey | ||
| ) |
ECDSA_sign computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
| type | this parameter is ignored |
| dgst | pointer to the hash value to sign |
| dgstlen | length of the hash value |
| sig | buffer to hold the DER encoded signature |
| siglen | pointer to the length of the returned signature |
| eckey | pointer to the EC_KEY object containing a private EC key |
| int ECDSA_sign_ex | ( | int | type, |
| const unsigned char * | dgst, | ||
| int | dgstlen, | ||
| unsigned char * | sig, | ||
| unsigned int * | siglen, | ||
| const BIGNUM * | kinv, | ||
| const BIGNUM * | rp, | ||
| EC_KEY * | eckey | ||
| ) |
ECDSA_sign_ex computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).
| type | this parameter is ignored |
| dgst | pointer to the hash value to sign |
| dgstlen | length of the hash value |
| sig | buffer to hold the DER encoded signature |
| siglen | pointer to the length of the returned signature |
| kinv | optional pointer to a pre-computed inverse k |
| rp | optional pointer to the pre-computed rp value (see ECDSA_sign_setup |
| eckey | pointer to the EC_KEY object containing a private EC key |
ECDSA_sign_setup precompute parts of the signing operation.
| eckey | pointer to the EC_KEY object containing a private EC key |
| ctx | pointer to a BN_CTX object (may be NULL) |
| kinv | pointer to a BIGNUM pointer for the inverse of k |
| rp | pointer to a BIGNUM pointer for x coordinate of k * generator |
1.7.4