4 extern struct crypto_interface ossl_crypto_if;
5 extern struct crypto_interface tom_crypto_if;
7 static struct crypto_interface *active = &ossl_crypto_if;
9 int encrypt(void *pt, int ptlen, void *key, int keylen, void *ct, int *ctlen)
11 return active->encrypt(pt, ptlen, key, keylen, ct, ctlen);
14 int decrypt(void *ct, int ctlen, void *key, int keylen, void *pt, int *ptlen)
16 return active->decrypt(ct, ctlen, key, keylen, pt, ptlen);
19 int hash(void *pt, int ptlen, void *tag, int *taglen)
21 return active->hash(pt, ptlen, tag, taglen);
24 int hmac(void *pt, int ptlen, void *key, int keylen, void *tag, int *taglen)
26 return active->hmac(pt, ptlen, key, keylen, tag, taglen);