Lines Matching refs:checkContext
107 static bool checkContext(otCryptoContext *aContext, size_t aMinSize) in checkContext() function
224 if (!checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Init()
238 if (!checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Deinit()
252 if (aKey == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Start()
267 if (aBuf == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Update()
281 if (aBuf == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Finish()
294 if (!checkContext(aContext, sizeof(psa_key_id_t))) { in otPlatCryptoAesInit()
308 if (aKey == NULL || !checkContext(aContext, sizeof(psa_key_id_t))) { in otPlatCryptoAesSetKey()
325 if (aInput == NULL || aOutput == NULL || !checkContext(aContext, sizeof(psa_key_id_t))) { in otPlatCryptoAesEncrypt()
345 if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { in otPlatCryptoSha256Init()
359 if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { in otPlatCryptoSha256Deinit()
372 if (!checkContext(aContext, sizeof(psa_hash_operation_t))) { in otPlatCryptoSha256Start()
385 if (aBuf == NULL || !checkContext(aContext, sizeof(psa_hash_operation_t))) { in otPlatCryptoSha256Update()
399 if (aHash == NULL || !checkContext(aContext, sizeof(psa_hash_operation_t))) { in otPlatCryptoSha256Finish()