/* Loads user key to INDATA register. 
This function writes user key stored in handle into HashCrypt INDATA register. */
static void hashcrypt_aes_load_userKey(HASHCRYPT_Type *base, hashcrypt_handle_t *handle)
/* Loads user key to INDATA register. 
This function writes user key stored in handle into HashCrypt INDATA register. */
static void hashcrypt_aes_load_userKey(HASHCRYPT_Type *base, hashcrypt_handle_t *handle)
{
    size_t keySize = 0;
    switch (handle->keySize)
    {
        case kHASHCRYPT_Aes128:
            keySize = 16;
            break;
        case kHASHCRYPT_Aes192:
            keySize = 24;
            break;
        case kHASHCRYPT_Aes256:
            keySize = 32;
            break;
        default:
            break;
    }
    if (keySize == 0U)
    {
        return;
    }
    hashcrypt_load_data(base, &handle->keyWord[0], keySize);
}