Displaying 6 results from an estimated 6 matches for "client_key".
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...ize, request->salt, sizeof(request->salt),
- SCRAM_ITERATE_COUNT, request->salted_password);
-
- hmac_init(&ctx, request->salted_password,
- sizeof(request->salted_password), &hash_method_sha1);
- hmac_update(&ctx, "Client Key", 10);
- hmac_final(&ctx, client_key);
-
- sha1_get_digest(client_key, sizeof(client_key), stored_key);
-
auth_message = t_strconcat(request->client_first_message_bare, ",",
request->server_first_message, ",",
request->client_final_message_without_proof, NULL);
- hmac_init(&ctx, stored_key,...
2013 Nov 01
1
[PATCH] curve25519-sha256@libssh.org key exchange proposal
...NUM and back.
>
> diff --git a/kexc25519c.c b/kexc25519c.c
> new file mode 100644
> index 0000000..b2000f0
> --- /dev/null
> +++ b/kexc25519c.c
> ...
> +void
> +kexc25519_client(Kex *kex)
> +{
> ...
> + /* generate private key */
> + for (i = 0; i < sizeof(client_key); i++) {
> + if (i % 4 == 0)
> + rnd = arc4random();
> + client_key[i] = rnd;
> + rnd >>= 8;
> + }
>
> easier to use arc4random_buf() here. If we use the -donna implementation
> then we need to do the
>
> client_key[0] &= 248;
> client_key[3...
2013 Sep 24
9
[PATCH] curve25519-sha256@libssh.org key exchange proposal
...quot;
+
+#include <nacl/crypto_scalarmult_curve25519.h>
+#define CURVE25519_PUBKEY_SIZE crypto_scalarmult_curve25519_BYTES
+#define CURVE25519_PRIVKEY_SIZE crypto_scalarmult_curve25519_SCALARBYTES
+
+void
+kexc25519_client(Kex *kex)
+{
+ BIGNUM *shared_secret;
+ Key *server_host_key;
+ u_char client_key[CURVE25519_PRIVKEY_SIZE];
+ u_char client_pubkey[CURVE25519_PUBKEY_SIZE];
+ u_char *server_pubkey = NULL;
+ u_char shared_secret_raw[CURVE25519_PUBKEY_SIZE];
+ u_char *server_host_key_blob = NULL, *signature = NULL;
+ u_char *hash;
+ u_int rnd = 0, slen, sbloblen, hashlen, i;
+
+ /* generate pri...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...ignature)));
str_append(str, "v=");
@@ -213,7 +214,7 @@
static bool verify_credentials(struct scram_auth_request *request,
const unsigned char *credentials, size_t size)
{
- struct hmac_sha1_context ctx;
+ struct hmac_context ctx;
const char *auth_message;
unsigned char client_key[SHA1_RESULTLEN];
unsigned char client_signature[SHA1_RESULTLEN];
@@ -224,10 +225,10 @@
Hi(credentials, size, request->salt, sizeof(request->salt),
SCRAM_ITERATE_COUNT, request->salted_password);
- hmac_sha1_init(&ctx, request->salted_password,
- sizeof(request->salte...
2007 Jul 31
0
wsdlDriver won't run under Rails (SSL)
...'
wsdl = ''ProxyUser.wsdl''
soap = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
soap.options[''protocol.http.ssl_config.client_cert''] =
''/etc/certs/ssl.crt/server_cert.crt''
soap.options[''protocol.http.ssl_config.client_key'']=''/etc/certs/ssl.crt/server_key_nopass.pem''
soap.options[''protocol.http.ssl_config.ca_file'']=''/etc/certs/ssl.crt/ca.crt''
dn = soap.getDn(user)
puts dn
=======================================
||Behind a Controller: (Doesn...
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...def hello
opts = {}
opts[''protocol.http.ssl_config.verify_mode''] =
''OpenSSL::SSL::VERIFY_PEER''
opts[''protocol.http.ssl_config.client_cert''] =
''public/healeyt/cert_healeyt.pem''
opts[''protocol.http.ssl_config.client_key''] =
''public/healeyt/healeyt_keypair.pem''
opts[''protocol.http.ssl_config.ca_file''] = ''public/CA''
soap_client = ActionWebService::Client::Soap.new(EmmaApi,
''https://rsvcstage.e2ma.net/emmaTestCalls'', :driver_option...