Commit 378c6697 authored by Herbert Xu's avatar Herbert Xu

[SUNRPC] GSS: Use block ciphers where applicable

This patch converts SUNRPC/GSS to use the new block cipher type where
applicable.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6b7326c8
...@@ -46,8 +46,8 @@ struct krb5_ctx { ...@@ -46,8 +46,8 @@ struct krb5_ctx {
unsigned char seed[16]; unsigned char seed[16];
int signalg; int signalg;
int sealalg; int sealalg;
struct crypto_tfm *enc; struct crypto_blkcipher *enc;
struct crypto_tfm *seq; struct crypto_blkcipher *seq;
s32 endtime; s32 endtime;
u32 seq_send; u32 seq_send;
struct xdr_netobj mech_used; struct xdr_netobj mech_used;
...@@ -136,26 +136,27 @@ gss_unwrap_kerberos(struct gss_ctx *ctx_id, int offset, ...@@ -136,26 +136,27 @@ gss_unwrap_kerberos(struct gss_ctx *ctx_id, int offset,
u32 u32
krb5_encrypt(struct crypto_tfm * key, krb5_encrypt(struct crypto_blkcipher *key,
void *iv, void *in, void *out, int length); void *iv, void *in, void *out, int length);
u32 u32
krb5_decrypt(struct crypto_tfm * key, krb5_decrypt(struct crypto_blkcipher *key,
void *iv, void *in, void *out, int length); void *iv, void *in, void *out, int length);
int int
gss_encrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *outbuf, int offset, gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *outbuf,
struct page **pages); int offset, struct page **pages);
int int
gss_decrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *inbuf, int offset); gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *inbuf,
int offset);
s32 s32
krb5_make_seq_num(struct crypto_tfm * key, krb5_make_seq_num(struct crypto_blkcipher *key,
int direction, int direction,
s32 seqnum, unsigned char *cksum, unsigned char *buf); s32 seqnum, unsigned char *cksum, unsigned char *buf);
s32 s32
krb5_get_seq_num(struct crypto_tfm * key, krb5_get_seq_num(struct crypto_blkcipher *key,
unsigned char *cksum, unsigned char *cksum,
unsigned char *buf, int *direction, s32 * seqnum); unsigned char *buf, int *direction, s32 * seqnum);
...@@ -19,9 +19,9 @@ struct spkm3_ctx { ...@@ -19,9 +19,9 @@ struct spkm3_ctx {
unsigned int req_flags ; unsigned int req_flags ;
struct xdr_netobj share_key; struct xdr_netobj share_key;
int conf_alg; int conf_alg;
struct crypto_tfm* derived_conf_key; struct crypto_blkcipher *derived_conf_key;
int intg_alg; int intg_alg;
struct crypto_tfm* derived_integ_key; struct crypto_blkcipher *derived_integ_key;
int keyestb_alg; /* alg used to get share_key */ int keyestb_alg; /* alg used to get share_key */
int owf_alg; /* one way function */ int owf_alg; /* one way function */
}; };
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
u32 u32
krb5_encrypt( krb5_encrypt(
struct crypto_tfm *tfm, struct crypto_blkcipher *tfm,
void * iv, void * iv,
void * in, void * in,
void * out, void * out,
...@@ -58,26 +58,27 @@ krb5_encrypt( ...@@ -58,26 +58,27 @@ krb5_encrypt(
u32 ret = -EINVAL; u32 ret = -EINVAL;
struct scatterlist sg[1]; struct scatterlist sg[1];
u8 local_iv[16] = {0}; u8 local_iv[16] = {0};
struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv };
dprintk("RPC: krb5_encrypt: input data:\n"); dprintk("RPC: krb5_encrypt: input data:\n");
print_hexl((u32 *)in, length, 0); print_hexl((u32 *)in, length, 0);
if (length % crypto_tfm_alg_blocksize(tfm) != 0) if (length % crypto_blkcipher_blocksize(tfm) != 0)
goto out; goto out;
if (crypto_tfm_alg_ivsize(tfm) > 16) { if (crypto_blkcipher_ivsize(tfm) > 16) {
dprintk("RPC: gss_k5encrypt: tfm iv size to large %d\n", dprintk("RPC: gss_k5encrypt: tfm iv size to large %d\n",
crypto_tfm_alg_ivsize(tfm)); crypto_blkcipher_ivsize(tfm));
goto out; goto out;
} }
if (iv) if (iv)
memcpy(local_iv, iv, crypto_tfm_alg_ivsize(tfm)); memcpy(local_iv, iv, crypto_blkcipher_ivsize(tfm));
memcpy(out, in, length); memcpy(out, in, length);
sg_set_buf(sg, out, length); sg_set_buf(sg, out, length);
ret = crypto_cipher_encrypt_iv(tfm, sg, sg, length, local_iv); ret = crypto_blkcipher_encrypt_iv(&desc, sg, sg, length);
dprintk("RPC: krb5_encrypt: output data:\n"); dprintk("RPC: krb5_encrypt: output data:\n");
print_hexl((u32 *)out, length, 0); print_hexl((u32 *)out, length, 0);
...@@ -90,7 +91,7 @@ EXPORT_SYMBOL(krb5_encrypt); ...@@ -90,7 +91,7 @@ EXPORT_SYMBOL(krb5_encrypt);
u32 u32
krb5_decrypt( krb5_decrypt(
struct crypto_tfm *tfm, struct crypto_blkcipher *tfm,
void * iv, void * iv,
void * in, void * in,
void * out, void * out,
...@@ -99,25 +100,26 @@ krb5_decrypt( ...@@ -99,25 +100,26 @@ krb5_decrypt(
u32 ret = -EINVAL; u32 ret = -EINVAL;
struct scatterlist sg[1]; struct scatterlist sg[1];
u8 local_iv[16] = {0}; u8 local_iv[16] = {0};
struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv };
dprintk("RPC: krb5_decrypt: input data:\n"); dprintk("RPC: krb5_decrypt: input data:\n");
print_hexl((u32 *)in, length, 0); print_hexl((u32 *)in, length, 0);
if (length % crypto_tfm_alg_blocksize(tfm) != 0) if (length % crypto_blkcipher_blocksize(tfm) != 0)
goto out; goto out;
if (crypto_tfm_alg_ivsize(tfm) > 16) { if (crypto_blkcipher_ivsize(tfm) > 16) {
dprintk("RPC: gss_k5decrypt: tfm iv size to large %d\n", dprintk("RPC: gss_k5decrypt: tfm iv size to large %d\n",
crypto_tfm_alg_ivsize(tfm)); crypto_blkcipher_ivsize(tfm));
goto out; goto out;
} }
if (iv) if (iv)
memcpy(local_iv,iv, crypto_tfm_alg_ivsize(tfm)); memcpy(local_iv,iv, crypto_blkcipher_ivsize(tfm));
memcpy(out, in, length); memcpy(out, in, length);
sg_set_buf(sg, out, length); sg_set_buf(sg, out, length);
ret = crypto_cipher_decrypt_iv(tfm, sg, sg, length, local_iv); ret = crypto_blkcipher_decrypt_iv(&desc, sg, sg, length);
dprintk("RPC: krb5_decrypt: output_data:\n"); dprintk("RPC: krb5_decrypt: output_data:\n");
print_hexl((u32 *)out, length, 0); print_hexl((u32 *)out, length, 0);
...@@ -240,7 +242,7 @@ EXPORT_SYMBOL(make_checksum); ...@@ -240,7 +242,7 @@ EXPORT_SYMBOL(make_checksum);
struct encryptor_desc { struct encryptor_desc {
u8 iv[8]; /* XXX hard-coded blocksize */ u8 iv[8]; /* XXX hard-coded blocksize */
struct crypto_tfm *tfm; struct blkcipher_desc desc;
int pos; int pos;
struct xdr_buf *outbuf; struct xdr_buf *outbuf;
struct page **pages; struct page **pages;
...@@ -285,8 +287,8 @@ encryptor(struct scatterlist *sg, void *data) ...@@ -285,8 +287,8 @@ encryptor(struct scatterlist *sg, void *data)
if (thislen == 0) if (thislen == 0)
return 0; return 0;
ret = crypto_cipher_encrypt_iv(desc->tfm, desc->outfrags, desc->infrags, ret = crypto_blkcipher_encrypt_iv(&desc->desc, desc->outfrags,
thislen, desc->iv); desc->infrags, thislen);
if (ret) if (ret)
return ret; return ret;
if (fraglen) { if (fraglen) {
...@@ -305,16 +307,18 @@ encryptor(struct scatterlist *sg, void *data) ...@@ -305,16 +307,18 @@ encryptor(struct scatterlist *sg, void *data)
} }
int int
gss_encrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *buf, int offset, gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf,
struct page **pages) int offset, struct page **pages)
{ {
int ret; int ret;
struct encryptor_desc desc; struct encryptor_desc desc;
BUG_ON((buf->len - offset) % crypto_tfm_alg_blocksize(tfm) != 0); BUG_ON((buf->len - offset) % crypto_blkcipher_blocksize(tfm) != 0);
memset(desc.iv, 0, sizeof(desc.iv)); memset(desc.iv, 0, sizeof(desc.iv));
desc.tfm = tfm; desc.desc.tfm = tfm;
desc.desc.info = desc.iv;
desc.desc.flags = 0;
desc.pos = offset; desc.pos = offset;
desc.outbuf = buf; desc.outbuf = buf;
desc.pages = pages; desc.pages = pages;
...@@ -329,7 +333,7 @@ EXPORT_SYMBOL(gss_encrypt_xdr_buf); ...@@ -329,7 +333,7 @@ EXPORT_SYMBOL(gss_encrypt_xdr_buf);
struct decryptor_desc { struct decryptor_desc {
u8 iv[8]; /* XXX hard-coded blocksize */ u8 iv[8]; /* XXX hard-coded blocksize */
struct crypto_tfm *tfm; struct blkcipher_desc desc;
struct scatterlist frags[4]; struct scatterlist frags[4];
int fragno; int fragno;
int fraglen; int fraglen;
...@@ -355,8 +359,8 @@ decryptor(struct scatterlist *sg, void *data) ...@@ -355,8 +359,8 @@ decryptor(struct scatterlist *sg, void *data)
if (thislen == 0) if (thislen == 0)
return 0; return 0;
ret = crypto_cipher_decrypt_iv(desc->tfm, desc->frags, desc->frags, ret = crypto_blkcipher_decrypt_iv(&desc->desc, desc->frags,
thislen, desc->iv); desc->frags, thislen);
if (ret) if (ret)
return ret; return ret;
if (fraglen) { if (fraglen) {
...@@ -373,15 +377,18 @@ decryptor(struct scatterlist *sg, void *data) ...@@ -373,15 +377,18 @@ decryptor(struct scatterlist *sg, void *data)
} }
int int
gss_decrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *buf, int offset) gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf,
int offset)
{ {
struct decryptor_desc desc; struct decryptor_desc desc;
/* XXXJBF: */ /* XXXJBF: */
BUG_ON((buf->len - offset) % crypto_tfm_alg_blocksize(tfm) != 0); BUG_ON((buf->len - offset) % crypto_blkcipher_blocksize(tfm) != 0);
memset(desc.iv, 0, sizeof(desc.iv)); memset(desc.iv, 0, sizeof(desc.iv));
desc.tfm = tfm; desc.desc.tfm = tfm;
desc.desc.info = desc.iv;
desc.desc.flags = 0;
desc.fragno = 0; desc.fragno = 0;
desc.fraglen = 0; desc.fraglen = 0;
return process_xdr_buf(buf, offset, buf->len - offset, decryptor, &desc); return process_xdr_buf(buf, offset, buf->len - offset, decryptor, &desc);
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
* *
*/ */
#include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/types.h> #include <linux/types.h>
...@@ -78,10 +79,10 @@ simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) ...@@ -78,10 +79,10 @@ simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res)
} }
static inline const void * static inline const void *
get_key(const void *p, const void *end, struct crypto_tfm **res) get_key(const void *p, const void *end, struct crypto_blkcipher **res)
{ {
struct xdr_netobj key; struct xdr_netobj key;
int alg, alg_mode; int alg;
char *alg_name; char *alg_name;
p = simple_get_bytes(p, end, &alg, sizeof(alg)); p = simple_get_bytes(p, end, &alg, sizeof(alg));
...@@ -93,18 +94,19 @@ get_key(const void *p, const void *end, struct crypto_tfm **res) ...@@ -93,18 +94,19 @@ get_key(const void *p, const void *end, struct crypto_tfm **res)
switch (alg) { switch (alg) {
case ENCTYPE_DES_CBC_RAW: case ENCTYPE_DES_CBC_RAW:
alg_name = "des"; alg_name = "cbc(des)";
alg_mode = CRYPTO_TFM_MODE_CBC;
break; break;
default: default:
printk("gss_kerberos_mech: unsupported algorithm %d\n", alg); printk("gss_kerberos_mech: unsupported algorithm %d\n", alg);
goto out_err_free_key; goto out_err_free_key;
} }
if (!(*res = crypto_alloc_tfm(alg_name, alg_mode))) { *res = crypto_alloc_blkcipher(alg_name, 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(*res)) {
printk("gss_kerberos_mech: unable to initialize crypto algorithm %s\n", alg_name); printk("gss_kerberos_mech: unable to initialize crypto algorithm %s\n", alg_name);
*res = NULL;
goto out_err_free_key; goto out_err_free_key;
} }
if (crypto_cipher_setkey(*res, key.data, key.len)) { if (crypto_blkcipher_setkey(*res, key.data, key.len)) {
printk("gss_kerberos_mech: error setting key for crypto algorithm %s\n", alg_name); printk("gss_kerberos_mech: error setting key for crypto algorithm %s\n", alg_name);
goto out_err_free_tfm; goto out_err_free_tfm;
} }
...@@ -113,7 +115,7 @@ get_key(const void *p, const void *end, struct crypto_tfm **res) ...@@ -113,7 +115,7 @@ get_key(const void *p, const void *end, struct crypto_tfm **res)
return p; return p;
out_err_free_tfm: out_err_free_tfm:
crypto_free_tfm(*res); crypto_free_blkcipher(*res);
out_err_free_key: out_err_free_key:
kfree(key.data); kfree(key.data);
p = ERR_PTR(-EINVAL); p = ERR_PTR(-EINVAL);
...@@ -172,9 +174,9 @@ gss_import_sec_context_kerberos(const void *p, ...@@ -172,9 +174,9 @@ gss_import_sec_context_kerberos(const void *p,
return 0; return 0;
out_err_free_key2: out_err_free_key2:
crypto_free_tfm(ctx->seq); crypto_free_blkcipher(ctx->seq);
out_err_free_key1: out_err_free_key1:
crypto_free_tfm(ctx->enc); crypto_free_blkcipher(ctx->enc);
out_err_free_mech: out_err_free_mech:
kfree(ctx->mech_used.data); kfree(ctx->mech_used.data);
out_err_free_ctx: out_err_free_ctx:
...@@ -187,8 +189,8 @@ static void ...@@ -187,8 +189,8 @@ static void
gss_delete_sec_context_kerberos(void *internal_ctx) { gss_delete_sec_context_kerberos(void *internal_ctx) {
struct krb5_ctx *kctx = internal_ctx; struct krb5_ctx *kctx = internal_ctx;
crypto_free_tfm(kctx->seq); crypto_free_blkcipher(kctx->seq);
crypto_free_tfm(kctx->enc); crypto_free_blkcipher(kctx->enc);
kfree(kctx->mech_used.data); kfree(kctx->mech_used.data);
kfree(kctx); kfree(kctx);
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#endif #endif
s32 s32
krb5_make_seq_num(struct crypto_tfm *key, krb5_make_seq_num(struct crypto_blkcipher *key,
int direction, int direction,
s32 seqnum, s32 seqnum,
unsigned char *cksum, unsigned char *buf) unsigned char *cksum, unsigned char *buf)
...@@ -62,7 +62,7 @@ krb5_make_seq_num(struct crypto_tfm *key, ...@@ -62,7 +62,7 @@ krb5_make_seq_num(struct crypto_tfm *key,
} }
s32 s32
krb5_get_seq_num(struct crypto_tfm *key, krb5_get_seq_num(struct crypto_blkcipher *key,
unsigned char *cksum, unsigned char *cksum,
unsigned char *buf, unsigned char *buf,
int *direction, s32 * seqnum) int *direction, s32 * seqnum)
......
...@@ -149,7 +149,7 @@ gss_wrap_kerberos(struct gss_ctx *ctx, int offset, ...@@ -149,7 +149,7 @@ gss_wrap_kerberos(struct gss_ctx *ctx, int offset,
goto out_err; goto out_err;
} }
blocksize = crypto_tfm_alg_blocksize(kctx->enc); blocksize = crypto_blkcipher_blocksize(kctx->enc);
gss_krb5_add_padding(buf, offset, blocksize); gss_krb5_add_padding(buf, offset, blocksize);
BUG_ON((buf->len - offset) % blocksize); BUG_ON((buf->len - offset) % blocksize);
plainlen = blocksize + buf->len - offset; plainlen = blocksize + buf->len - offset;
...@@ -346,7 +346,7 @@ gss_unwrap_kerberos(struct gss_ctx *ctx, int offset, struct xdr_buf *buf) ...@@ -346,7 +346,7 @@ gss_unwrap_kerberos(struct gss_ctx *ctx, int offset, struct xdr_buf *buf)
/* Copy the data back to the right position. XXX: Would probably be /* Copy the data back to the right position. XXX: Would probably be
* better to copy and encrypt at the same time. */ * better to copy and encrypt at the same time. */
blocksize = crypto_tfm_alg_blocksize(kctx->enc); blocksize = crypto_blkcipher_blocksize(kctx->enc);
data_start = ptr + 22 + blocksize; data_start = ptr + 22 + blocksize;
orig_start = buf->head[0].iov_base + offset; orig_start = buf->head[0].iov_base + offset;
data_len = (buf->head[0].iov_base + buf->head[0].iov_len) - data_start; data_len = (buf->head[0].iov_base + buf->head[0].iov_len) - data_start;
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
* *
*/ */
#include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/types.h> #include <linux/types.h>
...@@ -83,10 +84,11 @@ simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res) ...@@ -83,10 +84,11 @@ simple_get_netobj(const void *p, const void *end, struct xdr_netobj *res)
} }
static inline const void * static inline const void *
get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg) get_key(const void *p, const void *end, struct crypto_blkcipher **res,
int *resalg)
{ {
struct xdr_netobj key = { 0 }; struct xdr_netobj key = { 0 };
int alg_mode,setkey = 0; int setkey = 0;
char *alg_name; char *alg_name;
p = simple_get_bytes(p, end, resalg, sizeof(*resalg)); p = simple_get_bytes(p, end, resalg, sizeof(*resalg));
...@@ -98,14 +100,12 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg) ...@@ -98,14 +100,12 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg)
switch (*resalg) { switch (*resalg) {
case NID_des_cbc: case NID_des_cbc:
alg_name = "des"; alg_name = "cbc(des)";
alg_mode = CRYPTO_TFM_MODE_CBC;
setkey = 1; setkey = 1;
break; break;
case NID_cast5_cbc: case NID_cast5_cbc:
/* XXXX here in name only, not used */ /* XXXX here in name only, not used */
alg_name = "cast5"; alg_name = "cbc(cast5)";
alg_mode = CRYPTO_TFM_MODE_CBC;
setkey = 0; /* XXX will need to set to 1 */ setkey = 0; /* XXX will need to set to 1 */
break; break;
case NID_md5: case NID_md5:
...@@ -113,19 +113,20 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg) ...@@ -113,19 +113,20 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg)
dprintk("RPC: SPKM3 get_key: NID_md5 zero Key length\n"); dprintk("RPC: SPKM3 get_key: NID_md5 zero Key length\n");
} }
alg_name = "md5"; alg_name = "md5";
alg_mode = 0;
setkey = 0; setkey = 0;
break; break;
default: default:
dprintk("gss_spkm3_mech: unsupported algorithm %d\n", *resalg); dprintk("gss_spkm3_mech: unsupported algorithm %d\n", *resalg);
goto out_err_free_key; goto out_err_free_key;
} }
if (!(*res = crypto_alloc_tfm(alg_name, alg_mode))) { *res = crypto_alloc_blkcipher(alg_name, 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(*res)) {
printk("gss_spkm3_mech: unable to initialize crypto algorthm %s\n", alg_name); printk("gss_spkm3_mech: unable to initialize crypto algorthm %s\n", alg_name);
*res = NULL;
goto out_err_free_key; goto out_err_free_key;
} }
if (setkey) { if (setkey) {
if (crypto_cipher_setkey(*res, key.data, key.len)) { if (crypto_blkcipher_setkey(*res, key.data, key.len)) {
printk("gss_spkm3_mech: error setting key for crypto algorthm %s\n", alg_name); printk("gss_spkm3_mech: error setting key for crypto algorthm %s\n", alg_name);
goto out_err_free_tfm; goto out_err_free_tfm;
} }
...@@ -136,7 +137,7 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg) ...@@ -136,7 +137,7 @@ get_key(const void *p, const void *end, struct crypto_tfm **res, int *resalg)
return p; return p;
out_err_free_tfm: out_err_free_tfm:
crypto_free_tfm(*res); crypto_free_blkcipher(*res);
out_err_free_key: out_err_free_key:
if(key.len > 0) if(key.len > 0)
kfree(key.data); kfree(key.data);
...@@ -204,9 +205,9 @@ gss_import_sec_context_spkm3(const void *p, size_t len, ...@@ -204,9 +205,9 @@ gss_import_sec_context_spkm3(const void *p, size_t len,
return 0; return 0;
out_err_free_key2: out_err_free_key2:
crypto_free_tfm(ctx->derived_integ_key); crypto_free_blkcipher(ctx->derived_integ_key);
out_err_free_key1: out_err_free_key1:
crypto_free_tfm(ctx->derived_conf_key); crypto_free_blkcipher(ctx->derived_conf_key);
out_err_free_s_key: out_err_free_s_key:
kfree(ctx->share_key.data); kfree(ctx->share_key.data);
out_err_free_mech: out_err_free_mech:
...@@ -223,8 +224,8 @@ static void ...@@ -223,8 +224,8 @@ static void
gss_delete_sec_context_spkm3(void *internal_ctx) { gss_delete_sec_context_spkm3(void *internal_ctx) {
struct spkm3_ctx *sctx = internal_ctx; struct spkm3_ctx *sctx = internal_ctx;
crypto_free_tfm(sctx->derived_integ_key); crypto_free_blkcipher(sctx->derived_integ_key);
crypto_free_tfm(sctx->derived_conf_key); crypto_free_blkcipher(sctx->derived_conf_key);
kfree(sctx->share_key.data); kfree(sctx->share_key.data);
kfree(sctx->mech_used.data); kfree(sctx->mech_used.data);
kfree(sctx); kfree(sctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment