I want to decrypt the encrypted long line using RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING in golang. Here are the steps:
- base64 decode (encrypted long string) and store it in el
Then I need to extract secret key,public data, IV, Encrypted Secret Key, Encrypted Data from el
- Next step is: decrypt SecretKey using IV, encryptedSecretKey, privateKey
- Next step is: decrypt data using Encrypted Data, IV, secret key and store in decrypted text
- Next Validate decrypted text with HMAC size 32 and UTF-8 got get plain data
It will be great if I get the above steps in golang. Thanks in Advance.