Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
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-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/
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()
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-3.20.0/core/lib/libtomcrypt/
A Ded25519.c94 const uint8_t *ctx, size_t ctxlen) in crypto_acipher_ed25519ctx_sign() argument
113 ctx, ctxlen, &private_key); in crypto_acipher_ed25519ctx_sign()
116 ctx, ctxlen, &private_key); in crypto_acipher_ed25519ctx_sign()
156 const uint8_t *ctx, size_t ctxlen) in crypto_acipher_ed25519ctx_verify() argument
170 if (ed25519ph_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
174 if (ed25519ctx_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h363 const unsigned char *ctx, unsigned long ctxlen,
367 const unsigned char *ctx, unsigned long ctxlen,
375 const unsigned char *ctx, unsigned long ctxlen,
380 const unsigned char *ctx, unsigned long ctxlen,
A Dtomcrypt_private.h389 const unsigned char *ctx, unsigned long ctxlen);
/optee_os-3.20.0/core/include/crypto/
A Dcrypto.h230 const uint8_t *ctx, size_t ctxlen);
238 const uint8_t *ctx, size_t ctxlen);
/optee_os-3.20.0/core/crypto/
A Dcrypto.c870 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_sign()
883 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_verify()

Completed in 16 milliseconds