linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ivo van Doorn <ivdoorn@gmail.com>
To: Mark Hagger <mark.hagger@m-spatial.com>
Cc: Michael Buesch <mb@bu3sch.de>,
	John Linville <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org, bcm43xx-dev@lists.berlios.de
Subject: Re: [PATCH] b43: Enable quantum cryptography support
Date: Tue, 1 Apr 2008 16:56:13 +0200	[thread overview]
Message-ID: <200804011656.15040.IvDoorn@gmail.com> (raw)
In-Reply-To: <1207061419.2879.298.camel@giga.cambridge.m-spatial.com>

On Tuesday 01 April 2008, Mark Hagger wrote:
> Excellent, did you manage to implement the time travel support mode as
> well?

Most likely not, that only works on Ralink hardware, and rt2x00 will
support that with the 2.2.0 release.

Ivo

> On Tue, 2008-04-01 at 16:13 +0200, Michael Buesch wrote:
> > This patch enables support for quantum cryptography on latest b43 devices.
> > The quantum cryptography algorithm is 100% backward compatible with the
> > standard CCMP algorithm, so no additional changes to the mac80211 stack
> > are needed. While staying compatible, it makes the unbreakable(!) WLAN connection
> > possible. Of course, that's only the case, if both ends use b43-qcrypto.
> > In the case where one STA uses legacy encryption, the card will automatically
> > detect this and switch back to plain old CCMP.
> > 
> > Signed-off-by: Michael Buesch <mb@bu3sch.de>
> > 
> > ---
> > 
> > John, please queue this patch for linux-3.6.26
> > 
> > 
> > Index: wireless-testing/drivers/net/wireless/b43/b43.h
> > ===================================================================
> > --- wireless-testing.orig/drivers/net/wireless/b43/b43.h	2008-03-22 15:44:00.000000000 +0100
> > +++ wireless-testing/drivers/net/wireless/b43/b43.h	2008-04-01 15:53:40.000000000 +0200
> > @@ -270,6 +270,7 @@ enum {
> >  #define B43_HF_ANTSELMODE	0x000200000000ULL /* Antenna selection mode (rev >= 13 only) */
> >  #define B43_HF_MLADVW		0x001000000000ULL /* N PHY ML ADV workaround (rev >= 13 only) */
> >  #define B43_HF_PR45960W		0x080000000000ULL /* PR 45960 workaround (rev >= 13 only) */
> > +#define B43_HF_QUANTUMCRYPT	0x100000000000ULL /* Enable quantum cryptography in firmware. */
> >  
> >  /* MacFilter offsets. */
> >  #define B43_MACFILTER_SELF		0x0000
> > @@ -439,6 +440,7 @@ enum {
> >  	B43_SEC_ALGO_AES,
> >  	B43_SEC_ALGO_WEP104,
> >  	B43_SEC_ALGO_AES_LEGACY,
> > +	B43_SEC_ALGO_QUANTUM,
> >  };
> >  
> >  struct b43_dmaring;
> > Index: wireless-testing/drivers/net/wireless/b43/main.c
> > ===================================================================
> > --- wireless-testing.orig/drivers/net/wireless/b43/main.c	2008-03-27 17:11:38.000000000 +0100
> > +++ wireless-testing/drivers/net/wireless/b43/main.c	2008-04-01 15:53:41.000000000 +0200
> > @@ -3215,6 +3215,13 @@ static int b43_op_set_key(struct ieee802
> >  		break;
> >  	case ALG_CCMP:
> >  		algorithm = B43_SEC_ALGO_AES;
> > +		if (dev->dev->id.revision >= 20080401) {
> > +			/* Latest devices can do quantum cryptography
> > +			 * to encrypt/decrypt the data stream.
> > +			 * This is 100% backward compatible with the traditional
> > +			 * CCMP algorithm. */
> > +			algorithm = B43_SEC_ALGO_QUANTUM;
> > +		}
> >  		break;
> >  	default:
> >  		B43_WARN_ON(1);
> > @@ -3254,6 +3261,10 @@ static int b43_op_set_key(struct ieee802
> >  			b43_hf_write(dev,
> >  				     b43_hf_read(dev) & ~B43_HF_USEDEFKEYS);
> >  		}
> > +		if (algorithm == B43_SEC_ALGO_QUANTUM) {
> > +			b43_hf_write(dev, b43_hf_read(dev)
> > +				     | B43_HF_QUANTUMCRYPT);
> > +		}
> >  		key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
> >  		break;
> >  	case DISABLE_KEY: {
> > 
> 
> 
> ________________________________________________________________________
> This email has been scanned for all known viruses by the MessageLabs SkyScan service.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



  reply	other threads:[~2008-04-01 14:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 14:13 [PATCH] b43: Enable quantum cryptography support Michael Buesch
2008-04-01 14:50 ` Mark Hagger
2008-04-01 14:56   ` Ivo van Doorn [this message]
2008-04-01 15:14   ` Michael Buesch
2008-04-01 17:34 ` gavron
2008-04-01 17:48   ` Stefanik Gábor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200804011656.15040.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --cc=bcm43xx-dev@lists.berlios.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mark.hagger@m-spatial.com \
    --cc=mb@bu3sch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).