Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
291 0 0 0 100% 0.734

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
net.ninthtest.security 8 0 0 0 100% 0.002
net.ninthtest.crypto 4 0 0 0 100% 0
net.ninthtest.security.provider 10 0 0 0 100% 0.001
net.ninthtest.crypto.provider.helix 223 0 0 0 100% 0.474
net.ninthtest.crypto.helix 46 0 0 0 100% 0.257

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

net.ninthtest.security

Class Tests Errors Failures Skipped Success Rate Time
MessagesTest 8 0 0 0 100% 0.002

net.ninthtest.crypto

Class Tests Errors Failures Skipped Success Rate Time
MessageAuthenticationExceptionTest 4 0 0 0 100% 0

net.ninthtest.security.provider

Class Tests Errors Failures Skipped Success Rate Time
NinthTestProviderTest 10 0 0 0 100% 0.001

net.ninthtest.crypto.provider.helix

Class Tests Errors Failures Skipped Success Rate Time
HelixAlgorithmParametersTest 33 0 0 0 100% 0.026
HelixCipherTest 99 0 0 0 100% 0.386
HelixKeyGeneratorTest 14 0 0 0 100% 0.009
HelixKeySpecTest 14 0 0 0 100% 0.003
HelixMacTest 19 0 0 0 100% 0.033
HelixParameterSpecTest 13 0 0 0 100% 0.002
HelixSecretKeyFactoryTest 16 0 0 0 100% 0.004
HelixSecureRandomTest 15 0 0 0 100% 0.011

net.ninthtest.crypto.helix

Class Tests Errors Failures Skipped Success Rate Time
HelixDecryptionTest 18 0 0 0 100% 0.064
HelixEncryptionTest 8 0 0 0 100% 0.007
HelixImplTest 16 0 0 0 100% 0.011
HelixRandomTest 4 0 0 0 100% 0.175

Test Cases

[Summary] [Package List] [Test Cases]

HelixDecryptionTest

decryptAtOnceUsingFinish1 0.017
decryptAtOnceUsingFinish2 0.002
decryptAtOnceUsingFinish3 0.001
initRejectsMacShorterThan16Bytes 0.021
decryptAndVerifyByFeeding1 0.002
decryptAndVerifyByFeeding2 0.001
decryptAndVerifyByFeeding3 0.005
initAcceptsKeyAndNonce 0.001
decryptAndVerifyAtOnceUsingFinish1 0
decryptAndVerifyAtOnceUsingFinish2 0.005
decryptAndVerifyAtOnceUsingFinish3 0.001
initAcceptsKeyAndNonceAndMac 0.001
initAcceptsKeyAndNonceAndNullMac 0.001
initRejectsMacLongerThan16Bytes 0.004
decryptByFeeding1 0.001
decryptByFeeding2 0.001
decryptByFeeding3 0
macMismatchThrowsException 0

HelixEncryptionTest

getGeneratedMacFailsBeforeEncryptOperationHasCompleted 0.002
encryptByFeeding1 0.001
encryptByFeeding2 0.001
encryptByFeeding3 0.001
initAcceptsKeyAndNonce 0.001
encryptAtOnceUsingFinish1 0.001
encryptAtOnceUsingFinish2 0
encryptAtOnceUsingFinish3 0

HelixImplTest

finishRejectsNullArgument 0.002
initAcceptsKeyShorterThan32Bytes 0.001
initRejectsNonceLongerThan16Bytes 0
initRejectsNullNonce 0
finishFailsIfPrimitiveHasAlreadyCompleted 0.001
feedRejectsNullArgument 0.001
finishProcessesAllRemainingBytes 0.001
initRejectsNonceShorterThan16Bytes 0.001
initProducesExpectedWorkingKey1 0.001
initProducesExpectedWorkingKey2 0
initProducesExpectedWorkingKey3 0.001
initRejectsKeyLongerThan32Bytes 0
initRejectsNullKey 0
feedProcessesOnlyWholeWordsOfInput 0
feedFailsIfPrimitiveHasAlreadyCompleted 0.001
initAcceptsKeyOfExactly32Bytes 0.001

HelixRandomTest

initNoArg 0.002
initWithSeed 0
nextBits 0.172
setSeed 0.001

MessageAuthenticationExceptionTest

initWithMessageAndByteArrays 0
initWithMessage 0
macByteArraysAreNotModifiable 0
initWithMessageAndThrowable 0

HelixAlgorithmParametersTest

engineInitRejectsNonHelixSpec 0.003
engineInitAcceptsASN1WithDERFormat 0
engineInitRejectsSequenceWithBadMacLength 0.012
engineInitAcceptsASN1NonceAndMac 0
engineToStringWithNonceOnly 0.001
engineGetEncodedWithASN1Format 0
engineGetEncodedWithUnrecognizedFormat 0
engineInitAcceptsASN1WithASN1Format 0.001
engineGetEncodedForNonceOnly 0
engineInitRejectsByteArrayWithBadASN1Type 0
engineToStringWithNullNonceAndMac 0.001
engineInitAcceptsSpecWithNonceOnly 0
engineInitRejectsNullSpec 0
engineGetParameterSpecForNonceAndMac 0.001
engineInitRejectsSequenceWithBadNonceLength 0
engineInitAcceptsASN1NonceOnly 0.001
engineGetEncodedForNonceAndMac 0.001
testEngineGetEncoded_StringDer 0
engineInitRejectsNonASN1WithUnrecognizedFormat 0
engineInitRejectsNullByteArray 0.001
engineToStringWithNonceAndMac 0.001
engineInitRejectsSequenceWithBadLength 0.001
engineInitRejectsByteArrayWithBadLength 0.001
engineGetEncodedWithNullFormat 0
engineGetParameterSpecRejectsNonHelixClass 0
engineInitAcceptsASN1WithNullFormat 0
engineInitRejectsSequenceWithBadMacType 0
engineInitAcceptsSpecWithNonceAndMac 0
engineInitRejectsSequenceWithBadNonceType 0.001
engineInitRejectsByteArrayWithBadNonceLength 0
engineInitAcceptsASN1WithUnrecognizedFormat 0
engineGetParameterSpecRejectsNullClass 0
engineGetParameterSpecForNonceOnly 0

HelixCipherTest

engineUpdateInputLengthZero 0.302
engineDoFinalOutputOffsetLTZero 0.001
engineInitForWrapWithParamsRejectsNonNullMac 0.001
testEngineSetMode_String 0
engineDoFinalOutputOffsetGEByteArrayLength 0.001
engineInitForEncryptWithSpecRejectsNonNullMac 0
engineDoFinalRejectsNullOutputByteArray 0.001
engineInitWithParamsRejectsNonNinthTestParams 0.001
engineUnwrapRejectsNullAlgorithm 0.001
engineDoFinalRejectsNullInputByteArray 0.001
engineGetKeySizeRejectsNonSecretKey 0.001
engineInitWithParamsRejectsNullKey 0.001
engineUpdateWithBadInputOffsetAndLength 0
engineUpdateRejectsNullOutputByteArray 0
engineUpdateNotEnoughInputReturnsZero 0.001
engineDoFinalInputLengthZeroNoBufferedBytes 0.002
engineInitForUnwrapWithSpecAcceptsNullMac 0.001
engineUpdateExpectedBytes 0
engineUpdateInputOffsetGEByteArrayLength 0
engineDoFinalUpdatesParamsWithGeneratedMac 0.001
engineGetOutputSizeBeforeEngineInit 0
engineDoFinalWithBadInputOffsetAndLength 0.001
engineInitForDecryptWithSpecRejectsMacWithBadLength 0.001
engineInitForUnwrapWithParamsAcceptsNullMac 0
engineUnwrapPublicKey 0.001
engineUpdateEncryption2 0.001
engineUpdateEncryption3 0.001
engineInitRejectsNullKey 0
engineInitWithParamsRejectsNullParams 0.003
engineInitWithSpecAcceptsHelixSpec 0
engineDoFinalProcessedTooLargeForOutput 0
engineUpdateRejectsNullInputByteArray 0
engineWrapPublicKey 0.001
engineInitForDecryptWithSpecAcceptsNullMac 0.001
engineUnwrapFailsMacVerification 0
engineGetBlockSizeReturnsZero 0
engineInitForDecryptWithSpecAcceptsNonNullMac 0
engineInitWithSpecRejectsNonHelixSpec 0.001
engineUpdateProcessedTooLargeForOutput 0.004
engineGetOutputSizeLessThanZero 0.001
engineUnwrapSkipsMacVerification 0.003
engineInitForDecryptWithParamsAcceptsNullMac 0.001
engineGetParametersAfterEngineInit 0
testEngineSetPadding_String 0
engineDoFinalInputOffsetGEByteArrayLength 0.001
engineUpdateInputLengthLTZero 0.001
engineInitWithParamsRejectsNonHelixParams 0.002
engineDoFinalInputLengthLTZero 0.001
engineInitForWrapWithSpecAcceptsNullMac 0
engineUpdateOutputOffsetGEByteArrayLength 0.001
engineInitWithSpecRejectsNullKey 0.002
engineDoFinalFailsMacVerification 0.001
engineInitForUnwrapWithSpecAcceptsNonNullMac 0
engineGetIVBeforeEngineInit 0
engineUnwrapPrivateKey 0.005
engineGetParametersBeforeEngineInit 0
engineInitRejectsNonSecretKey 0
engineDoFinalEncryption2 0
engineDoFinalEncryption3 0.001
engineInitForDecryptWithParamsAcceptsNonNullMac 0.001
engineInitForWrapWithParamsAcceptsNullMac 0
engineGetKeySizeRejectsNullKey 0
engineDoFinalSkipsMacVerification 0
engineDoFinalInputLengthZeroReturnsZero 0
engineInitAcceptsExplicitSecureRandom 0.016
engineUnwrapRejectsNullWrappedKey 0
engineInitForUnwrapWithParamsAcceptsNonNullMac 0
engineGetKeySizeReportsCorrectSize 0
engineGetOutputSizeWithBufferedBytes 0.001
engineUnwrapRejectsEmptyAlgorithm 0
engineInitWithSpecRejectsNullSpec 0.001
engineUpdateInputLengthZeroReturnsZero 0.001
engineDoFinalInputLengthZeroWithBufferedBytes 0.001
engineGetKeySizeRejectsNonHelixKey 0
engineInitForEncryptWithParamsRejectsNonNullMac 0.001
engineGetParametersAfterEncryption 0
engineInitWithSpecRejectsNonHelixKey 0.001
engineInitWithParamsRejectsNonSecretKey 0
engineDoFinalExpectedBytes 0
engineUnwrapSecretKey 0
engineInitForDecryptWithoutNonceFails 0.001
engineGetOutputSizeAfterEngineInit 0
engineInitWithParamsRejectsNonHelixKey 0
engineGetOutputSizeAfterCompletedOperation 0.001
engineUpdateNotEnoughForInputWord 0.002
engineWrapPrivateKey 0.001
engineInitForUnwrapWithSpecRejectsMacWithBadLength 0.001
engineWrapSecretKey 0.001
engineGetIVAfterEngineInit 0
engineUpdateOutputOffsetLTZero 0
engineWrapRejectsNullKey 0
engineUpdateInputOffsetLTZero 0.001
engineInitForWrapWithSpecRejectsNonNullMac 0
engineInitForUnwrapWithoutNonceFails 0
engineInitAcceptsNullSecureRandom 0.002
engineDoFinalNotEnoughInputReturnsZero 0
engineDoFinalInputOffsetLTZero 0.001
engineInitRejectsNonHelixKey 0
engineInitWithSpecRejectsNonSecretKey 0.001

HelixKeyGeneratorTest

engineGenerateKeyForHelixAlgorithm 0.001
engineInitAcceptsKeySizeAndDefaultSecureRandom 0
engineInitAcceptsNonDefaultSecureRandom 0.001
engineGenerateKeyInRAWFormat 0
engineGenerateKey128Bits 0.001
engineGenerateKey192Bits 0.002
engineGenerateKeyNonStandardSizes 0.001
engineInitRejectsKeySizeGT256 0.001
engineGenerateKey256Bits 0
engineInitAcceptsDefaultSecureRandom 0
engineInitRejectsAlgorithmParameterSpec 0.001
engineGenerateKeyDefault256Bits 0
engineInitAcceptsKeySizeAndNonDefaultSecureRandom 0
engineInitRejectsKeySizeNonMultipleOfEight 0.001

HelixKeySpecTest

initRejectsZeroLengthByteArray 0.002
initOffsetExceedsLength 0
initOffsetEqualsLength 0
getKeyCannotBeModified 0
initByteArrayWithOffsetCannotBeModified 0
initOffsetLTZero 0
initByteArrayCannotBeModified 0
initOnlyUsesFirst32Bytes 0
initRejectsNullByteArray 0
initAcceptsByteArrayEQ32 0.001
initAcceptsByteArrayGT32 0
initAcceptsByteArrayLT32 0
initUsesLessThan32Bytes 0
initOnlyUses32Bytes 0

HelixMacTest

engineUpdateOffsetEQByteArrayLength 0.003
reusableAfterReset 0.001
engineUpdateOffsetLTZero 0
engineInitRejectsNonHelixSpec 0.001
engineUpdateOffsetExceedsByteArrayLength 0
engineInitRejectsNullSpec 0
engineInitRejectsNullKey 0
engineUpdateRangeOfBytes 0
engineUpdateRejectsNullByteArray 0.001
engineUpdateSingleByte 0
engineUpdateLengthExceedsAvailable 0
testEngineGetMacLength 0
engineInitRejectsNonSecretKey 0.002
reusableAfterDoFinal 0
engineUpdateLengthLTZero 0
engineDoFinal2 0.02
engineDoFinal3 0
engineInitAcceptsHelixKeyAndSpec 0
engineInitRejectsNonHelixKey 0.005

HelixParameterSpecTest

initCopiesNonceBytes 0
initRejectsNullNonce 0.001
getNonceCopiesBytes 0
initRejectsNonceLT16Bytes 0
initAccepts16ByteNonce 0
initRejectsNonceGT16Bytes 0
initRejectsNullMac 0
initRejectsMacLT16Bytes 0
initRejectsMacGT16Bytes 0
initAccepts16ByteMac 0
initCopiesMacBytes 0.001
getMacCopiesBytes 0
getMacReturnsNull 0

HelixSecretKeyFactoryTest

engineGenerateSecretExpectedKeyBytes 0.001
engineGenerateSecretRejectsNullKeySpec 0
engineGenerateSecretRAWFormat 0.001
engineGetKeySpecRejectsNullClass 0
engineGenerateSecretHelixKey 0
engineTranslateKeyLT32Bytes 0.001
engineGenerateSecretAcceptsHelixKeySpec 0
engineTranslateKeyGT32Bytes 0
engineGetKeySpecRejectsNullSecretKey 0
engineGetKeySpecExpectedHelixObject 0
engineGenerateSecretRejectsNonHelixKeySpec 0
engineGetKeySpecRejectsNonRAWSecretKey 0
engineTranslateKeyRejectsNullSecretKey 0
engineGetKeySpecRejectsNonHelixSecretKey 0
engineGetKeySpecRejectsNonHelixClass 0
engineGetKeySpecAcceptsHelixClass 0.001

HelixSecureRandomTest

engineGenerateSeedRejectsNegative 0.001
engineNextBytesFulfillUsingBuffer 0
engineNextBytesRejectsNullArray 0
engineSetSeedReinitializesHelixPrimitive 0.001
engineGenerateSeedPositiveNonZeroSize 0.001
engineSetSeedAcceptsSmallArray 0.001
engineNextBytesBuffersExtra 0.005
engineNextBytesNoOpIfEmptyArray 0
engineNextBytesConsumesBuffer 0.001
engineSetSeedAcceptsLargeArray 0
engineSetSeedRejectsNullSeed 0
engineNextBytesInitializesSelf 0
engineNextBytesAlreadyInitialized 0
engineSetSeedAcceptsEmptyArray 0
engineGenerateSeedNoOpIfZeroSize 0.001

MessagesTest

getMessageFailsOnEmptyKey 0.001
getMessageWithSubsReturnsKeyWhenKeyNotFound 0
getMessageWithSubsReturnsMessageWhenKeyFound 0
getMessageWithSubsFailsOnNullKey 0
getMessageWithSubsFailsOnEmptyKey 0.001
getMessageReturnsMessageWhenKeyFound 0
getMessageReturnsKeyWhenKeyNotFound 0
getMessageFailsOnNullKey 0

NinthTestProviderTest

getServiceReturnsHelixSecureRandom 0
getServiceReturnsHelixSecretKeyFactory 0
testGetServices 0
getNameReturnsName 0
getServiceReturnsHelixMac 0.001
getServiceReturnsHelixCipher 0
getInfoReturnsDescription 0
getVersionReturnsVersion 0
getServiceReturnsHelixAlgorithmParameters 0
getServiceReturnsHelixKeyGenerator 0