Sam Yuan
Sam Yuan
> 在SM2和Jsm-crypto 的互操作上可以参考gmhelper的实现 https://github.com/ZZMarquis/gmhelper > > 下列的代码是另外写的测试 > > ``` > @Test > public void testDecryptWithSmCrypto() throws Exception { > String encryptedData = "d2dbc0db9212e0fcae2b9617b781042a737f92ad083e4452ebe1cf6b5ac687819fabe55d46d7260e99f08696500762eddcb51a2d984c63ef79262c898b82f8b48ab353960a9a5121fa3da543dc7f0f2eee56fa2f03564408a95a59d27ef7f276f0185b6381c70ebd912f"; > // 密文需要加04后传入解密 > encryptedData =...
> 另外写的测试是sm-crypto加密的结果,用 https://github.com/ZZMarquis/gmhelper 来解密 @linenlin01 或者 @changhr2013 几个事情麻烦回答一下。 1. 将泄漏检测机制添加到java-gm的ci中,使得该问题得以浮现。https://github.com/Hyperledger-TWGC/java-gm/blob/master/src/main/java/twgc/gm/sm2/SM2Util.java 这个文件一共240行,报错在241行? 2. 如果可以提交pr修复问题 3. 请问hash to byte的转化方法是必须的么?有关hash to byte的背景原因是什么? 4. 能邀请sm-crypto的作者来参与讨论么? 我个人的一些观点和考虑: - 如果文件只有240行,报错在241行,无法复现或者定位的话,无助于我们进行修复。 - 如果hash to byte不是必须的,或者规范方法,则不考虑实现某特定库的方法。 - 如果无法复现或者改进的话,则会作为问题关闭这个issue...
> 我只是个路过的,大概讲一下吧: > > 1. Java 操作 IO 流是需要确保关闭的,因此一般会在 `finally` 语句块中关闭资源,或者直接使用 `try-with-resources` 语法,对应的应该就是楼上说的资源泄露问题。 > 2. `hash to byte` 说法应该有误,我猜应该是指的 Hex 编解码的方法,以及 Java 公私钥对象和 SM2 裸公私钥字节数组的转换方法,Hex 编解码 BC 库有提供,可以忽略。(因为 `sm-crypto` 库的输入输出都是使用...
@ryjones , @davidkhala I suppose we need a github action to update https://github.com/Hyperledger-TWGC/java-gm/packages/520545
@ryjones , could you please help ref https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Gradle to help us publish a maven package?
> start here; it doesn't work now. #87 I suppose it due to the gradle version, as https://github.com/gradle/wrapper-validation-action#reporting-failures so, can we just publish the jar without verifying it? or specific...
block by https://github.com/melix/jmh-gradle-plugin/issues/175#issuecomment-782879895
> @SamYuan1990 Can you please add more information on this? we can have a daily build for latest tag image. for example https://github.com/sustainable-computing-io/kepler/pull/924 so that, hope by this kind of...
example version bump up for kepler-action commit at https://github.com/sustainable-computing-io/kepler/commit/a759d2baeb0d4a92b7acbca5116a0f848449c3a7
let's keep collect requirements and ideas in this ticket. I will update my ideas and break down my plans later.