EVP_DigestSignInit.pod (312826) | EVP_DigestSignInit.pod (340704) |
---|---|
1=pod 2 3=head1 NAME 4 5EVP_DigestSignInit, EVP_DigestSignUpdate, EVP_DigestSignFinal - EVP signing functions 6 7=head1 SYNOPSIS 8 --- 5 unchanged lines hidden (view full) --- 14 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t *siglen); 15 16=head1 DESCRIPTION 17 18The EVP signature routines are a high level interface to digital signatures. 19 20EVP_DigestSignInit() sets up signing context B<ctx> to use digest B<type> from 21ENGINE B<impl> and private key B<pkey>. B<ctx> must be initialized with | 1=pod 2 3=head1 NAME 4 5EVP_DigestSignInit, EVP_DigestSignUpdate, EVP_DigestSignFinal - EVP signing functions 6 7=head1 SYNOPSIS 8 --- 5 unchanged lines hidden (view full) --- 14 int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t *siglen); 15 16=head1 DESCRIPTION 17 18The EVP signature routines are a high level interface to digital signatures. 19 20EVP_DigestSignInit() sets up signing context B<ctx> to use digest B<type> from 21ENGINE B<impl> and private key B<pkey>. B<ctx> must be initialized with |
22EVP_MD_CTX_init() before calling this function. If B | 22EVP_MD_CTX_init() before calling this function. If B<pctx> is not NULL, the |
23EVP_PKEY_CTX of the signing operation will be written to B<*pctx>: this can | 23EVP_PKEY_CTX of the signing operation will be written to B<*pctx>: this can |
24be used to set alternative signing options. | 24be used to set alternative signing options. Note that any existing value in 25B<*pctx> is overwritten. The EVP_PKEY_CTX value returned must not be freed 26directly by the application (it will be freed automatically when the EVP_MD_CTX 27is freed). The digest B<type> may be NULL if the signing algorithm supports it. |
25 26EVP_DigestSignUpdate() hashes B<cnt> bytes of data at B<d> into the 27signature context B<ctx>. This function can be called several times on the 28same B<ctx> to include additional data. This function is currently implemented 29usig a macro. 30 31EVP_DigestSignFinal() signs the data in B<ctx> places the signature in B<sig>. 32If B<sig> is B<NULL> then the maximum size of the output buffer is written to --- 55 unchanged lines hidden --- | 28 29EVP_DigestSignUpdate() hashes B<cnt> bytes of data at B<d> into the 30signature context B<ctx>. This function can be called several times on the 31same B<ctx> to include additional data. This function is currently implemented 32usig a macro. 33 34EVP_DigestSignFinal() signs the data in B<ctx> places the signature in B<sig>. 35If B<sig> is B<NULL> then the maximum size of the output buffer is written to --- 55 unchanged lines hidden --- |