A D | tweetnacl.c | 383 int tweetnacl_crypto_sign(u8 *sm,u64 *smlen,const u8 *m,u64 mlen,const u8 *sk,const u8 *pk, const u… in tweetnacl_crypto_sign() argument 395 FOR(i,(i64)mlen) sm[64 + i] = m[i]; in tweetnacl_crypto_sign() 396 FOR(i,32) sm[32 + i] = d[32 + i]; in tweetnacl_crypto_sign() 398 tweetnacl_crypto_hash_ctx(r, sm+32, mlen+32,ctx,cs); in tweetnacl_crypto_sign() 401 pack(sm,p); in tweetnacl_crypto_sign() 403 FOR(i,32) sm[i+32] = pk[i]; in tweetnacl_crypto_sign() 404 tweetnacl_crypto_hash_ctx(h,sm,mlen + 64,ctx,cs); in tweetnacl_crypto_sign() 410 modL(sm + 32,x); in tweetnacl_crypto_sign() 451 int tweetnacl_crypto_sign_open(int *stat, u8 *m,u64 *mlen,const u8 *sm,u64 smlen,const u8 *ctx,u64 … in tweetnacl_crypto_sign_open() argument 464 XMEMMOVE(m,sm,smlen); in tweetnacl_crypto_sign_open() [all …]
|