Basic implementations of cryptographic algorithms