* NOTE: blen is not aligned to a block size, we'll pad zeros, that's
  *       what sg[4] is for. Maybe there is a smarter way to do this.
  */
-static int wusb_ccm_mac(struct crypto_skcipher *tfm_cbc,
+static int wusb_ccm_mac(struct crypto_sync_skcipher *tfm_cbc,
                        struct crypto_cipher *tfm_aes,
                        struct wusb_mac_scratch *scratch,
                        void *mic,
                        size_t blen)
 {
        int result = 0;
-       SKCIPHER_REQUEST_ON_STACK(req, tfm_cbc);
+       SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm_cbc);
        struct scatterlist sg[4], sg_dst;
        void *dst_buf;
        size_t dst_size;
        if (!dst_buf)
                goto error_dst_buf;
 
-       iv = kzalloc(crypto_skcipher_ivsize(tfm_cbc), GFP_KERNEL);
+       iv = kzalloc(crypto_sync_skcipher_ivsize(tfm_cbc), GFP_KERNEL);
        if (!iv)
                goto error_iv;
 
        sg_set_page(&sg[3], ZERO_PAGE(0), zero_padding, 0);
        sg_init_one(&sg_dst, dst_buf, dst_size);
 
-       skcipher_request_set_tfm(req, tfm_cbc);
+       skcipher_request_set_sync_tfm(req, tfm_cbc);
        skcipher_request_set_callback(req, 0, NULL, NULL);
        skcipher_request_set_crypt(req, sg, &sg_dst, dst_size, iv);
        result = crypto_skcipher_encrypt(req);
 {
        ssize_t result, bytes = 0, bitr;
        struct aes_ccm_nonce n = *_n;
-       struct crypto_skcipher *tfm_cbc;
+       struct crypto_sync_skcipher *tfm_cbc;
        struct crypto_cipher *tfm_aes;
        struct wusb_mac_scratch *scratch;
        u64 sfn = 0;
        __le64 sfn_le;
 
-       tfm_cbc = crypto_alloc_skcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC);
+       tfm_cbc = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0);
        if (IS_ERR(tfm_cbc)) {
                result = PTR_ERR(tfm_cbc);
                printk(KERN_ERR "E: can't load CBC(AES): %d\n", (int)result);
                goto error_alloc_cbc;
        }
-       result = crypto_skcipher_setkey(tfm_cbc, key, 16);
+       result = crypto_sync_skcipher_setkey(tfm_cbc, key, 16);
        if (result < 0) {
                printk(KERN_ERR "E: can't set CBC key: %d\n", (int)result);
                goto error_setkey_cbc;
        crypto_free_cipher(tfm_aes);
 error_alloc_aes:
 error_setkey_cbc:
-       crypto_free_skcipher(tfm_cbc);
+       crypto_free_sync_skcipher(tfm_cbc);
 error_alloc_cbc:
        return result;
 }