Jose\Algorithm\ContentEncryption\AESCBCHS::isTagValid PHP Method

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
    protected function isTagValid($encrypted_data, $cek, $iv, $aad, $encoded_header, $authentication_tag)
    {
        return $authentication_tag === $this->calculateAuthenticationTag($encrypted_data, $cek, $iv, $aad, $encoded_header);
    }