Home
last modified time | relevance | path

Searched refs:ctx_prefix (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/
A Ded25519_sign.c70 unsigned char ctx_prefix[292]; in ed25519ctx_sign() local
71 unsigned long ctx_prefix_size = sizeof(ctx_prefix); in ed25519ctx_sign()
75 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 0, ctx, ctxlen)) != CRYPT_OK) in ed25519ctx_sign()
78 return s_ed25519_sign(msg, msglen, sig, siglen, ctx_prefix, ctx_prefix_size, private_key); in ed25519ctx_sign()
98 unsigned char ctx_prefix[292]; in ed25519ph_sign() local
99 unsigned long ctx_prefix_size = sizeof(ctx_prefix); in ed25519ph_sign()
101 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 1, ctx, ctxlen)) != CRYPT_OK) in ed25519ph_sign()
107 …return s_ed25519_sign(msg_hash, sizeof(msg_hash), sig, siglen, ctx_prefix, ctx_prefix_size, privat… in ed25519ph_sign()
A Ded25519_verify.c73 unsigned char ctx_prefix[292]; in ed25519ctx_verify() local
74 unsigned long ctx_prefix_size = sizeof(ctx_prefix); in ed25519ctx_verify()
78 if (ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 0, ctx, ctxlen) != CRYPT_OK) in ed25519ctx_verify()
81 return s_ed25519_verify(msg, msglen, sig, siglen, ctx_prefix, ctx_prefix_size, stat, public_key); in ed25519ctx_verify()
104 unsigned char ctx_prefix[292]; in ed25519ph_verify() local
105 unsigned long ctx_prefix_size = sizeof(ctx_prefix); in ed25519ph_verify()
107 if ((err = ec25519_crypto_ctx(ctx_prefix, &ctx_prefix_size, 1, ctx, ctxlen)) != CRYPT_OK) in ed25519ph_verify()
113 …return s_ed25519_verify(msg_hash, sizeof(msg_hash), sig, siglen, ctx_prefix, ctx_prefix_size, stat… in ed25519ph_verify()

Completed in 5 milliseconds