Skip to content

Commit

Permalink
Windows: fixed number of args given to crypto_mac_update
Browse files Browse the repository at this point in the history
Parallel eb1e09b
module: icp: remove unused CRYPTO_ALWAYS_QUEUE

Signed-off-by: Andrew Innes <andrew.c12@gmail.com>
  • Loading branch information
andrewc12 committed Sep 23, 2022
1 parent 6cddf78 commit 627b679
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions module/os/windows/zfs/zio_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ zio_crypt_bp_do_hmac_updates(crypto_context_t ctx, uint64_t version,
cd.cd_raw.iov_base = (char *)&bab;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_update(ctx, &cd, NULL);
ret = crypto_mac_update(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand Down Expand Up @@ -1069,7 +1069,7 @@ zio_crypt_do_dnode_hmac_updates(crypto_context_t ctx, uint64_t version,
cd.cd_raw.iov_base = (char *)adnp;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_update(ctx, &cd, NULL);
ret = crypto_mac_update(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand Down Expand Up @@ -1155,7 +1155,7 @@ zio_crypt_do_objset_hmacs_impl(zio_crypt_key_t *key, void *data,
cd.cd_raw.iov_base = (char *)&intval;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_update(ctx, &cd, NULL);
ret = crypto_mac_update(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand All @@ -1173,7 +1173,7 @@ zio_crypt_do_objset_hmacs_impl(zio_crypt_key_t *key, void *data,
cd.cd_raw.iov_base = (char *)&intval;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_update(ctx, &cd, NULL);
ret = crypto_mac_update(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand All @@ -1190,7 +1190,7 @@ zio_crypt_do_objset_hmacs_impl(zio_crypt_key_t *key, void *data,
cd.cd_raw.iov_base = (char *)raw_portable_mac;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_final(ctx, &cd, NULL);
ret = crypto_mac_final(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand Down Expand Up @@ -1246,7 +1246,7 @@ zio_crypt_do_objset_hmacs_impl(zio_crypt_key_t *key, void *data,
cd.cd_raw.iov_base = (char *)&intval;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_update(ctx, &cd, NULL);
ret = crypto_mac_update(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand Down Expand Up @@ -1288,7 +1288,7 @@ zio_crypt_do_objset_hmacs_impl(zio_crypt_key_t *key, void *data,
cd.cd_raw.iov_base = (char *)raw_local_mac;
cd.cd_raw.iov_len = cd.cd_length;

ret = crypto_mac_final(ctx, &cd, NULL);
ret = crypto_mac_final(ctx, &cd);
if (ret != CRYPTO_SUCCESS) {
ret = SET_ERROR(EIO);
goto error;
Expand Down

0 comments on commit 627b679

Please sign in to comment.