struggling with signing and encrypting