DecryptAndCheck (inputPrivateKey, inData) MAIN PROCEDURE: 1. Decrypt the inData 2. Verify the HMAC.
(inputPrivateKey *asymmetric.PrivateKey, inData []byte)
| 62 | // 1. Decrypt the inData |
| 63 | // 2. Verify the HMAC. |
| 64 | func DecryptAndCheck(inputPrivateKey *asymmetric.PrivateKey, inData []byte) ([]byte, error) { |
| 65 | return ec.Decrypt((*ec.PrivateKey)(inputPrivateKey), inData) |
| 66 | } |
no outgoing calls