Fix for functions called in bcBenerateKeypair