1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #include "includes.h"
- #include "dbutil.h"
- #include "dbrandom.h"
- #include "curve25519.h"
- #include "gened25519.h"
- #if DROPBEAR_ED25519
- dropbear_ed25519_key * gen_ed25519_priv_key(unsigned int size) {
- dropbear_ed25519_key *key;
- if (size != 256) {
- dropbear_exit("Ed25519 keys have a fixed size of 256 bits");
- }
- key = m_malloc(sizeof(*key));
- dropbear_ed25519_make_key(key->pub, key->priv);
- return key;
- }
- #endif
|