‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest:

Public Member Functions

 hmacThrowsExceptionIfEmptyAdditionalSecretProvided ()
 
 hmacReturnsHashOfProperLength ()
 
 hmacReturnsEqualHashesForEqualInput ()
 
 hmacReturnsNoEqualHashesForNonEqualInput ()
 
 generatedHmacCanBeValidatedAgain ()
 
 generatedHmacValidationFailsIfHashIsInvalid ()
 
 appendHmacAppendsHmacToGivenString ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ()
 
 validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ()
 
 validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ()
 
 validateAndStripHmacReturnsTheStringWithoutHmac ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

HashService $subject
 

Detailed Description

Definition at line 25 of file HashServiceTest.php.

Member Function Documentation

◆ appendHmacAppendsHmacToGivenString()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::appendHmacAppendsHmacToGivenString ( )

Definition at line 89 of file HashServiceTest.php.

◆ generatedHmacCanBeValidatedAgain()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::generatedHmacCanBeValidatedAgain ( )

Definition at line 71 of file HashServiceTest.php.

◆ generatedHmacValidationFailsIfHashIsInvalid()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::generatedHmacValidationFailsIfHashIsInvalid ( )

Definition at line 80 of file HashServiceTest.php.

◆ hmacReturnsEqualHashesForEqualInput()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::hmacReturnsEqualHashesForEqualInput ( )

Definition at line 53 of file HashServiceTest.php.

◆ hmacReturnsHashOfProperLength()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::hmacReturnsHashOfProperLength ( )

Definition at line 46 of file HashServiceTest.php.

◆ hmacReturnsNoEqualHashesForNonEqualInput()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::hmacReturnsNoEqualHashesForNonEqualInput ( )

Definition at line 62 of file HashServiceTest.php.

◆ hmacThrowsExceptionIfEmptyAdditionalSecretProvided()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::hmacThrowsExceptionIfEmptyAdditionalSecretProvided ( )

Definition at line 37 of file HashServiceTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::setUp ( )
protected

Definition at line 29 of file HashServiceTest.php.

References $GLOBALS.

◆ validateAndStripHmacReturnsTheStringWithoutHmac()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::validateAndStripHmacReturnsTheStringWithoutHmac ( )

Definition at line 125 of file HashServiceTest.php.

References $GLOBALS.

◆ validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::validateAndStripHmacThrowsExceptionIfGivenStringHasNoHashAppended ( )

Definition at line 107 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::validateAndStripHmacThrowsExceptionIfGivenStringIsTooShort ( )

Definition at line 98 of file HashServiceTest.php.

◆ validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid()

TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::validateAndStripHmacThrowsExceptionIfTheAppendedHashIsInvalid ( )

Definition at line 116 of file HashServiceTest.php.

Member Data Documentation

◆ $subject

HashService TYPO3\CMS\Core\Tests\Unit\Crypto\HashServiceTest::$subject
protected

Definition at line 27 of file HashServiceTest.php.