# TinyCrypt Port (rm_tinycrypt_port) API and Deprecated Wrappers

Manage and update the TinyCrypt port API names, deprecated RM_TINYCRYPT_PORT_* wrappers, and TRNG implementation, including test and usage notes.

**Canonical URL:** https://skillshunter.net/skills/discovered-1b237908aad349aeab34578051cb69f5796d13e34817e0e1

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-1b237908aad349aeab34578051cb69f5796d13e34817e0e1

**Markdown URL:** https://skillshunter.net/skills/discovered-1b237908aad349aeab34578051cb69f5796d13e34817e0e1.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-1b237908aad349aeab34578051cb69f5796d13e34817e0e1/download

**Category:** Software & Development

**Source URL:** https://github.com/minhnguyenyf/skills/blob/7213d81500a27f3a96028144f5342ccfe4efbe4a/tinycrypt/SKILL.md

**Source commit:** 7213d81500a27f3a96028144f5342ccfe4efbe4a

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T11:12:24.000000Z

**Updated at:** 2026-11-30T06:52:26.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure that deprecated API names are marked with `// [DEPRECATED]` (LIN style) and that no compiler deprecation attributes are used, as they break the build with `-Werror` in `fsp_flags`.

### When to use it

- Update deprecated API names in the TinyCrypt port to new names.
- Ensure compatibility tests for deprecated names are run with real BSP headers.
- Validate that deprecated API wrappers are correctly marked and do not break the build.

## Skill instructions

---
name: tinycrypt
description: TinyCrypt port (rm_tinycrypt_port) API names, deprecated RM_TINCYRYPT_PORT_* wrappers, TRNG, and their tests and usage notes. Read before changing rm_tinycrypt_port names, tests, or release notes.
---

# TinyCrypt port (rm_tinycrypt_port)

## Status
- Branch `FSPRA-6430_Correct_rm_tinycrypt_port_API_names`: new names in use, old names kept as deprecated wrappers.
- Not built against real BSP headers yet. Compat test not run on hardware.
- Release note: `documents/release_notes/upcoming/FSPRA-6430.yml` (category 4, Deprecations).

## Knowledge
- Typo fixed: `RM_TINCYRYPT_PORT_Init` / `_TRNG_Read` are now `RM_TINYCRYPT_PORT_Init` / `_TRNG_Read`.
- Old-name wrappers: end of `ra/fsp/src/rm_tinycrypt_port/rm_tinycrypt_port.c`. They call the new names.
- Declared in `ra/fsp/inc/instances/rm_tinycrypt_port.h` and `ra/fsp/src/rm_tinycrypt_port/inc/rm_tinycrypt_port.h`, marked `// [DEPRECATED]` (LIN style).
- No compiler deprecation attribute. It broke the build: `test_files/shared/tools.yml` sets `-Werror` in `fsp_flags`.
- Compat test: `TC_API_TestDeprecatedNames` in `!test/rm_tinycrypt_port_tests_tg1.c` (`@req`/`@verify` `tc_deprecated_names`). Usage note anchor: `um_tc_deprecated_names`.
- Test runner `test_files/src/r_tests_runner_main.c` uses the new name. The e2 test project `tinycrypt_api_test` calls the old names on purpose (no `-Werror` there).

## Open
- Pack build with real BSP headers to confirm the wrappers link.
- Editor save once dropped the wrappers. Check `git diff HEAD` on `rm_tinycrypt_port.c` after saving.

