Commit 2bd25151 authored by Jhih-Ming Hunag's avatar Jhih-Ming Hunag Committed by Greg Kroah-Hartman

staging: ccree: move else to follow close brace '}'

Move else to follow close brace '}'
Signed-off-by: default avatarJhih-Ming Hunag <fbihjmeric@gmail.com>
Acked-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe2d1823
...@@ -1919,8 +1919,7 @@ static int config_gcm_context(struct aead_request *req) ...@@ -1919,8 +1919,7 @@ static int config_gcm_context(struct aead_request *req)
memcpy (&req_ctx->gcm_len_block.lenA, &temp64, sizeof(temp64)); memcpy (&req_ctx->gcm_len_block.lenA, &temp64, sizeof(temp64));
temp64 = cpu_to_be64(cryptlen * 8); temp64 = cpu_to_be64(cryptlen * 8);
memcpy (&req_ctx->gcm_len_block.lenC, &temp64, 8); memcpy (&req_ctx->gcm_len_block.lenC, &temp64, 8);
} } else { //rfc4543=> all data(AAD,IV,Plain) are considered additional data that is nothing is encrypted.
else { //rfc4543=> all data(AAD,IV,Plain) are considered additional data that is nothing is encrypted.
__be64 temp64; __be64 temp64;
temp64 = cpu_to_be64((req->assoclen+GCM_BLOCK_RFC4_IV_SIZE+cryptlen) * 8); temp64 = cpu_to_be64((req->assoclen+GCM_BLOCK_RFC4_IV_SIZE+cryptlen) * 8);
memcpy (&req_ctx->gcm_len_block.lenA, &temp64, sizeof(temp64)); memcpy (&req_ctx->gcm_len_block.lenA, &temp64, sizeof(temp64));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment