5.5.2.1 Crypto_Aead_AesGcm_Init

crypto_Aead_Status_E Crypto_Aead_AesGcm_Init(
    st_Crypto_Aead_AesGcm_ctx *ptr_aesGcmCtx_st,
    crypto_HandlerType_E handlerType_en,
    crypto_CipherOper_E cipherOper_en,
    uint8_t *ptr_key, 
    uint32_t keyLen, 
    uint8_t *ptr_initVect, 
    uint32_t intiVectLen, 
    uint32_t sessionID);

Description

This API is used to initiate the AES-GCM algorithm parameters for the context.

Parameters

No.Argument TypeArgument NameTypeDescription
1st_Crypto_Aead_AesGcm_ctx*ptr_aesGcmCtx_stOutputAES-GCM algorithm context
2crypto_HandlerType_EhandlerType_enInputEnum for crypto operation handler i.e., SW, HW
3crypto_CipherOper_EcipherOper_enInputSelect Cipher Operation, Encryption or Decryption
4uint8_t*ptr_keyInputKey for the AES-GCM cipher operation
5uint32_tkeyLenInputKey length in bytes for the AES-GCM algorithm
6uint8_t*ptr_initVectInputInitialization Vector (IV) for any length in bytes
7uint32_tinitVectLenInputInitialization Vector (IV) length in bytes
8uint32_tsessionIDInputIt defines the session ID, must be more than zero

Returns

Return TypeDescription
crypto_Aead_Status_EFunction returns the status of the API.