# `SignCore.Algorithm.PS256`
[🔗](https://github.com/utaladriz/pkcs11ex/blob/v0.1.0/lib/sign_core/algorithm/ps256.ex#L1)

PS256 algorithm adapter — RSASSA-PSS with SHA-256, MGF1-SHA-256, and a 32-byte salt.

Per JOSE convention (RFC 7518), the salt length matches the hash output (32
bytes for SHA-256). The PKCS#11 mechanism used is `CKM_SHA256_RSA_PKCS_PSS`,
which performs the digest inside the HSM in a single shot — appropriate for
payloads that fit in memory. Streaming / pre-hashed paths
(`CKM_RSA_PKCS_PSS` over a precomputed digest) land in a later step.

Signature encoding is identity in both `:jose` and `:der` contexts: PSS
produces a fixed-width byte string matching the modulus, and JWS/CMS both
consume that byte string verbatim.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
