Hyperledger-TWGC / java-gm

Java语言国密基础库
Apache License 2.0
47 stars 19 forks source link

part of #76 #77

Closed SamYuan1990 closed 2 years ago

SamYuan1990 commented 2 years ago

Move IO handle to user.

Signed-off-by: Sam Yuan yy19902439@126.com

SamYuan1990 commented 2 years ago

Change the parameter type from File to Reader, why is it?

https://github.com/Hyperledger-TWGC/java-gm/issues/76 ref this, moving IO to user side for handle error case if any. reduce risk of memory leak.