Oparating system

Smart Card Operating System Development

Smart card chip operating system (COS) has traditionally been designed with no specific application in mind. However, some standard functions are always required: card authentication, terminal authentication, card-holder authentication, read and update access, secured read and updated access, etc., which are needed for every application. This type of COS can be grouped under the category called general-purpose COS. When used as a banking card, monetary value is stored in a file (purse file) protected by the update and read access. Secret keys inside the POS terminal control the read and update access, card & terminal authentication. The entire system’s security relies on the fact that the terminal is trusted.

Smartcard Operating System | TrustSEC

In a general-purpose COS, the purse file is debited by letting the POS read the value, debit the amount to be debited, and update it back into the file. For security reasons, access to the purse files must be ciphered with a session key. From the security point of view, the rule of need-of-know basis must apply. The POS terminal is only required to debit the purse file. However, a general-purpose COS will allow update access by the terminal. Thus, inherently, the airport has both debit and credit capability.


Although the terminal is trusted only to perform the debit function, the security design requirements must be very high. If the keys are compromised in a POS terminal, someone may perform the credit function based on the secrets inside a POS terminal. Besides having read and updated access control for data files, a payment COS must also have credit and debit access for purse files. Thus, a merchant POS terminal is only required to debit a banking card and only needs to know the debit key. Even if the secret in the POS terminal is compromised, no one can create money fraudulently. This is a major difference between a general-purpose COS and a payment COS.

There may be a requirement to cater for substitute debit in a banking application when goods are rejected (substitute with zero debit amount) or a data entry error by the cashier (substitute debit by another value). A general-purpose COS will use reading and update access to the purse file to implement the substitute debit function, thus having the same security problem. A good payment chip operating system should be able to support this function. It must be noted that a substitute debit is not a credit function and must not be implemented like the credit function, i.e., there is no need to prove the credit key’s knowledge to perform this function.

Rather, it should rely on the POS terminal’s capability to prove that it is the terminal that performs the previous transaction to perform a substitute debit function. Although the substitute debit function may be a handy feature, the smart card can only ensure a secured mechanism for achieving the substitute debit function. The POS terminal and the back-end host must also complete complementary roles to provide this feature is implemented securely.

Depending on the weighting of risk and flexibility needed by the issuer, the issuer should be able to select if the substitute debit function is to be disabled, to allow only during the current session with the card before the card is pulled out, or can be done any time before another transaction is performed. It must be noted that not all chip operating systems that claim to be delegated for payment applications can support this function.

By the law of physics, if the updating data into a medium is interrupted, the data is corrupted, regardless of whether it is a tape, a disk, or a smart card. A general-purpose COS and even some payment COS can only detect that the purse file is corrupted. However, a cleverly designed amount COS can change a purse file via a dual backup incremental changes of the current and previous balance to ensure that even if the card is pulled out during the update, the balance is not corrupted.

In a banking application, the card must prove to the terminal that the amount is indeed debited from the card via a Card Debt Certificate (CDC), and a particular terminal does it.


CDC = f(debit amount, terminal certificate, debit key)

The terminal certificate should be unique to each terminal and for every transaction. A general-purpose COS and even some payment delegated COS cannot do this.

The POS terminal must verify the CDC to ensure that the card’s debit command is not intercepted from the card and a fake CDC returned to trick the terminal. However, requiring the POS terminal to verify the CDC implies that there may be a potential security problem if the secrets in the airport are exposed. To prevent this potential security problem, the card must have a Card Signature Certificate (CSC) to sign the debit transaction with a key not found in the POS terminal. A general-purpose COS and even some payment delegated COS cannot do this.

The credit function is the most sensitive operation in the whole system. There are claims that a single DES operation can be broken easily if one has lots of money ( 1 million $), excellent knowledge of cryptography, a good hardware and semi-conductor ASIC designer to design an application-specific IC to perform a DES computation in one clock cycle and have many of such chip in a parallel process. Potentially, a double DES may be broken in the future. Thus, a triple DES is recognized to be safe even in the future by the experts. Therefore, the credit function must require a double or triple DES computation.


It is not the intention of this paper to make a product comparison but to look at the banking card system’s highest security requirements – what they are, why it is necessary, and what is the possible implication if it is not done in the way specified. These should be the evaluation criteria for any smart card command to perform the function. There are many levels of security :

Also, not all smart cards have the same security. Even if the best security smart card is chosen, the system must also be designed to exercise all smart cards’ security features. There must not be any weak points in the system, of which the smart card is only a tiny part, but the whole design key management and security architecture rely on.

About author

I work for WideInfo and I love writing on my blog every day with huge new information to help my readers. Fashion is my hobby and eating food is my life. Social Media is my blood to connect my family and friends.
    Related posts
    Oparating system

    Operating System Internet Security

    Oparating system

    What Will Be the Effect of the Google Chrome Operating System?

    Oparating system

    Why Chrome OS is the Future of Operating Systems

    Oparating system

    How to Get the Best Solar Inverter Price in 2022

    Sign up for our newsletter and stay informed !