]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - include/crypto/algapi.h
[CRYPTO] cipher: Added encrypt_one/decrypt_one
[linux-3.10.git] / include / crypto / algapi.h
index c533c0a291af4270b54c4559577e3fdda5b27abd..6f9fb27b2071fd3c7b5f425d98d4a79dca9effc7 100644 (file)
@@ -69,5 +69,10 @@ static inline void *crypto_instance_ctx(struct crypto_instance *inst)
        return inst->__ctx;
 }
 
+static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm)
+{
+       return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher;
+}
+
 #endif /* _CRYPTO_ALGAPI_H */