Skip to content

Commit 894e2bc

Browse files
authored
Merge pull request #98 from cschlote/add-evp-digest-sign-and-verify
Add declarations for EVP_DigestSign() and EVP_DigestVerify()
2 parents 1e3c699 + 837a1e5 commit 894e2bc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/deimos/openssl/evp.di

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,17 @@ int EVP_DigestFinal_ex(EVP_MD_CTX* ctx,ubyte* md,uint* s);
593593
int EVP_Digest(const(void)* data, size_t count,
594594
ubyte* md, uint* size, const(EVP_MD)* type, ENGINE* impl);
595595

596+
static if (OPENSSL_VERSION_AT_LEAST(1, 1, 1))
597+
{
598+
int EVP_DigestSign(EVP_MD_CTX* ctx, ubyte* sigret,
599+
size_t* siglen, const(ubyte)* tbs,
600+
size_t tbslen);
601+
602+
int EVP_DigestVerify(EVP_MD_CTX* ctx, const(ubyte)* sigret,
603+
size_t siglen, const(ubyte)* tbs,
604+
size_t tbslen);
605+
}
606+
596607
int EVP_MD_CTX_copy(EVP_MD_CTX* out_,const(EVP_MD_CTX)* in_);
597608
int EVP_DigestInit(EVP_MD_CTX* ctx, const(EVP_MD)* type);
598609
int EVP_DigestFinal(EVP_MD_CTX* ctx,ubyte* md,uint* s);

0 commit comments

Comments
 (0)