Add snappy interface to crypto API