I want to decrypt the encrypted long line using RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING in golang. Here are the steps:

  1. 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
  2. Next step is: decrypt SecretKey using IV, encryptedSecretKey, privateKey
  3. Next step is: decrypt data using Encrypted Data, IV, secret key and store in decrypted text
  4. 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.