Displaying 5 results from an estimated 5 matches for "salt_len".
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...nt scram_sha1_verify(const char *plaintext, const char *user ATTR_UNUSED,
+ const unsigned char *raw_password, size_t size,
+ const char **error_r ATTR_UNUSED)
+{
+ struct hmac_context ctx;
+ string_t *str;
+ const char *const *fields;
+ int iter;
+ const unsigned char *salt;
+ size_t salt_len;
+ unsigned char salted_password[SHA1_RESULTLEN];
+ unsigned char client_key[SHA1_RESULTLEN];
+ unsigned char stored_key[SHA1_RESULTLEN];
+
+ fields = t_strsplit(t_strndup(raw_password, size), ",");
+ iter = atoi(fields[0]);
+ salt = buffer_get_data(t_base64_decode_str(fields[1]), &sa...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and
2014 Jul 25
1
improving passphrase protected private keys
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I got a proposal
for a slight different default
private key encryption protocol.
Here is my understanding what
ssh-keygen currently does.
According to this article:
http://martin.kleppmann.com/2013/05/24/improving-security-of-ssh-private-keys.html
when you create a new key with a
passphrase to protect it, ssh-keygen
uses a hard-coded openssl
2012 Jun 08
13
Default password hash
We still have MD5 as our default password hash, even though known-hash
attacks against MD5 are relatively easy these days. We've supported
SHA256 and SHA512 for many years now, so how about making SHA512 the
default instead of MD5, like on most Linux distributions?
Index: etc/login.conf
===================================================================
--- etc/login.conf (revision
2012 Dec 27
3
[PATCH] hostfile: list known names (if any) for new hostkeys
...ostfile.c
index b6f924b..e493c91 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -58,11 +58,6 @@
#include "log.h"
#include "misc.h"
-struct hostkeys {
- struct hostkey_entry *entries;
- u_int num_entries;
-};
-
static int
extract_salt(const char *s, u_int l, char *salt, size_t salt_len)
{
@@ -236,20 +231,22 @@ init_hostkeys(void)
}
void
-load_hostkeys(struct hostkeys *hostkeys, const char *host, const char *path)
+load_hostkeys(struct hostkeys *hostkeys, const char *lookup_host,
+ const Key *lookup_key, const char *path)
{
FILE *f;
char line[8192];
u_long linenum =...