/* Creating GCM Context. 
Change Logs: Date Author Notes  tyx the first version */
struct rt_hwcrypto_ctx* rt_hwcrypto_gcm_create(struct rt_hwcrypto_device *device, hwcrypto_type crypt_type)
/* Creating GCM Context. 
Change Logs: Date Author Notes  tyx the first version */
struct rt_hwcrypto_ctx* rt_hwcrypto_gcm_create(struct rt_hwcrypto_device *device, hwcrypto_type crypt_type)
{
    struct rt_hwcrypto_ctx *ctx;
    ctx = rt_hwcrypto_ctx_create(device, HWCRYPTO_TYPE_GCM, sizeof(struct hwcrypto_gcm));
    if (ctx)
    {
        ((struct hwcrypto_gcm *)ctx)->crypt_type = crypt_type;
    }
    return ctx;
}