Skip to content
Skills Library
Programming · Tool integration

tinycrypt-integration

/tinycrypt-integration

Use when integrating, porting, configuring, or debugging TinyCrypt cryptographic primitives, AES, SHA, HMAC, ECC, CTR/CCM, RNG, or embedded security code

Repository
aix-skills ↗
Licence
MIT
Last repository change
17.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 17.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when integrating, porting, configuring, or debugging TinyCrypt cryptographic primitives, AES, SHA, HMAC, ECC, CTR/CCM, RNG, or embedded security code

Original author description

Use when integrating, porting, configuring, or debugging TinyCrypt cryptographic primitives, AES, SHA, HMAC, ECC, CTR/CCM, RNG, or embedded security code

How it works

  1. Overview
  2. When To Use
  3. First Questions
  4. Integration Checklist
  5. Common Failures
  6. Verification
  7. Example
Original SKILL.md headings · 75 lines, 336 words
SKILL.md preview
---
name: tinycrypt-integration
description: Use when integrating, porting, configuring, or debugging TinyCrypt cryptographic primitives, AES, SHA, HMAC, ECC, CTR/CCM, RNG, or embedded security code
---

# TinyCrypt Integration

## Overview

Use this skill to integrate TinyCrypt primitives safely. Cryptographic code needs test vectors, correct modes, nonce/IV discipline, key handling, and explicit threat boundaries before being used in products.

## When To Use

Use this skill when:

- The user wants lightweight crypto primitives on an MCU using TinyCrypt.
- The task involves AES, SHA, HMAC, CTR, CCM, ECC, RNG, key storage, message authentication, or encrypted firmware/data.
- Outputs do not match known vectors or peer devices.

Do not use this skill for TLS session integration. Use `mbedtls-integration` for full TLS. For standalone ECDH/ECDSA operations, use `micro-ecc-integration`.

## First Questions

Ask for:

- Primitive/mode: AES-CTR, AES-CCM, SHA, HMAC, ECC, or RNG.
- Protocol or data format consuming the primitive.
- Key, IV/nonce, tag length, AAD, and message framing policy without exposing secrets.
- Target MCU/compiler and hardware crypto availability.
- Known test vector or peer output.

## Integration Checklist

1. Use test vectors first.
   Validate primitive and mode with public vectors before product payloads.

1. Define nonce/IV rules.
   Nonce reuse can break security. Make generation and storage explicit.

1. Separate encryption and authentication.
   Know whether the mode authenticates data or only encrypts it.

1. Protect key material.
   Avoid logging keys, IV secrets, raw plaintext, or derived secrets.

1. Handle failures securely.
   Authentication failure must reject data, not fall back to plaintext.

## Common Failures

- AES mode mismatch with peer.
- Nonce/IV reused after reboot.
- Tag length or AAD differs from peer implementation.
- Hash/HMAC input framing differs.
- Test code logs secrets or accepts authentication failures.

## Verification

Before claiming TinyCrypt works:

- State primitive/mode, nonce policy, tag length, and framing.
- Confirm public test vectors pass.
- Confirm modified ciphertext/tag fails verification.
- Confirm secrets are not printed or stored insecurely.

## Example

User:

```text
TinyCrypt AES-CCM 加密后对端验签失败。
```

Agent:

1. Asks for mode parameters, nonce, tag length, AAD, framing, and test vector.
1. Checks nonce and AAD consistency before payload logic.
1. Verifies that modified tags are rejected.

Versions

The database has no other skills named tinycrypt-integration.

Database snapshot: 13.11.2026 · package version f3b59542ada1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100easylogger-integration
    Use when integrating, porting, configuring, or debugging EasyLogger output, filters, timestamps, colors, async logging, flash logging, or embedded log loss
  • 100mbedtls-integration
    Use when integrating, porting, configuring, or debugging mbedTLS on MCU projects, TLS handshakes, certificates, entropy, RNG, memory, or secure embedded transports
  • 100mormot2-auth-security
    Use when working with mORMot 2 crypto/auth primitives: JWT, ECC, AES-GCM, SHA, password hashing, signing. Do NOT use for REST session lifecycle (use mormot2-rest-soa) or TLS/ACME (use mormot2-net).
  • 100setup
    Configure CCM Stack for this person: language, voice, package manager, test e-mail, banned commands, recommendations. Use for /ccm-stack:setup or changing any of them.
  • 100logto-webhooks
    Receive and verify Logto webhooks. Use when setting up a Logto webhook endpoint, validating the logto-signature-sha-256 HMAC header, or handling events like PostSignIn, PostRegister, User.Created, User.Data.Updated and Grant.LimitExceeded.
  • 100dknet-services
    Covers DKNet.Svc.Encryption, DKNet.Svc.PdfGenerators, and DKNet.Svc.Transformation — three independent, explicitly-invoked .NET services. Encryption — AES-GCM encrypt string .NET, RSA sign verify, HMAC SHA hash helper, Base64/Base64URL, via AddAesGcmEncryption, AddRsaEncryption,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.