SAE: Store commit scalars as bignum instead of octet string

This avoids unnecessary bignum initialization steps during the SAE
exchange.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-01-06 16:57:53 +02:00
parent 4df61ba5b9
commit b0f6124c1c
4 changed files with 104 additions and 100 deletions

View file

@ -1000,6 +1000,12 @@ int crypto_bignum_bits(const struct crypto_bignum *a)
}
int crypto_bignum_is_zero(const struct crypto_bignum *a)
{
return BN_is_zero((const BIGNUM *) a);
}
#ifdef CONFIG_ECC
struct crypto_ec {