aesni_cbc_encrypt()

2019-11-11 Thread ratheesh kannoth
Hi, I am trying to pass explicit IV during TLS 1.2 encryption. I copied explicit IV to "ivec" before below function call. But IV on the encrypted output is totally different. Can any one help ? void aesni_cbc_encrypt(const unsigned char *in, unsigned char *out,

SHA_CTX h0, h1, h2, h3, h4

2019-10-29 Thread ratheesh kannoth
Hi, 1. what are these h0h4 ? 2. How are they generated ? 3. Could you help to locate code in openssl ? typedef struct SHAstate_st { SHA_LONG h0, h1, h2, h3, h4; SHA_LONG Nl, Nh; SHA_LONG data[SHA_LBLOCK]; unsigned int num; } SHA_CTX; Thanks,,

Re: write sequence number

2019-09-26 Thread ratheesh kannoth
> I assume you are using OpenSSL 1.0.2? > > s->s2 has nothing to do with TLSv1.2. That's for SSLv2 and has been removed > from > later versions. In 1.0.2 you need to be looking at s->s3->write_sequence and > s->s3->write_sequence. It's changed location in later releases. > > Matt > Sorry for conf

write sequence number

2019-09-25 Thread ratheesh kannoth
Hi list, i am trying to understand write sequence number and read sequence number. Setup is simple client server with tls v1.2. when i made write sequence number to 0 (ssl/t1_enc.c --> s->s2->write_sequence to 0). i commented out all increment operate on write_sequence number. But s->s2->read_