diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-14 12:32:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-14 12:32:28 -0800 |
commit | f791ede32a14151a313783e1105049a137bc13c8 (patch) | |
tree | 1fa82deb9727c58072caa8c1cb4b78d5cc4e28e3 /arch/arm | |
parent | 103a022d6bc5962947f36414ac5c5d4d3d3aaea3 (diff) | |
parent | 84faa307249b341f6ad8de3e1869d77a65e26669 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu:
"Fix another build problem for Wireguard without Crypto"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: arm/curve25519 - add arch-specific key generation function
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/crypto/curve25519-glue.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/crypto/curve25519-glue.c b/arch/arm/crypto/curve25519-glue.c index f3f42cf3b893..776ae07e0469 100644 --- a/arch/arm/crypto/curve25519-glue.c +++ b/arch/arm/crypto/curve25519-glue.c @@ -38,6 +38,13 @@ void curve25519_arch(u8 out[CURVE25519_KEY_SIZE], } EXPORT_SYMBOL(curve25519_arch); +void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], + const u8 secret[CURVE25519_KEY_SIZE]) +{ + return curve25519_arch(pub, secret, curve25519_base_point); +} +EXPORT_SYMBOL(curve25519_base_arch); + static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, unsigned int len) { |