cryptix.test

Class TestUnixCrypt


public class TestUnixCrypt
extends BaseTest

This class tests the cryptix.tools.UnixCrypt class (it may also fail if the DES implementation is incorrect).

Copyright © 1997, 1998 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1 $

Author:
David Hopwood

Field Summary

Fields inherited from class cryptix.util.test.BaseTest

out, status

Method Summary

protected void
engineTest()
Test that is run by distribution to make sure everything is OK!

This C test program will confirm (note that some systems don't implement straight crypt(3)).

static void
main(String[] args)

Methods inherited from class cryptix.util.test.BaseTest

commandline, commandline, describeOptions, describeUsage, engineTest, error, error, error, fail, getErrors, getExpectedPasses, getFailures, getName, getPasses, getSkipped, init, isGuiEnabled, isOverallPass, isVerbose, parseOption, parseOptions, pass, passIf, report, setExpectedPasses, setGuiEnabled, setName, setOutput, setVerbose, skip, test, waitForExit

Method Details

engineTest

protected void engineTest()
            throws Exception
Test that is run by distribution to make sure everything is OK!

This C test program will confirm (note that some systems don't implement straight crypt(3)).

    #include 
    main()
    {
        const char *key = "CryptixRulez";
        const char salt[] = {'o','k'};
        printf("crypt(%s, %s) = %s\n",
               key, salt, crypt(key, salt));
    }
 
Overrides:
engineTest in interface BaseTest

main

public static void main(String[] args)