mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-29 01:03:38 +08:00
Update API
如果类型内部没有动态内存申请或外部Handle引用,不提供cleanup接口,仅用通用secure clear
This commit is contained in:
@@ -168,7 +168,7 @@ bad:
|
||||
ret = 0;
|
||||
|
||||
end:
|
||||
kyber_key_cleanup(&key);
|
||||
gmssl_secure_clear(&key, sizeof(key));
|
||||
gmssl_secure_clear(keybuf, sizeof(keybuf));
|
||||
if (keyfp) fclose(keyfp);
|
||||
if (infp && infp != stdin) fclose(infp);
|
||||
|
||||
Reference in New Issue
Block a user