初始化主密钥
This commit is contained in:
@@ -31,7 +31,7 @@ public class BcSdfApiAdaptor implements SdfApiAdapter {
|
||||
deviceInfo = new DeviceInfo();
|
||||
deviceInfo.setIssuerName("BC");
|
||||
deviceInfo.setDeviceName("BC-3000");
|
||||
deviceInfo.setDeviceSerial("BC00202411051037");
|
||||
deviceInfo.setDeviceSerial("BC202411051037");
|
||||
deviceInfo.setDeviceVersion(1);
|
||||
deviceInfo.setStandardVersion(1);
|
||||
deviceInfo.setAsymAlgAbility(new long[]{7493065891348563935L, 3000543215027029126L});
|
||||
@@ -116,7 +116,7 @@ public class BcSdfApiAdaptor implements SdfApiAdapter {
|
||||
byte[] encrypt = BCSM2Utils.encrypt(parameters, pucData);
|
||||
return Arrays.copyOfRange(encrypt, 1, encrypt.length);
|
||||
} catch (InvalidCipherTextException e) {
|
||||
throw new RuntimeException(e);
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user