diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-22 15:34:10 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-22 15:34:10 +0000 |
commit | 62adf1e0e825976d022b1ff653f25a194281e6c9 (patch) | |
tree | 19d8dc5c48c502cb857be102d1545d3a36ca28bf /Source | |
parent | 74ced9e2491fd4b1b9fe3c31008d0afb283b20f5 (diff) | |
download | strongswan-62adf1e0e825976d022b1ff653f25a194281e6c9.tar.bz2 strongswan-62adf1e0e825976d022b1ff653f25a194281e6c9.tar.xz |
- fixed some minor comment issues
Diffstat (limited to 'Source')
-rw-r--r-- | Source/charon/transforms/hmac.c | 2 | ||||
-rw-r--r-- | Source/charon/transforms/prf_plus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/transforms/hmac.c b/Source/charon/transforms/hmac.c index 7192735bf..550e590b3 100644 --- a/Source/charon/transforms/hmac.c +++ b/Source/charon/transforms/hmac.c @@ -157,7 +157,7 @@ static status_t set_key(private_hmac_t *this, chunk_t key) this->opaded_key.ptr[i] = buffer[i] ^ 0x5C; } - /* begin hashing if inner pad */ + /* begin hashing of inner pad */ this->h->reset(this->h); this->h->get_hash(this->h, this->ipaded_key, NULL); diff --git a/Source/charon/transforms/prf_plus.c b/Source/charon/transforms/prf_plus.c index 2469fdebe..5b3e7df2f 100644 --- a/Source/charon/transforms/prf_plus.c +++ b/Source/charon/transforms/prf_plus.c @@ -76,7 +76,7 @@ static status_t get_bytes(private_prf_plus_t *this, size_t length, u_int8_t *buf appending_chunk.ptr = &(this->appending_octet); appending_chunk.len = 1; - while (length) + while (length > 0) { /* still more to do... */ if (this->buffer.len == this->given_out) { /* no bytes left in buffer, get next*/ |