Skip to content

Commit

Permalink
fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Ianovich authored and yanovich committed Nov 2, 2022
1 parent c40bd93 commit fa4d6b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion gost_grasshopper_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int gost_grasshopper_cipher_init(EVP_CIPHER_CTX *ctx,
EVP_CIPHER_CTX_set_app_data(ctx, EVP_CIPHER_CTX_get_cipher_data(ctx));
if (enc && c->type == GRASSHOPPER_CIPHER_CTRACPKM) {
gost_grasshopper_cipher_ctx_ctr *ctr = EVP_CIPHER_CTX_get_cipher_data(ctx);
if (!ctr->has_kdf_seed && init_zero_kdf_seed(ctr->kdf_seed) == 0)
if (init_zero_kdf_seed(ctr->kdf_seed) == 0)
return -1;
}
}
Expand Down
1 change: 0 additions & 1 deletion gost_grasshopper_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ typedef struct {
unsigned char kdf_seed[8];
unsigned char tag[16];
EVP_MD_CTX *omac_ctx;
int has_kdf_seed;
} gost_grasshopper_cipher_ctx_ctr;

static void gost_grasshopper_cipher_key(gost_grasshopper_cipher_ctx* c, const uint8_t* k);
Expand Down

0 comments on commit fa4d6b0

Please sign in to comment.