Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed typo in the source code: s/3des/aes/g; thanks Edgar Liu for rep…

…orting this.
  • Loading branch information...
commit 96a4646c39799c1dac110279738260823b88e72a 1 parent 3a17062
@agentzh agentzh authored
View
8 src/ngx_http_encrypted_session_cipher.c
@@ -12,7 +12,7 @@ static inline uint64_t ngx_http_encrypted_session_htonll(uint64_t n);
ngx_int_t
-ngx_http_encrypted_session_3des_mac_encrypt(ngx_pool_t *pool, ngx_log_t *log,
+ngx_http_encrypted_session_aes_mac_encrypt(ngx_pool_t *pool, ngx_log_t *log,
const u_char *iv, size_t iv_len, const u_char *key,
size_t key_len, const u_char *in, size_t in_len,
ngx_uint_t expires, u_char **dst, size_t *dst_len)
@@ -105,7 +105,7 @@ ngx_http_encrypted_session_3des_mac_encrypt(ngx_pool_t *pool, ngx_log_t *log,
if (*dst_len > buf_size) {
ngx_log_error(NGX_LOG_ERR, log, 0,
- "encrypted_session: 3des_mac_encrypt: buffer error");
+ "encrypted_session: aes_mac_encrypt: buffer error");
return NGX_ERROR;
}
@@ -121,7 +121,7 @@ ngx_http_encrypted_session_3des_mac_encrypt(ngx_pool_t *pool, ngx_log_t *log,
ngx_int_t
-ngx_http_encrypted_session_3des_mac_decrypt(ngx_pool_t *pool, ngx_log_t *log,
+ngx_http_encrypted_session_aes_mac_decrypt(ngx_pool_t *pool, ngx_log_t *log,
const u_char *iv, size_t iv_len, const u_char *key,
size_t key_len, const u_char *in, size_t in_len, u_char **dst,
size_t *dst_len)
@@ -198,7 +198,7 @@ ngx_http_encrypted_session_3des_mac_decrypt(ngx_pool_t *pool, ngx_log_t *log,
if (*dst_len > buf_size) {
ngx_log_error(NGX_LOG_ERR, log, 0,
- "encrypted_session: 3des_mac_decrypt: buffer error");
+ "encrypted_session: aes_mac_decrypt: buffer error");
return NGX_ERROR;
}
View
4 src/ngx_http_encrypted_session_cipher.h
@@ -13,12 +13,12 @@ enum {
};
-ngx_int_t ngx_http_encrypted_session_3des_mac_encrypt(ngx_pool_t *pool,
+ngx_int_t ngx_http_encrypted_session_aes_mac_encrypt(ngx_pool_t *pool,
ngx_log_t *log, const u_char *iv, size_t iv_len, const u_char *key,
size_t key_len, const u_char *in, size_t in_len,
ngx_uint_t expires, u_char **dst, size_t *dst_len);
-ngx_int_t ngx_http_encrypted_session_3des_mac_decrypt(ngx_pool_t *pool,
+ngx_int_t ngx_http_encrypted_session_aes_mac_decrypt(ngx_pool_t *pool,
ngx_log_t *log, const u_char *iv, size_t iv_len, const u_char *key,
size_t key_len, const u_char *in, size_t in_len, u_char **dst,
size_t *dst_len);
View
4 src/ngx_http_encrypted_session_module.c
@@ -157,7 +157,7 @@ ngx_http_set_encode_encrypted_session(ngx_http_request_t *r,
return NGX_ERROR;
}
- rc = ngx_http_encrypted_session_3des_mac_encrypt(r->pool,
+ rc = ngx_http_encrypted_session_aes_mac_encrypt(r->pool,
r->connection->log, conf->iv, ngx_http_encrypted_session_iv_length,
conf->key, ngx_http_encrypted_session_key_length,
v->data, v->len, conf->expires, &dst, &len);
@@ -197,7 +197,7 @@ ngx_http_set_decode_encrypted_session(ngx_http_request_t *r,
return NGX_ERROR;
}
- rc = ngx_http_encrypted_session_3des_mac_decrypt(r->pool,
+ rc = ngx_http_encrypted_session_aes_mac_decrypt(r->pool,
r->connection->log, conf->iv, ngx_http_encrypted_session_iv_length,
conf->key, ngx_http_encrypted_session_key_length,
v->data, v->len, &dst, &len);
Please sign in to comment.
Something went wrong with that request. Please try again.