Uranium
Application Framework
UM.Trust.TrustBasics Class Reference

Public Member Functions

def getHashAlgorithm (cls)
 
def getCentralStorageFilename (cls)
 
def getSignaturesLocalFilename (cls)
 
def getRootSignatureCategory (cls)
 
def getRootSignedManifestKey (cls)
 
def getSignaturePathForFile
 
def getRootSignatureEntry (cls)
 
def getFilePathInfo
 
def getFileHash
 
def getSelfSignHash
 
def getHashSignature
 
def getFileSignature
 
def removeCached
 

Static Public Member Functions

def defaultViolationHandler
 
def generateNewKeyPair ()
 
def loadPrivateKey
 
def saveKeyPair
 
def isPathInLocation
 

Detailed Description

Anything shared between the main code and the (keygen/signing) scripts which does not need state.

See 'Trust' (below) and the 'createkeypair.py', 'signfile.py' and 'signfolder.py' scripts in the 'scripts' folder.

Member Function Documentation

def UM.Trust.TrustBasics.generateNewKeyPair (   Tuple,
  RSAPrivateKeyWithSerialization,
  RSAPublicKey 
)
static
Create a new private-public key-pair.

:return: A tuple of private-key/public key.
def UM.Trust.TrustBasics.getHashAlgorithm (   cls)
To ensure the same hash-algorithm is used by every part of this code.

:return: The hash-algorithm used for the entire 'suite'.
def UM.Trust.TrustBasics.getRootSignatureCategory (   cls,
  str 
)
'Signed folder' scenario: In anticipation of other keys, put the 'master' signature into this category.

:return: The json 'name' for the main signatures category.
def UM.Trust.TrustBasics.getRootSignatureEntry (   cls,
  str 
)
'Single signed file' scenario: In anticipation of other keys, put the 'master' signature into this entry.

:return: The json 'name' for the main signature.
def UM.Trust.TrustBasics.getRootSignedManifestKey (   cls,
  str 
)
'Signed folder' scenario: This is the (json-)key for the hash that (self-)signs the signing file.

:return: The json 'name' for the key that contains the signature that signs all others' in the file.
def UM.Trust.TrustBasics.getSignaturesLocalFilename (   cls,
  str 
)
'Signed folder' scenario: Get the filename the signature file in a folder has.

:return: The filename of the signatures file (not the path).

The documentation for this class was generated from the following file: