Displaying 4 results from an estimated 4 matches for "sha1_resultlen".
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...is released under the MIT license.
*/
+#include <stdlib.h>
+
#include "auth-common.h"
#include "base64.h"
#include "buffer.h"
@@ -29,45 +31,22 @@
/* sent: */
const char *server_first_message;
- unsigned char salt[16];
- unsigned char salted_password[SHA1_RESULTLEN];
+ const char *snonce;
/* received: */
const char *gs2_cbind_flag;
const char *cnonce;
- const char *snonce;
const char *client_first_message_bare;
const char *client_final_message_without_proof;
buffer_t *proof;
+
+ /* stored */
+ buffer_t *stored_key;
+ buffer_t *server_key;
};...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...e "hmac-sha1.h"
+#include "hmac.h"
+#include "sha1.h"
#include "randgen.h"
#include "safe-memset.h"
#include "str.h"
@@ -44,23 +45,23 @@
const unsigned char *salt, size_t salt_size, unsigned int i,
unsigned char result[SHA1_RESULTLEN])
{
- struct hmac_sha1_context ctx;
+ struct hmac_context ctx;
unsigned char U[SHA1_RESULTLEN];
unsigned int j, k;
/* Calculate U1 */
- hmac_sha1_init(&ctx, str, str_size);
- hmac_sha1_update(&ctx, salt, salt_size);
- hmac_sha1_update(&ctx, "\0\0\0\1", 4);
- hmac_sha1...
2014 Sep 29
3
Master user and invalid credentials dovecot-2.2.13
Hi,
I followed the docs from the dovecot wiki
(http://wiki2.dovecot.org/Authentication/MasterUsers) and still have
some problem:
1. uncommented "!include auth-ldap.conf.ext" in 10-auth.conf
2. htpasswd -b -c -s .... to create user/password for a masteruseruser
3. checked auth-master.conf.ext
When I try to test the login, I always get an "invalid credentials" in
the logs with
2007 Feb 24
2
SHA256 password patch
Hi,
I made a patch against branch-1.0 for SHA256 password hashing support
for Dovecot.
Courier Authlib supports this hashing scheme and in order to migrate
from Courier to Dovecot, I've added SHA256 support to Dovecot.
The attached patch is based on BSD licensed code from Olivier Gay
(http://www.ouah.org/ogay/sha2/).
Changes made by me in Olivier's sha2{.h,.c} code:
- Prototype for