$ ENCRYPT /AUTHENTICATE NEWFILE HAMLET/CONFIRM
Associates a MAC with the file NEWFILE using the key HAMLET.
This command also displays a confirmation request before each
authentication.
$ ENCRYPT/AUTHENTICATE/UPDATE *.* MYKEY
%ENCRYPT-NEWDB, new authentication code database has been created
%ENCRYPT-NEWSECDB, new authentication security settings database has been created
%ENCRYPT-I-SUMMARY1, Summary: Files successfully authenticated: 0
%ENCRYPT-I-SUMMARY2, Files failing authentication: 0
%ENCRYPT-I-SUMMARY3, Files not in database: 73
%ENCRYPT-I-SECSUMM1, Summary: Security settings authenticated: 0
%ENCRYPT-I-SECSUMM2, Security settings failing authentication: 0
%ENCRYPT-I-SECSUMM3, Security settings not in database: 73
This example creates a MAC for each file in the current
directory using the key named MYKEY, storing them in the two
databases: SYS$LOGIN:ENCRYPT$MAC.DAT and ENCRYPT$SEC_MAC.DAT.
$ ENCRYPT /AUTHENTICATE *.* MYKEY
%ENCRYPT-I-NOUPDATE, database will not be updated with new authentication codes
%ENCRYPT-I-SUMMARY1, Summary: Files successfully authenticated: 73
%ENCRYPT-I-SUMMARY2, Files failing authentication: 0
%ENCRYPT-I-SUMMARY3, Files not in database: 0
%ENCRYPT-I-SECSUMM1, Summary: Security settings authenticated: 73
%ENCRYPT-I-SECSUMM2, Security settings failing authentication: 0
%ENCRYPT-I-SECSUMM3, Security settings not in database: 0
This example authenticates the same files as in Example 3
by creating a new MAC and comparing that with those in each
database, testing file data integrity and security attributes
as indicated in the summary.
$ ENCRYPT/CREATE_KEY/AES MY_AES_KEY32 -
_$ "Sample Key length greater than > 32"
$ ENCRYPT/AUTHENTICATE FILE.TXT MY_AES_KEY32 /AES=AES256 /UPDATE
%ENCRYPT-I-NEWDB, new authentication code database has been created
%ENCRYPT-I-NEWSECDB, new authentication security settings database has been created
%ENCRYPT-I-SUMMARY1, Summary: Files successfully authenticated: 0
%ENCRYPT-I-SUMMARY2, Files failing authentication: 0
%ENCRYPT-I-SUMMARY3, Files not in database: 1
%ENCRYPT-I-SECSUMM1, Summary: Security settings authenticated: 0
%ENCRYPT-I-SECSUMM2, Security settings failing authentication: 0
%ENCRYPT-I-SECSUMM3, Security settings not in database: 1
This example creates new 256 bits AES key. This new key is used with
the /AES qualifier to create new MAC database and update it with
a 256 bits MAC value of FILE.TXT file.