Deleted Added
full compact
cipher-ctr.c (248619) cipher-ctr.c (255767)
1/* $OpenBSD: cipher-ctr.c,v 1.11 2010/10/01 23:05:32 djm Exp $ */
2/*
3 * Copyright (c) 2003 Markus Friedl <markus@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 90 unchanged lines hidden (view full) ---

99
100static int
101ssh_aes_ctr_cleanup(EVP_CIPHER_CTX *ctx)
102{
103 struct ssh_aes_ctr_ctx *c;
104
105 if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) {
106 memset(c, 0, sizeof(*c));
1/* $OpenBSD: cipher-ctr.c,v 1.11 2010/10/01 23:05:32 djm Exp $ */
2/*
3 * Copyright (c) 2003 Markus Friedl <markus@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 90 unchanged lines hidden (view full) ---

99
100static int
101ssh_aes_ctr_cleanup(EVP_CIPHER_CTX *ctx)
102{
103 struct ssh_aes_ctr_ctx *c;
104
105 if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) {
106 memset(c, 0, sizeof(*c));
107 xfree(c);
107 free(c);
108 EVP_CIPHER_CTX_set_app_data(ctx, NULL);
109 }
110 return (1);
111}
112
113void
114ssh_aes_ctr_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, size_t len)
115{

--- 31 unchanged lines hidden ---
108 EVP_CIPHER_CTX_set_app_data(ctx, NULL);
109 }
110 return (1);
111}
112
113void
114ssh_aes_ctr_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, size_t len)
115{

--- 31 unchanged lines hidden ---