Index

Package: Content_Signing

Description

package Content_Signing is

Constants & Global variables

File_Error

File_Error : exception;
raised by Make_Dictionary when a file operation fails

Subprograms & Entries

Allow_Unsigned_Content

procedure Allow_Unsigned_Content
( enabled: Boolean );
Enable/disable validation of files that don't have known signatures.

Is_Signed

function Is_Signed
( filename: String ) return Boolean;
Returns True if a signature for 'filename' is known.

Is_Valid

function Is_Valid
( filename: String;
data: Stream_Element_Array ) return Boolean;
Returns True if 'filename' has a known signature and it matches the signature of 'data'.

Make_Dictionary

procedure Make_Dictionary
( filename: String;
inFiles: String_List;
authority: String;
progress: access procedure( filename : String;
completion: Natural ) := null );
Calculates the signatures of all files in the 'inFiles' list and writes a signed dictionary to 'filename'. If the dictionary file already exists, it will be overwritten. An exception will be raised on error and the partial dictionary file will be cleaned up.