Intel

Developer Zone

SEMonotonicCounter

com.intel.util

Class SEMonotonicCounter

  • java.lang.Object
    • com.intel.util.SEMonotonicCounter


  • public abstract class SEMonotonicCounter
    extends java.lang.Object
    This class provides an interface for applets to enable high update frequency flash files and query the physical flash type used
    • Field Detail

      • SE_MONOTONIC_COUNTER_TYPE_RPMC

        public static final byte SE_MONOTONIC_COUNTER_TYPE_RPMC
        SE monotonic counter type is RPMC
        See Also:
        Constant Field Values
      • SE_MONOTONIC_COUNTER_TYPE_RPMB

        public static final byte SE_MONOTONIC_COUNTER_TYPE_RPMB
        SE monotonic counter type is RPMB
        See Also:
        Constant Field Values
      • SE_MONOTONIC_COUNTER_TYPE_UNKNOWN

        public static final byte SE_MONOTONIC_COUNTER_TYPE_UNKNOWN
        SE monotonic counter type is neither RPMC or RPMB
        See Also:
        Constant Field Values
      • SE_PAIRING_COUNTER_MAX_VALUE

        public static final byte SE_PAIRING_COUNTER_MAX_VALUE
        Maximum value for SE pairing counter
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        public abstract byte getType()
                              throws UtilException
        Returns the monontonic counter type , one of SE_MONOTONIC_COUNTER_TYPE_XYZ
        Returns:
        Returns the monontonic counter type , one of SE_MONOTONIC_COUNTER_TYPE_XYZ
        Throws:
        UtilException - if an internal error occurred
      • enableHighUpdateFrequencyFlash

        public static final void enableHighUpdateFrequencyFlash()
        Enables writing data to flash file name: 1 using writeFlashData() while bypassing the DAL flash wear-out mechanism. NOTE: the write operations are still subject to the Storage stack flash wear-out restrictions. This disabling of the DAL flash wear-out mechanism is volatile, meaning this state is stored in-memory and is not persistent across any state changes that reset the DAL FW memory. It is persistent across different sessions closing a session doesn't change the state.
        Throws:
        UtilException - in case of an internal error.
      • disableHighUpdateFrequencyFlash

        public static final void disableHighUpdateFrequencyFlash()
        Disables writing data to flash file name: 1 while bypassing the DAL flash wear-out mechanism.
        Throws:
        UtilException - in case of an internal error.
      • getInstance

        public static final SEMonotonicCounter getInstance()
        Gets the singleton instance of the SEMonotonicCounter class
        Returns:
        the single instance of the SEMonotonicCounter class. If called more than once the same instance is returned