}
/**
- * Install inbound policie(s): in, fwd
+ * Install inbound policies: in, fwd
*/
static status_t install_policies_inbound(private_child_sa_t *this,
host_t *my_addr, host_t *other_addr, traffic_selector_t *my_ts,
}
/**
- * Install outbound policie(s): out, [fwd]
+ * Install outbound policies: out, [fwd]
*/
static status_t install_policies_outbound(private_child_sa_t *this,
host_t *my_addr, host_t *other_addr, traffic_selector_t *my_ts,
*
* If out is NULL, no result is given back. A next call will
* append the data to already supplied data. If out is not NULL,
- * the mac of all apended data is calculated, written to out and the
+ * the MAC of all appended data is calculated, written to out and the
* internal state is reset.
*
* @param data chunk of data to authenticate
* @param out pointer where the generated bytes will be written
- * @return TRUE if mac generated successfully
+ * @return TRUE if MAC generated successfully
*/
bool (*get_mac)(mac_t *this, chunk_t data,
uint8_t *out) __attribute__((warn_unused_result));
{
#if OPENSSL_VERSION_NUMBER >= 0x1010100fL
if (this->quality > RNG_WEAK)
- { /* use a separate DRBG for data we wan't to keep private, compared
+ { /* use a separate DRBG for data we want to keep private, compared
* to e.g. nonces */
return RAND_priv_bytes((char*)buffer, bytes) == 1;
}
}
/**
- * Increment a chunk, as it would reprensent a network order integer.
+ * Increment a chunk, as it would represent a network order integer.
*
* @param chunk chunk to increment
* @return TRUE if an overflow occurred