Searched refs:smlen (Results 1 – 3 of 3) sorted by relevance
| /optee_os/core/lib/libtomcrypt/src/pk/ed25519/ |
| H A D | ed25519_sign.c | 18 unsigned long long smlen; in s_ed25519_sign() local 34 smlen = msglen + 64; in s_ed25519_sign() 35 s = XMALLOC(smlen); in s_ed25519_sign() 38 err = tweetnacl_crypto_sign(s, &smlen, in s_ed25519_sign() 47 zeromem(s, smlen); in s_ed25519_sign()
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 384 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 *smlen = mlen+64; in tweetnacl_crypto_sign() 452 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 459 if (*mlen < smlen) return CRYPT_BUFFER_OVERFLOW; in tweetnacl_crypto_sign_open() 461 if (smlen < 64) return CRYPT_INVALID_ARG; in tweetnacl_crypto_sign_open() 465 XMEMMOVE(m,sm,smlen); in tweetnacl_crypto_sign_open() 468 tweetnacl_crypto_hash_ctx(h,m,smlen,ctx,cs); in tweetnacl_crypto_sign_open() 476 smlen -= 64; in tweetnacl_crypto_sign_open() 478 FOR(i,smlen) m[i] = 0; in tweetnacl_crypto_sign_open() 479 zeromem(m, smlen); in tweetnacl_crypto_sign_open() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_private.h | 388 unsigned char *sm,unsigned long long *smlen, 395 const unsigned char *sm,unsigned long long smlen,
|