mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
5c87c6a435
--HG-- branch : ecc
16 lines
492 B
C
16 lines
492 B
C
#ifndef _ECDSA_H_
|
|
#define _ECDSA_H_
|
|
|
|
#include "includes.h"
|
|
#include "buffer.h"
|
|
|
|
ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);
|
|
ecc_key *buf_get_ecdsa_pub_key(buffer* buf);
|
|
ecc_key *buf_get_ecdsa_priv_key(buffer *buf);
|
|
void buf_put_ecdsa_pub_key(buffer *buf, ecc_key *key);
|
|
void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key);
|
|
|
|
void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf);
|
|
int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf);
|
|
|
|
#endif // _ECDSA_H_
|