Skip to content

Commit

Permalink
Don't explicitely clone gcm_153 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 18, 2024
1 parent 52ed4cc commit 631e98a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions haicrypt/hcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ int HaiCrypt_Clone(HaiCrypt_Handle hhcSrc, HaiCrypt_CryptoDir tx, HaiCrypt_Handl
cryptoClone->ctx = &cryptoClone->ctx_pair[0];
cryptoClone->ctx->flags |= (HCRYPT_CTX_F_ANNOUNCE | HCRYPT_CTX_F_TTSEND);
cryptoClone->ctx->status = HCRYPT_CTX_S_ACTIVE;
cryptoClone->ctx->use_gcm_153 = cryptoSrc->ctx->use_gcm_153;

} else { /* Receiver */

Expand Down Expand Up @@ -334,7 +333,6 @@ int HaiCrypt_Clone(HaiCrypt_Handle hhcSrc, HaiCrypt_CryptoDir tx, HaiCrypt_Handl
memset(cryptoClone->ctx_pair[0].salt, 0, sizeof(cryptoClone->ctx_pair[0].salt));
cryptoClone->ctx_pair[0].salt_len = 0;
cryptoClone->ctx = &cryptoClone->ctx_pair[0];
cryptoClone->ctx->use_gcm_153 = cryptoSrc->ctx->use_gcm_153;
}

*phhc = (void *)cryptoClone;
Expand Down

0 comments on commit 631e98a

Please sign in to comment.