Restic vs Borg in terms of security

I’m not aware how the crypto in borg exactly works, so maybe somebody else can explain? Or point us to the docs for borg?