/* Encrypts the len-bytes in the specified data-array, using the specified 256-bit (32 bytes) key. The results are written back into the same array.  */
LIBOPENBLT_EXPORT uint32_t BltUtilCryptoAes256Encrypt(uint8_t *data, uint32_t len, uint8_t const *key)
/* Encrypts the len-bytes in the specified data-array, using the specified 256-bit (32 bytes) key. The results are written back into the same array.  */
LIBOPENBLT_EXPORT uint32_t BltUtilCryptoAes256Encrypt(uint8_t *data, uint32_t len, uint8_t const *key)
{
  uint32_t result = BLT_RESULT_ERROR_GENERIC;
  assert(data != NULL);
  assert(key != NULL);
  if ( (data != NULL) && (key != NULL) && ((len % 16u) == 0) )
  {
    if (UtilCryptoAes256Encrypt(data, len, key))
    {
      result = BLT_RESULT_OK;
    }
  }
  return result;
}