Home
last modified time | relevance | path

Searched refs:ctxlen (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dec25519_crypto_ctx.c12 …ar *out, unsigned long *outlen, unsigned char flag, const unsigned char *ctx, unsigned long ctxlen) in ec25519_crypto_ctx() argument
18 const unsigned char ctxlen8 = (unsigned char)ctxlen; in ec25519_crypto_ctx()
20 if (ctxlen > 255u) return CRYPT_INPUT_TOO_LONG; in ec25519_crypto_ctx()
21 if (*outlen < prefix_len + 2u + ctxlen) return CRYPT_BUFFER_OVERFLOW; in ec25519_crypto_ctx()
30 if (ctxlen > 0u) { in ec25519_crypto_ctx()
32 XMEMCPY(buf, ctx, ctxlen); in ec25519_crypto_ctx()
33 buf += ctxlen; in ec25519_crypto_ctx()
/optee_os/core/lib/libtomcrypt/src/pk/ed25519/
H A Ded25519_sign.c14 const unsigned char *ctx, unsigned long ctxlen, in s_ed25519_sign() argument
41 ctx, ctxlen); in s_ed25519_sign()
66 const unsigned char *ctx, unsigned long ctxlen, in ed25519ctx_sign() argument
75 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 0, ctx, ctxlen)) != CRYPT_OK) in ed25519ctx_sign()
93 const unsigned char *ctx, unsigned long ctxlen, in ed25519ph_sign() argument
101 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 1, ctx, ctxlen)) != CRYPT_OK) in ed25519ph_sign()
H A Ded25519_verify.c14 const unsigned char *ctx, unsigned long ctxlen, in s_ed25519_verify() argument
44 ctx, ctxlen, in s_ed25519_verify()
69 const unsigned char *ctx, unsigned long ctxlen, in ed25519ctx_verify() argument
78 if (ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 0, ctx, ctxlen) != CRYPT_OK) in ed25519ctx_verify()
98 const unsigned char *ctx, unsigned long ctxlen, in ed25519ph_verify() argument
107 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 1, ctx, ctxlen)) != CRYPT_OK) in ed25519ph_verify()
/optee_os/core/lib/libtomcrypt/
H A Ded25519.c116 const uint8_t *ctx, size_t ctxlen) in crypto_acipher_ed25519ctx_sign() argument
140 ctx, ctxlen, &private_key); in crypto_acipher_ed25519ctx_sign()
143 ctx, ctxlen, &private_key); in crypto_acipher_ed25519ctx_sign()
183 const uint8_t *ctx, size_t ctxlen) in crypto_acipher_ed25519ctx_verify() argument
197 if (ed25519ph_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
201 if (ed25519ctx_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_pk.h365 const unsigned char *ctx, unsigned long ctxlen,
369 const unsigned char *ctx, unsigned long ctxlen,
377 const unsigned char *ctx, unsigned long ctxlen,
382 const unsigned char *ctx, unsigned long ctxlen,
H A Dtomcrypt_private.h414 const unsigned char *ctx, unsigned long ctxlen);
/optee_os/core/include/crypto/
H A Dcrypto.h242 const uint8_t *ctx, size_t ctxlen);
250 const uint8_t *ctx, size_t ctxlen);
/optee_os/core/crypto/
H A Dcrypto.c935 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_sign()
948 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_verify()