issue #21251: fixed decrypt recursion bugs