- fixed some minor comment issues
authorMartin Willi <martin@strongswan.org>
Tue, 22 Nov 2005 15:34:10 +0000 (15:34 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 22 Nov 2005 15:34:10 +0000 (15:34 -0000)
Source/charon/transforms/hmac.c
Source/charon/transforms/prf_plus.c

index 7192735..550e590 100644 (file)
@@ -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);
        
index 2469fde..5b3e7df 100644 (file)
@@ -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*/