title: Spomkylabs Jose PHP
body: <p>I need to decrypt my cipherText using the content encryption key + IV and validate it against the AAD and tag using A128CBC-HS256. I have found this <a href="https://github.com/Spomky-Labs/jose/blob/master/src/Algorithm/ContentEncryption/AESCBCHS.php" rel="nofollow noreferrer">library</a> doing this. But, I do i use it? I have searched for other jwe libraries, but they only decrypt the ciphertext without validating with the aad and tag. </p>
  
  <p>I have tried implementing the library but i've encountered errors and the documentation isn't helpful for novices like me.</p>
  
  <p>I have also tried php's openssl_decrypt, but it is only for GCM and CCM, not CBC. </p>