Lines Matching refs:siglen
22 size_t *siglen, size_t sigsize);
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
79 I<siglen> parameter.
80 If I<sig> is not NULL, then before the call the I<siglen> parameter should
82 signature is written to I<sig> and the amount of data written to I<siglen>.
159 size_t mdlen = 32, siglen;
178 if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) <= 0)
181 sig = OPENSSL_malloc(siglen);
186 if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) <= 0)
189 /* Signature is siglen bytes written to buffer sig */
204 size_t mdlen = 32, siglen;
221 if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) <= 0)
224 sig = OPENSSL_malloc(siglen);
229 if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) <= 0)
232 /* Signature is siglen bytes written to buffer sig */
249 size_t inlen, siglen;
268 if (EVP_PKEY_sign(ctx, NULL, &siglen, in, inlen) <= 0)
271 sig = OPENSSL_malloc(siglen);
276 if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) <= 0)
279 /* Signature is siglen bytes written to buffer sig */
294 size_t inlen, siglen;
324 if (EVP_PKEY_sign_message_final(ctx, NULL, &siglen) <= 0)
327 sig = OPENSSL_malloc(siglen);
332 if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) <= 0)
335 /* Signature is siglen bytes written to buffer sig */