Algoritmi crittografici¶
Tutti i partecipanti devono pubblicare gli algoritmi supportati di criptazione e firma all'interno dei propri metadata. Tali agoritmi sono utilizzati per tutte le operazioni di cifratura e firma previsti da OIDC core e di Federation.
Nota
La lunghezza delle chiavi RSA deve essere pari o superiore a 2048 bit. Si raccomanda una lunghezza di 4096 bit.
In SPID e CIE id i seguenti algoritmi DEVONO essere supportati:
Algoritmi | Operazioni | Riferimento | Supportato da |
---|---|---|---|
RS256 | Signature | OpenID.Core and RFC7518. | |
RS512 | Signature | RFC7518 | |
RSA-OAEP | Key Encryption | RFC7518. | |
RSA-OAEP-256 | Key Encryption | RFC7516. | |
A128CBC-HS256 | Content Encryption | RFC7516. | |
A256CBC-HS512 | Content Encryption | RFC7516. |
In SPID e CIE id è RACCOMANDATO il supporto per i seguenti algoritmi:
Algoritmi | Operazioni | Riferimento | Applicabile a |
---|---|---|---|
ES256 | Signature | OpenID.Core and RFC7518. | |
ES512 | Signature | RFC7518. | |
PS256 | Signature | RFC7518. | |
PS512 | Signature | RFC7518. | |
ECDH-ES | Key Encryption | RFC7518. | |
ECDH-ES+A128KW | Key Encryption | RFC7518. | |
ECDH-ES+A256KW | Key Encryption | RFC7518. |
In SPID e CIE id i seguenti algoritmi NON DEVONO essere supportati:
Algoritmi | Operazioni | Riferimenti | Applicabile a |
---|---|---|---|
none | Signature | RFC7518. | |
RSA_1_5 | Key Encryption | RFC7516. | |
HS256 | Signature | RFC7518. | |
HS384 | Signature | RFC7518. | |
HS512 | Signature | RFC7518. |