diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2010-06-15 18:24:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-16 12:14:19 +0200 |
commit | 87e8dbad0ea89d6b95542cd380f27015c2cc9dea (patch) | |
tree | 68b7899985a82d44267074f90caf8339335a0960 /cryptodev_main.c | |
parent | 3f9fef758f04527c063156ed039f61ac575bf379 (diff) | |
download | cryptodev-linux-87e8dbad0ea89d6b95542cd380f27015c2cc9dea.tar.gz cryptodev-linux-87e8dbad0ea89d6b95542cd380f27015c2cc9dea.tar.xz cryptodev-linux-87e8dbad0ea89d6b95542cd380f27015c2cc9dea.zip |
whitespace cleanup
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r-- | cryptodev_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c index f5a2635..d462a08 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -200,7 +200,7 @@ crypto_create_session(struct fcrypt *fcr, struct session_op *sop) goto error; } } - + if (hash_name) { ret = cryptodev_hash_init(&ses_new->hdata, hash_name, hmac_mode, sop->mackey, sop->mackeylen); if (ret != 0) { @@ -370,7 +370,7 @@ crypto_run(struct fcrypt *fcr, struct crypt_op *cop) bufsize = PAGE_SIZE < nbytes ? PAGE_SIZE : nbytes; nbytes = cop->len; - + if (ses_ptr->hdata.init != 0) { ret = cryptodev_hash_reset(&ses_ptr->hdata); if (unlikely(ret)) { @@ -455,7 +455,7 @@ crypto_run(struct fcrypt *fcr, struct crypt_op *cop) nbytes -= current_len; src += current_len; } - + if (ses_ptr->hdata.init != 0) { ret = cryptodev_hash_final(&ses_ptr->hdata, hash_output); if (unlikely(ret)) { @@ -514,7 +514,7 @@ cryptodev_release(struct inode *inode, struct file *filp) kfree(fcr); filp->private_data = NULL; } - + return 0; } @@ -555,7 +555,7 @@ cryptodev_ioctl(struct inode *inode, struct file *filp, fd = clonefd(filp); put_user(fd, p); return 0; - + case CIOCGSESSION: copy_from_user(&sop, (void*)arg, sizeof(sop)); ret = crypto_create_session(fcr, &sop); @@ -713,7 +713,7 @@ cryptodev_deregister(void) int __init init_cryptodev(void) { int rc; - + rc = cryptodev_register(); if (unlikely(rc)) return rc; |