search for: ucs2be_str

Displaying 1 result from an estimated 1 matches for "ucs2be_str".

2004 Aug 09
1
[PATCH] RPA authentication mechanism
...; +}; + +#define RPA_SCHALLENGE_LEN 32 +#define RPA_UCHALLENGE_LEN 16 +#define RPA_TIMESTAMP_LEN 14 + +#define ASN1_APPLICATION 0x60 + +/* Object id encoded using ASN.1 DER */ +static const unsigned char rpa_oid[] = { + 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x73, 0x01, 0x01, +}; + +void * ucs2be_str(pool_t pool, const char *str, size_t *size); + +/* + * Compute client -> server authentication response. + */ +static void rpa_user_response(struct rpa_auth_request *auth, + unsigned char *digest) +{ + struct md5_context ctx; + unsigned char z[48]; + + memset(z, 0, sizeof(z)); + + md5_in...