Decrypting manually Android 4.4.2 partitions pulled from phone (SM-G313HN)
Okay so I got more info about how Samsungs encryption works from this video and was able to decrypt my userdata partition with tool called Sandy. As for SD card I just pulled out eds_p_sd file from /efs partition from my dd dump and put it back into factory reset phone and it worked like a charm. But SD card decryption can also be achieved with the Sandy framework you just need to have eds_p_sd file and right ECryptFS version so the keys work otherwise you will run into problems.