Tobias Brunner
768e013790
prf-plus: Fail after counter has wrapped around
...
The behavior is undefined if this happens (RFC 7296, section 2.13).
Instead of switching to the non-counter mode, or letting the counter
wrap, this makes it clear that the usage was not as intended.
2019-10-21 13:53:11 +02:00
Tobias Brunner
c75010080a
prf-plus: Fix a potential memory leak if get_bytes() fails
2019-10-21 12:22:22 +02:00
Tobias Brunner
1b67166921
Unify format of HSR copyright statements
2018-05-23 16:32:53 +02:00
Tobias Brunner
e0c78d7516
prf-plus: Wipe seed and internal buffer
...
The buffer contains key material we handed out last and the seed can
contain the DH secret.
References #2388 .
2017-08-07 16:55:28 +02:00
Andreas Steffen
b12c53ce77
Use standard unsigned integer types
2016-03-24 18:52:48 +01:00
Martin Willi
bc47488323
Add a return value to prf_t.get_bytes()
2012-07-16 14:53:33 +02:00
Martin Willi
8207fe3eb3
Add a return value to prf_plus_t.get_bytes()
2012-07-16 14:53:33 +02:00
Martin Willi
5d79e6c6b4
Add a return value to prf_plus_t.allocate_bytes()
2012-07-16 14:53:33 +02:00
Martin Willi
7b1e15ac4e
Fixed IKEv1 prf+ keymat expansion beyond 320 bits
2012-03-20 17:31:22 +01:00
Tobias Brunner
38d189eee9
Compiler warning fixed in prf_plus_t.
2012-03-20 17:31:07 +01:00
Martin Willi
d4f6686c69
Extended PRF+ by a non-counting variant as used by IKEv1
2012-03-20 17:30:48 +01:00
Andreas Steffen
6a9642e466
Migrated crypto/prf_plus to INIT/METHOD macros
2011-10-02 11:27:38 +02:00
Martin Willi
7daf5226b7
removed trailing spaces ([[:space:]]+$)
2009-09-04 13:46:09 +02:00
Tobias Brunner
8c5d72cd0b
removing svn keyword $Id$ from all files
2009-04-30 13:19:35 +00:00
Martin Willi
f65ba4e978
prf handles zero-length allocations graceful
2008-10-29 14:12:54 +00:00
Martin Willi
552cc11b1f
merged the modularization branch (credentials) back to trunk
2008-03-13 14:14:44 +00:00
Martin Willi
db7ef62494
better split up of library files "types.h" & "definitions.h"
...
centralized all printf specifier character definitions
reuse of arginfo handlers
more cleanups
fixed more AMD64 issues
added DEBUG_LEVEL compile flag to exclude DBGn() statements
2006-10-31 12:27:59 +00:00
Martin Willi
c71d53ba4e
updated copyright information
2006-07-07 08:49:06 +00:00
Martin Willi
95806de938
2006-05-10 07:58:29 +00:00