Quantcast
Channel: Thales Simulator Library
Viewing all 332 articles
Browse latest View live

New Post: CA command issue Pin Translation from TPK to ZPK

$
0
0
Hi Rakesh,


When I checked the error code "24" in the HSM manual it refers to "PIN IS FEWER THAN 4 OR MORE THAN 12 DIGITS IN LENGTH".

Can you send/show me the HSM settings?

New Post: CA command issue Pin Translation from TPK to ZPK

$
0
0
Hi, I have the same error, error Code 24 when doing the "CA" and "G0" Command..

New Post: CA command issue Pin Translation from TPK to ZPK

$
0
0
Hi Christ,

thank you for the response. please find the settings of the HSM below and let me know if any changes need to be made.

Online-AUTH>VR

Base release: 3.1a
Revision: 1110-0831
Build Number: 0008

Bootstrap Version: 2.5.7
Kernel Version: 3.8.3
ESS FPGA Version: 2.44.3
HSM Core API Version: 3.4.14
HSM Application Version: 3.4.14
HSM COMMs Version: 1.9.2
Application Checksum: FB90

Host Configuration: Async, Ethernet, SNA-SDLC 3274

Serial Number: A3453266271V Licence Issue No: 2
Performance: 220 TPS Build location: 01
Base Software: Version 3 Ship Counter: 1
Crypto: 3DES, RSA

Press "Enter" to view additional information...

HSM8-LIC001 V3 Base
HSM8-LIC002 RSA



Online-AUTH>QS

PIN length: 04
Encrypted PIN length: 05
Echo: OFF
Atalla ZMK variant support: ON
Transaction key support: RACAL
User storage key length: TRIPLE

Select clear PINs: YES
Enable ZMK translate command: YES
Enable X9.17 for import: YES
Enable X9.17 for export: YES
Solicitation batch size: 1024
Single-DES: ENABLED
Prevent Single-DES keys masquerading as double or triple-length keys: NO
ZMK length: DOUBLE
Decimalization tables: PLAINTEXT
Decimalization table checks: ENABLED
PIN encryption algorithm: A
Card/password authorisation (local): C

Press "Enter" to view additional security settings...

Authorised State required when Importing DES key under RSA key: NO
Minimum HMAC key length in bytes: 64
Enable PKCS#11 import and export for HMAC keys: YES
Enable ANSI X9.17 import and export for HMAC keys: YES
Enable ZEK encryption of all printable ASCII chars: YES
Enable ZEK encryption of "Base94" ASCII chars: YES
Enable ZEK encryption of "Base64" ASCII chars: YES
Enable ZEK encryption of "Hex-only" ASCII chars: YES

Restrict Key Check Values to 6 hex chars: NO
Enable multiple authorised activities: NO
Enable variable length PIN offset: YES
Enable weak PIN checking: NO
Enable Pin Block Format 34 as output format for PIN Translations to ZPK: YES

Default LMK identifier: 00
Management LMK identifier: 00
Use HSM clock for date/time validation: NO
Additional padding to disguise key length: NO
Key export and import in trusted format only: NO


Online-AUTH>V

Enter LMK id [0-4]: 0

New Post: CA command issue Pin Translation from TPK to ZPK

$
0
0
hi Rakesh,


I tried to parse the message which you send to the HSM using host command CA
and I came up with this. Please see below. Also, are the keys encrypted under Test LMK?
                                                00000000  - HEADER LENGTH
                                                            CA - COMMAND CODE
U4C3842A2AD9320BB7A0D746AF2FC58DF - TPK
U400BACC46F0F611B893A6CBA7E866D6D - ZPK
                                                             04 - MAXIMUM PIN LENGTH  --> could you set this to "12" 
                                 9BD69620014FA8B0 - PINBLOCK 
                                                             01 - SOURCE PIN BLOCK
                                                             01 - DESTINATION PINBLOCK
                                         923209999995 - ACCOUNT NUMBER

Regards,

Chard

New Post: CA command issue Pin Translation from TPK to ZPK

$
0
0
Hi Rakesh,

Any update on this? were you able to transact successfully?



Thanks,,

Chard

New Post: Looking for developers to take over

$
0
0
Manshtein, are you able share the GitHub repo URL?

Best regards!
~Gordon

New Comment on "list of supported host commands"

$
0
0
List of supported host commands are not supported in thales simulator ???

New Comment on "Connecting and sending commands to the simulator"

$
0
0
please we want more examples about sending commands from java client to thales simulator

New Comment on "Connecting and sending commands to the simulator"

$
0
0
how many commands are supported on thales simulator ??

New Post: process electronic payment terminal HSM BANK (ISSUER,ACQUIRER)

$
0
0
Hello
please can anybody here tell me ,the process between electronic payement terminal ,HSM,issuer bank and acquirer bank
with key management (PIN,PIN BLOCK,LMK,TMK,ZMK,ZPK,TPK ......

Image

New Post: Generate ZMK using Clear components

$
0
0
I need to "Generate ZMK using Clear components". Could you please let me know how to generate ZMK using clear components using software. Is HSM (hardware ) mandatory for this or it is possible using software as well? If yes how? Can I use Thales simulator (I believe this is software) in production up to 7000 transactions a day.

New Post: Thales communication of host command over socket

$
0
0
I am building a thales security implementation for Pin and PVV.

I have utilized there Thales core library for generating PVV and doing verification of pin via help of PVV
I am now trying same thing via socket connection where but not able to find anything inn there sample
My code is as following
string clearTPK = "D3DCC7EA9BCB755D254620B376B3D007";
string cryptTPK = "U8463435FC4B4DAA0C49025272C29B12C";
string cryptPVK = "UA8B1520E201412938388191885FFA50A";
string PAN = "5044070".PadRight(12, '0');

private void GeneratePinAndPVV()// generate pin and pvv, Save PVV in local storage 
{
    string clearPIN = new Random().Next(0, 9999).ToString("D4");

    txtGeneratedPin.Text = clearPIN;
    string res = null;
    string strGetPVV = (cryptPVK + ("0" + (clearPIN + (PAN.Substring(0, 12) + ("1" + ";")))));
    res = Res(strGetPVV, new GenerateVISAPVV_DG());
    if ((res.Substring(0, 2) != ErrorCodes.ER_00_NO_ERROR))
    {
        //Assert.Fail("Error duging PVV generation.");
    }
    txtBoxPVV.Text = res.Substring(2);
}



private void VerifyPinAgainstPVV()  verify pin via help of PVV
{
    string pinVerificationValue = txtBoxPVV.Text;
    string pinBlock = ThalesSim.Core.Cryptography.TripleDES.TripleDESEncrypt(new ThalesSim.Core.Cryptography.HexKey(clearTPK), (txtInputPin.Text + new string('F', 12)));
    lblResult.Text = Res((cryptTPK + (cryptPVK + (pinBlock + ("03" + (PAN.Substring(0, 12) + ("1" + pinVerificationValue)))))), new VerifyTerminalPINWithVISAAlgorithm_DC());
}


private string Res(string input, AHostCommand HC)
{
    string res = null;
    MessageResponse retMsg;
    Message msg = new Message(input);
    string trailingChars = "";
    if (true)
    {
        trailingChars = msg.GetTrailers();
    }
    HC.AcceptMessage(msg);

    if ((HC.XMLParseResult != ErrorCodes.ER_00_NO_ERROR))
    {
        retMsg = new MessageResponse();
        retMsg.AddElement(HC.XMLParseResult);
    }
    else
    {            
        retMsg = HC.ConstructResponse();
    }

    retMsg.AddElement(trailingChars);
    HC.Terminate();
    HC = null;
    res = retMsg.MessageData;
    return res;            
}
Viewing all 332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>