Serial finite field implementation, i.e. serial implementation of finite field arithmetic, generating one new bit or trit per step