Finish port of non-key-related parts of fCryptography