Lines Matching refs:sig
21 int EVP_PKEY_sign_message_final(EVP_PKEY_CTX *ctx, unsigned char *sig,
24 unsigned char *sig, size_t *siglen,
65 I<sig>, and the number of signature bytes in I<*siglen>, if the number of
67 I<sig> may be NULL, and in that case, only I<*siglen> is updated with the
78 If I<sig> is NULL then the maximum size of the output buffer is written to the
80 If I<sig> is not NULL, then before the call the I<siglen> parameter should
81 contain the length of the I<sig> buffer, and if the call is successful the
82 signature is written to I<sig> and the amount of data written to I<siglen>.
158 unsigned char *md, *sig;
181 sig = OPENSSL_malloc(siglen);
183 if (sig == NULL)
186 if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) <= 0)
189 /* Signature is siglen bytes written to buffer sig */
203 unsigned char *md, *sig;
224 sig = OPENSSL_malloc(siglen);
226 if (sig == NULL)
229 if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) <= 0)
232 /* Signature is siglen bytes written to buffer sig */
247 unsigned char *in, *sig;
267 /* Determine sig buffer length */
271 sig = OPENSSL_malloc(siglen);
273 if (sig == NULL)
276 if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) <= 0)
279 /* Signature is siglen bytes written to buffer sig */
292 unsigned char *in, *sig;
323 /* Determine sig buffer length */
327 sig = OPENSSL_malloc(siglen);
329 if (sig == NULL)
332 if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) <= 0)
335 /* Signature is siglen bytes written to buffer sig */