#include <crypto/scatterwalk.h>
 #include <crypto/algapi.h>
 #include <crypto/aes.h>
+#include <crypto/gcm.h>
 #include <crypto/xts.h>
 #include <crypto/internal/aead.h>
 #include <linux/platform_data/crypto-atmel.h>
        if (err)
                return atmel_aes_complete(dd, err);
 
-       if (likely(ivsize == 12)) {
+       if (likely(ivsize == GCM_AES_IV_SIZE)) {
                memcpy(ctx->j0, iv, ivsize);
                ctx->j0[3] = cpu_to_be32(1);
                return atmel_aes_gcm_process(dd);
        .decrypt        = atmel_aes_gcm_decrypt,
        .init           = atmel_aes_gcm_init,
        .exit           = atmel_aes_gcm_exit,
-       .ivsize         = 12,
+       .ivsize         = GCM_AES_IV_SIZE,
        .maxauthsize    = AES_BLOCK_SIZE,
 
        .base = {