Security & crypto1 exports
Raw Markdown/crypto/rsa
RSA public/private key parsing, PKCS#1/PSS signing, and cryptographic signature verification.
Functions & symbols#
verify-signature#
function
Verifies an RSASSA-PKCS1-v1_5 SHA-256 signature using a DER-encoded RSA public key.
| Parameter | Type | Optional | Description |
|---|---|---|---|
public_key | Slab | required | DER-encoded RSA public key (PKCS#1 or X.509 SPKI/PKCS#8) |
message | Slab | required | Raw message bytes (hashed internally with SHA-256) |
signature | Slab | required | PKCS#1 v1.5 RSA signature bytes |
Returns:
Any(rsa/verify-signature spki-slab msg-slab sig-slab)