Implemented decryption based on shared secret