/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/ |
A D | ec25519_crypto_ctx.c | 12 …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 D | ed25519_sign.c | 14 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 D | ed25519_verify.c | 14 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 D | ed25519.c | 94 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 D | tomcrypt_pk.h | 363 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 D | tomcrypt_private.h | 389 const unsigned char *ctx, unsigned long ctxlen);
|
/optee_os-3.20.0/core/include/crypto/ |
A D | crypto.h | 230 const uint8_t *ctx, size_t ctxlen); 238 const uint8_t *ctx, size_t ctxlen);
|
/optee_os-3.20.0/core/crypto/ |
A D | crypto.c | 870 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_sign() 883 size_t ctxlen __unused) in crypto_acipher_ed25519ctx_verify()
|