nettle  3.7.3
About: Nettle is a low-level cryptographic library.
  Fossies Dox: nettle-3.7.3.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

eddsa-sign.c File Reference
#include <assert.h>
#include "eddsa.h"
#include "eddsa-internal.h"
#include "ecc.h"
#include "ecc-internal.h"
#include "nettle-meta.h"
Include dependency graph for eddsa-sign.c:

Go to the source code of this file.


#define rp   scratch
#define hp   (scratch + size)
#define P   (scratch + 2*size)
#define sp   (scratch + 2*size)
#define hash   ((uint8_t *) (scratch + 3*size))
#define scratch_out   (scratch + 5*size)


mp_size_t _nettle_eddsa_sign_itch (const struct ecc_curve *ecc)
void _nettle_eddsa_sign (const struct ecc_curve *ecc, const struct ecc_eddsa *eddsa, void *ctx, const uint8_t *pub, const uint8_t *k1, const mp_limb_t *k2, size_t length, const uint8_t *msg, uint8_t *signature, mp_limb_t *scratch)

Macro Definition Documentation

◆ hash

#define hash   ((uint8_t *) (scratch + 3*size))

◆ hp

#define hp   (scratch + size)

◆ P

#define P   (scratch + 2*size)

◆ rp

#define rp   scratch

◆ scratch_out

#define scratch_out   (scratch + 5*size)

◆ sp

#define sp   (scratch + 2*size)

Function Documentation

◆ _nettle_eddsa_sign()

void _nettle_eddsa_sign ( const struct ecc_curve ecc,
const struct ecc_eddsa eddsa,
void *  ctx,
const uint8_t *  pub,
const uint8_t *  k1,
const mp_limb_t k2,
size_t  length,
const uint8_t *  msg,
uint8_t *  signature,
mp_limb_t scratch 

◆ _nettle_eddsa_sign_itch()

mp_size_t _nettle_eddsa_sign_itch ( const struct ecc_curve ecc)