Skip to content

Commit

Permalink
[core] Fixed cloning the RX crypto context (AEAD)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Nov 22, 2022
1 parent be1ccf5 commit 0138898
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haicrypt/hcrypt.c
Expand Up @@ -196,6 +196,9 @@ int HaiCrypt_ExtractConfig(HaiCrypt_Handle hhcSrc, HaiCrypt_Cfg* pcfg)
pcfg->flags = HAICRYPT_CFG_F_CRYPTO;
if ((ctx->flags & HCRYPT_CTX_F_ENCRYPT) == HCRYPT_CTX_F_ENCRYPT)
pcfg->flags |= HAICRYPT_CFG_F_TX;

if (ctx->mode == HCRYPT_CTX_MODE_AESGCM)
pcfg->flags |= HAICRYPT_CFG_F_GCM;

/* Set this explicitly - this use of this library is SRT only. */
pcfg->xport = HAICRYPT_XPT_SRT;
Expand Down

0 comments on commit 0138898

Please sign in to comment.