Package tss.tpm

Class TPM2_GetRandom_REQUEST

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2_GetRandom_REQUEST
    extends ReqStructure
    This command returns the next bytesRequested octets from the random number generator (RNG).
    • Field Detail

      • bytesRequested

        public int bytesRequested
        Number of octets to return
    • Constructor Detail

      • TPM2_GetRandom_REQUEST

        public TPM2_GetRandom_REQUEST()
      • TPM2_GetRandom_REQUEST

        public TPM2_GetRandom_REQUEST​(int _bytesRequested)
        Parameters:
        _bytesRequested - Number of octets to return
    • Method Detail

      • toTpm

        public byte[] toTpm()
        Deprecated.
        Returns:
        Wire (marshaled) representation of this object
      • fromBytes

        public static TPM2_GetRandom_REQUEST fromBytes​(byte[] byteBuf)
        Static marshaling helper
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2_GetRandom_REQUEST fromTpm​(byte[] byteBuf)
        Deprecated.
        Use fromBytes(byte[]) instead
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2_GetRandom_REQUEST fromTpm​(TpmBuffer buf)
        Static marshaling helper
        Parameters:
        buf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • toStringInternal

        public void toStringInternal​(TpmStructurePrinter _p,
                                     int d)
        Description copied from class: TpmStructure
        Serialize this object to the structure printer
        Overrides:
        toStringInternal in class TpmStructure
        Parameters:
        _p - The structure accumulator
        d - The data to serialize