projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CRYPTO] cipher: Added encrypt_one/decrypt_one
[powerpc.git]
/
include
/
crypto
/
algapi.h
diff --git
a/include/crypto/algapi.h
b/include/crypto/algapi.h
index
c533c0a
..
6f9fb27
100644
(file)
--- a/
include/crypto/algapi.h
+++ b/
include/crypto/algapi.h
@@
-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 */