CLASSIC
Modul: cryif
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_CRYIF_SECTION_8_3_2_1_Dispatch_Key_IDs
Wortlaut
8.3.2.1 Dispatch Key IDs
[SWS_CryIf_00133] Set the jobPrimitiveInputOutput’s cryptoKeyId with the key ID of the corresponding crypto driver Upstream requirements: SRS_CryptoStack_00104
⌈If the parameter job->jobPrimitiveInfo->primitiveInfo->service is either set to CRYPTO_KEYSETVALID, CRYPTO_KEYSETINVALID, CRYPTO_RANDOMSEED, CRYPTO_KEYGENERATE, CRYPTO_KEYDERIVE, CRYPTO_KEYEXCHANGECALCPUBVAL, CRYPTO_KEYEXCHANGECALCSECRET or CRYPTO_CUSTOM, the parameters job->jobPrimitiveInputOutput->cryIfKeyId and, if applicable, job- >jobPrimitiveInputOutput->targetCryIfKeyId have to be checked if it is in a valid range. If so, CryIf shall set job->cryptoKeyId with the key ID of the crypto driver that corresponds to job->jobPrimitiveInputOutput->cryIfKeyId, and, if applicable, job- >targetCryptoKeyId with the key ID of the crypto driver that corresponds to job- >jobPrimitiveInputOutput->targetCryIfKeyId..⌋
[SWS_CryIf_00134] Job cryIfKeyId must be in range Upstream requirements: SRS_CryptoStack_00034
⌈If the parameter job->jobPrimitiveInfo->primitiveInfo->service is either set to CRYPTO_KEYSETVALID, CRYPTO_KEYSETINVALID, CRYPTO_RANDOMSEED, CRYPTO_KEYGENERATE, CRYPTO_KEYDERIVE, CRYPTO_KEYEXCHANGECALCPUBVAL, CRYPTO_KEYEXCHANGECALCSECRET or CRYPTO_CUSTOM, the parameter job->cryIfKeyId must be in range; else the function CryIf_ProcessJob shall report CRYIF_E_PARAM_HANDLE to DET.⌋
[SWS_CryIf_00135] Job cryIfTargetKeyId must be in range Upstream requirements: SRS_CryptoStack_00034
⌈If the parameter job->jobPrimitiveInfo->primitiveInfo->service is set to CRYPTO_KEYDERIVE, the parameter job->cryIfTargetKeyId must be in range; else the function CryIf_ProcessJob shall report CRYIF_E_PARAM_HANDLE to DET.⌋
[SWS_CryIf_00142] Set the jobPrimitiveInfo’s cryptoKeyId with the key ID of the corresponding crypto driver Upstream requirements: SRS_CryptoStack_00104
⌈If a job is called and the parameter job->jobPrimitiveInfo->primitiveInfo->service is either set to CRYPTO_MACGENERATE, CRYPTO_MACVERIFY, CRYPTO_ENCRYPT, CRYPTO_DECRYPT, CRYPTO_AEADENCRYPT, CRYPTO_AEADDECRYPT, CRYPTO_RANDOMGENERATE, CRYPTO_SIGNATUREGENERATE or CRYPTO_SIGNATUREVERIFY, the parameter job->jobPrimitiveInfo->cryIfKeyId have to be checked if it is in a valid range. If so, CryIf shall set job->cryptoKeyId with the key ID of the crypto driver that corresponds to job->jobPrimitiveInfo->cryIfKeyId.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Cited verbatim in the snippet (deterministic citation).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_CryptoInterface.pdf |
|---|---|
| Dokumentseite | Seite 23 |
| Ziel-Modul | cryif (classic) |
| Ziel-Anforderung | SWS_CryIf_00142 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |