Bent Functions: Results and Applications to Cryptography