处理入参STMSI得到iv

This commit is contained in:
zcy
2025-09-09 16:06:49 +08:00
parent 7425c4d980
commit c8608321d9
3 changed files with 159 additions and 78 deletions

View File

@@ -0,0 +1,22 @@
//package com.cscn;
//
//import javacard.security.RandomData;
//
//public class RandomGenerator {
// private final RandomData random;
//
// //构造函数
// public RandomGenerator()
// {
// //类当中有getInstance的都要先调用这个函数获取对象实例才能使用其他方法不然6F00
// random = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
// }
//
// //产生length长度的随机数并返回
// public final byte[] GenrateSecureRand(short length, byte[] out)
// {
// //生成4bit的随机数
// random.generateData(out, (short)0, (short)length);
// return out;
// }
//}