The encryption/decryption is done in the memory controller so it doesn't matter where the access is coming from.