Lines Matching refs:padlen
644 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start() local
654 dd->datalen = len + padlen; in atmel_aes_cpu_start()
721 size_t padlen; in atmel_aes_map() local
734 padlen = atmel_aes_padlen(len, dd->ctx->block_size); in atmel_aes_map()
736 if (dd->buflen < len + padlen) in atmel_aes_map()
753 sg_set_buf(&dd->aligned_sg, dd->buf, len + padlen); in atmel_aes_map()
1517 size_t datalen, padlen; in atmel_aes_gcm_start() local
1534 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1535 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1540 memset(data + ivsize, 0, padlen + sizeof(u64)); in atmel_aes_gcm_start()
1575 size_t padlen; in atmel_aes_gcm_length() local
1594 padlen = atmel_aes_padlen(req->assoclen, AES_BLOCK_SIZE); in atmel_aes_gcm_length()
1595 if (unlikely(req->assoclen + padlen > dd->buflen)) in atmel_aes_gcm_length()
1601 dd->datalen = req->assoclen + padlen; in atmel_aes_gcm_length()