]> err.no Git - linux-2.6/blobdiff - include/linux/crypto.h
[SPARC64]: Add __read_mostly support.
[linux-2.6] / include / linux / crypto.h
index 26ce01c25745927ea8e868303b0c0dd268428f98..5e2bcc636a02fd4d7a383e661b7661d6ac916169 100644 (file)
@@ -124,6 +124,7 @@ struct crypto_alg {
        u32 cra_flags;
        unsigned int cra_blocksize;
        unsigned int cra_ctxsize;
+       unsigned int cra_alignmask;
        const char cra_name[CRYPTO_MAX_ALG_NAME];
 
        union {
@@ -287,6 +288,11 @@ static inline unsigned int crypto_tfm_alg_digestsize(struct crypto_tfm *tfm)
        return tfm->__crt_alg->cra_digest.dia_digestsize;
 }
 
+static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm)
+{
+       return tfm->__crt_alg->cra_alignmask;
+}
+
 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm)
 {
        return (void *)&tfm[1];