Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libdigidoc/openssl/crypto/ecdsa/ecs_vrf.c
#include "ecs_locl.h"
#include <openssl/engine.h>

Funciones

int ECDSA_do_verify (const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, EC_KEY *eckey)
int ECDSA_verify (int type, const unsigned char *dgst, int dgst_len, const unsigned char *sigbuf, int sig_len, EC_KEY *eckey)

Documentación de las funciones

int ECDSA_do_verify ( const unsigned char *  dgst,
int  dgst_len,
const ECDSA_SIG sig,
EC_KEY eckey 
)

ECDSA_do_verify verifies that the supplied signature is a valid ECDSA signature of the supplied hash value using the supplied public key.

Parámetros:
dgstpointer to the hash value
dgst_lenlength of the hash value
sigpointer to the ECDSA_SIG structure
eckeypointer to the EC_KEY object containing a public EC key
Devuelve:
1 if the signature is valid, 0 if the signature is invalid and -1 on error
int ECDSA_verify ( int  type,
const unsigned char *  dgst,
int  dgstlen,
const unsigned char *  sig,
int  siglen,
EC_KEY eckey 
)

ECDSA_verify verifies that the given signature is valid ECDSA signature of the supplied hash value using the specified public key.

Parámetros:
typethis parameter is ignored
dgstpointer to the hash value
dgstlenlength of the hash value
sigpointer to the DER encoded signature
siglenlength of the DER encoded signature
eckeypointer to the EC_KEY object containing a public EC key
Devuelve:
1 if the signature is valid, 0 if the signature is invalid and -1 on error
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'