12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef _CRYPTO_ECDH_
- #define _CRYPTO_ECDH_
- #define ECC_CURVE_NIST_P192 0x0001
- #define ECC_CURVE_NIST_P256 0x0002
- #define ECC_CURVE_NIST_P384 0x0003
- struct ecdh {
- char *key;
- unsigned short key_size;
- };
- unsigned int crypto_ecdh_key_len(const struct ecdh *params);
- int crypto_ecdh_encode_key(char *buf, unsigned int len, const struct ecdh *p);
- int crypto_ecdh_decode_key(const char *buf, unsigned int len, struct ecdh *p);
- #endif
|