PHP Class Jose\Algorithm\ContentEncryption\AESCBCHS

Inheritance: implements Jose\Algorithm\ContentEncryption\ContentEncryptionInterface
Mostrar archivo Open project: spomky-labs/jose

Public Methods

Method Description
decryptContent ( string $data, string $cek, string $iv, string $aad, string $encoded_protected_header, string $tag ) : string
encryptContent ( $data, $cek, $iv, $aad, $encoded_protected_header, &$tag )
getIVSize ( ) : integer

Protected Methods

Method Description
calculateAuthenticationTag ( $encrypted_data, $cek, $iv, $aad, string $encoded_header ) : string
getHashAlgorithm ( ) : string
isTagValid ( string $encrypted_data, string $cek, string $iv, string | null $aad, string $encoded_header, string $authentication_tag ) : boolean

Private Methods

Method Description
getMode ( string $k ) : string

Method Details

calculateAuthenticationTag() protected method

protected calculateAuthenticationTag ( $encrypted_data, $cek, $iv, $aad, string $encoded_header ) : string
$encrypted_data
$cek
$iv
$aad
$encoded_header string
return string

decryptContent() public method

public decryptContent ( string $data, string $cek, string $iv, string $aad, string $encoded_protected_header, string $tag ) : string
$data string
$cek string
$iv string
$aad string
$encoded_protected_header string
$tag string
return string

encryptContent() public method

public encryptContent ( $data, $cek, $iv, $aad, $encoded_protected_header, &$tag )

getHashAlgorithm() abstract protected method

abstract protected getHashAlgorithm ( ) : string
return string

getIVSize() public method

public getIVSize ( ) : integer
return integer

isTagValid() protected method

protected isTagValid ( string $encrypted_data, string $cek, string $iv, string | null $aad, string $encoded_header, string $authentication_tag ) : boolean
$encrypted_data string
$cek string
$iv string
$aad string | null
$encoded_header string
$authentication_tag string
return boolean