kokke / kokke/tiny-AES-c

Issues with Include

Open
#222 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I have included "aes.h" into another header file. I have gotten the following errors. I believe that "aes.h" is in my path, but is that the only reason why these errors would be happening, or is there something else that I am missing? I have put "aes.h" in the same place as my header file that I am working on, but these errors happened still

error: ‘AES_init_ctx’ was not declared in this scope
13 | AES_init_ctx(&ctx, key);

error: ‘void AES_init_ctx(rv32_custom_add(processor_t*, insn_t, reg_t)::AES_ctx*, const uint8_t*)’, declared using local type ‘rv32_custom_add(processor_t*, insn_t, reg_t)::AES_ctx’, is used but never defined [-fpermissive]
52 | void AES_init_ctx(struct AES_ctx* ctx, const uint8_t* key);

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading aes.h alongside the other header that includes it, then trace the declarations and definitions referenced by AES_init_ctx. Reproduce the reported compiler errors and determine why the declaration is unavailable or defined against the local AES_ctx type; done means the include and type usage are understood and the errors no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
cryptography
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.