Path: blob/main/crypto/openssl/providers/implementations/include/prov/md5_sha1.h
48535 views
/*1* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#ifndef OSSL_PROV_MD5_SHA1_H10# define OSSL_PROV_MD5_SHA1_H1112# include <openssl/opensslconf.h>1314# ifndef OPENSSL_NO_MD515# include <openssl/e_os2.h>16# include <stddef.h>17# include <openssl/md5.h>18# include <openssl/sha.h>1920# define MD5_SHA1_DIGEST_LENGTH (MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH)21# define MD5_SHA1_CBLOCK MD5_CBLOCK2223typedef struct md5_sha1_st {24MD5_CTX md5;25SHA_CTX sha1;26} MD5_SHA1_CTX;2728int ossl_md5_sha1_init(MD5_SHA1_CTX *mctx);29int ossl_md5_sha1_update(MD5_SHA1_CTX *mctx, const void *data, size_t count);30int ossl_md5_sha1_final(unsigned char *md, MD5_SHA1_CTX *mctx);31int ossl_md5_sha1_ctrl(MD5_SHA1_CTX *mctx, int cmd, int mslen, void *ms);3233# endif /* OPENSSL_NO_MD5 */3435#endif /* OSSL_PROV_MD5_SHA1_H */363738