Implements CryptographicBuffer the rest of the way.