mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-11 08:23:50 +08:00
Adjust SM3 SM4 API
Remove sm3_digest. Use more _gmssl_export
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2023 The GmSSL Project. All Rights Reserved.
|
||||
* Copyright 2014-2024 The GmSSL Project. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the License); you may
|
||||
* not use this file except in compliance with the License.
|
||||
@@ -56,15 +56,3 @@ void sm3_kdf_finish(SM3_KDF_CTX *ctx, uint8_t *out)
|
||||
memset(&sm3_ctx, 0, sizeof(SM3_CTX));
|
||||
memset(dgst, 0, sizeof(dgst));
|
||||
}
|
||||
|
||||
#if 0
|
||||
// add until v3.2.0
|
||||
void sm3_kdf(const uint8_t *in, size_t inlen, size_t outlen, uint8_t *out)
|
||||
{
|
||||
SM3_KDF_CTX ctx;
|
||||
sm3_kdf_init(&ctx, outlen);
|
||||
sm3_kdf_update(&ctx, in, inlen);
|
||||
sm3_kdf_finish(&ctx, out);
|
||||
memset(&ctx, 0, sizeof(ctx));
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user