mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-21 04:14:01 -05:00
6c9543fcb7
Use a shared helper function to create random qr/qnr values. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
21 lines
521 B
C
21 lines
521 B
C
/*
|
|
* Shared Dragonfly functionality
|
|
* Copyright (c) 2012-2016, Jouni Malinen <j@w1.fi>
|
|
* Copyright (c) 2019, The Linux Foundation
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef DRAGONFLY_H
|
|
#define DRAGONFLY_H
|
|
|
|
struct crypto_bignum;
|
|
|
|
int dragonfly_suitable_group(int group, int ecc_only);
|
|
int dragonfly_get_random_qr_qnr(const struct crypto_bignum *prime,
|
|
struct crypto_bignum **qr,
|
|
struct crypto_bignum **qnr);
|
|
|
|
#endif /* DRAGONFLY_H */
|