summaryrefslogtreecommitdiffstats
path: root/module/icp/algs/modes/ccm.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/icp/algs/modes/ccm.c')
-rw-r--r--module/icp/algs/modes/ccm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/icp/algs/modes/ccm.c b/module/icp/algs/modes/ccm.c
index fb41194f8..f4075f503 100644
--- a/module/icp/algs/modes/ccm.c
+++ b/module/icp/algs/modes/ccm.c
@@ -885,15 +885,13 @@ ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag,
ccm_ctx->ccm_flags |= CCM_MODE;
} else {
- rv = CRYPTO_MECHANISM_PARAM_INVALID;
- goto out;
+ return (CRYPTO_MECHANISM_PARAM_INVALID);
}
if (ccm_init(ccm_ctx, ccm_param->nonce, ccm_param->ulNonceSize,
ccm_param->authData, ccm_param->ulAuthDataSize, block_size,
encrypt_block, xor_block) != 0) {
- rv = CRYPTO_MECHANISM_PARAM_INVALID;
- goto out;
+ return (CRYPTO_MECHANISM_PARAM_INVALID);
}
if (!is_encrypt_init) {
/* allocate buffer for storing decrypted plaintext */
@@ -903,7 +901,6 @@ ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag,
rv = CRYPTO_HOST_MEMORY;
}
}
-out:
return (rv);
}