Re: only password encrypted, all other data unencrypted!
- From: "Joseph Ashwood" <ashwood@xxxxxxx>
- Date: Wed, 21 Mar 2007 05:42:53 GMT
<qazmlp1209@xxxxxxxxxxxxxx> wrote in message
news:1174454624.688163.204510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 21, 5:42 am, Unruh <unruh-s...@xxxxxxxxxxxxxx> wrote:
If you told us what problem you were having or trying to solve maybe weThe usecase is related to the LDAP client authentication to the LDAP
could help you more. The standard is to encrypt everything. Why is that a
problem?- Hide quoted text -
server. We do not have any stringent requirement of en/decrypting the
data(except the password that is used for LDAP authentication) that we
send over the LDAP connection. Hence, we require a simple, but
considerably safer(by encrypting the password) mechanism for it.
Ok, so let me make sure I understand the situation correctly first. You need
to make sure that at some point there was a user involved who is
authenticatable, but you don't need to make sure that the user actually
desired the actions included? Additionally, you have no need to keep the
actions secret? (substitute service for user as needed) Assuming this is
correct, it is an admittedly unusual situation, and I doubt that it is
really is what need security-wise, and you really should just transfer the
whole thing over SSL it will save you headaches later on, just remember it
wasn't me that certified this as secure, I believe there are great big holes
to walk through in the security, but:
Server S has a known and trusted public/private DH/ElGamal key pair KP_S
(These can be explained easily enough if needed)
When the Client C wants to connect C generates a one-time key pair KP_C
using the same field as KP_S
C->S KP_C
C & S both generate the shared secret SS
EK = SHA256(SS | "Encryption Key") ( | is concatentation)
MK = SHA256(SS | "MAC Key")
C MACs passphrase P using MK and appends the MAC to the passphrase to create
MP (MACd Passphrase)
C encrypts MC using EK to create EMP (Encrypted MP)
C->S EMP
S decrypts EMP with EK delivering MP
S verifies MAC on MP verifying that P has not been altered in transit
Assuming you choose the ElGamal parameters properly, and use well
established secure algorithms and chaining modes (256-bit AES, CBC-MAC for
MACing, CTR for encryption) this should transfer the passphrase safely.
For those of you familiar with the other meaning for EMP, yes I chose the
abbreviation deliberately because I feel that this is about as safe as
hitting the server with the other kind of EMP.
Joe
.
- References:
- only password encrypted, all other data unencrypted!
- From: qazmlp1209
- Re: only password encrypted, all other data unencrypted!
- From: Unruh
- Re: only password encrypted, all other data unencrypted!
- From: qazmlp1209
- only password encrypted, all other data unencrypted!
- Prev by Date: Re: What surrogate factoring theory now says
- Next by Date: RNG's revisited
- Previous by thread: Re: only password encrypted, all other data unencrypted!
- Next by thread: Re: Get Serious
- Index(es):
Relevant Pages
|