sample for crypto buffer error