Surefire Report

Summary

[Summary] [Package List] [Test Cases]


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

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.crypto 4 0 0 0 100% 0
net.ninthtest.crypto.helix 46 0 0 0 100% 0.261
net.ninthtest.crypto.provider.helix 223 0 0 0 100% 0.447
net.ninthtest.security.provider 10 0 0 0 100% 0.001
net.ninthtest.security 8 0 0 0 100% 0

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

net.ninthtest.crypto

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

net.ninthtest.crypto.helix

Class Tests Errors Failures Skipped Success Rate Time
HelixDecryptionTest 18 0 0 0 100% 0.19
HelixEncryptionTest 8 0 0 0 100% 0.011
HelixImplTest 16 0 0 0 100% 0.019
HelixRandomTest 4 0 0 0 100% 0.041

net.ninthtest.crypto.provider.helix

Class Tests Errors Failures Skipped Success Rate Time
HelixAlgorithmParametersTest 33 0 0 0 100% 0.019
HelixCipherTest 99 0 0 0 100% 0.378
HelixKeyGeneratorTest 14 0 0 0 100% 0.005
HelixKeySpecTest 14 0 0 0 100% 0.001
HelixMacTest 19 0 0 0 100% 0.021
HelixParameterSpecTest 13 0 0 0 100% 0
HelixSecretKeyFactoryTest 16 0 0 0 100% 0.011
HelixSecureRandomTest 15 0 0 0 100% 0.012

net.ninthtest.security.provider

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

net.ninthtest.security

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

Test Cases

[Summary] [Package List] [Test Cases]

HelixDecryptionTest

decryptAtOnceUsingFinish1 0.046
decryptAtOnceUsingFinish2 0.021
decryptAtOnceUsingFinish3 0.009
initRejectsMacShorterThan16Bytes 0.02
decryptAndVerifyByFeeding1 0.004
decryptAndVerifyByFeeding2 0.004
decryptAndVerifyByFeeding3 0.028
initAcceptsKeyAndNonce 0.002
decryptAndVerifyAtOnceUsingFinish1 0.003
decryptAndVerifyAtOnceUsingFinish2 0.025
decryptAndVerifyAtOnceUsingFinish3 0.005
initAcceptsKeyAndNonceAndMac 0
initAcceptsKeyAndNonceAndNullMac 0
initRejectsMacLongerThan16Bytes 0
decryptByFeeding1 0
decryptByFeeding2 0.001
decryptByFeeding3 0.001
macMismatchThrowsException 0.021

HelixEncryptionTest

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

HelixImplTest

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

HelixRandomTest

initNoArg 0.001
initWithSeed 0.001
nextBits 0.039
setSeed 0

MessageAuthenticationExceptionTest

initWithMessageAndByteArrays 0
initWithMessage 0
macByteArraysAreNotModifiable 0
initWithMessageAndThrowable 0

HelixAlgorithmParametersTest

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

HelixCipherTest

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

HelixKeyGeneratorTest

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

HelixKeySpecTest

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

HelixMacTest

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

HelixParameterSpecTest

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

HelixSecretKeyFactoryTest

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

HelixSecureRandomTest

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

MessagesTest

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

NinthTestProviderTest

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