+ DBG ( "CHAP %p initialising with %s digest\n", chap, digest->name );
+
+ state_len = ( digest->context_len + digest->digest_len );
+ state = malloc ( state_len );
+ if ( ! state ) {
+ DBG ( "CHAP %p could not allocate %d bytes for state\n",
+ chap, state_len );
+ return -ENOMEM;
+ }
+