Privacy-preserving verifiable delegation of polynomial and matrix functions