ge_p1p1_to_p3.cs 465 B

123456789101112131415161718
  1. using System;
  2. namespace Renci.SshNet.Security.Chaos.NaCl.Internal.Ed25519Ref10
  3. {
  4. internal static partial class GroupOperations
  5. {
  6. /*
  7. r = p
  8. */
  9. internal static void ge_p1p1_to_p3(out GroupElementP3 r, ref GroupElementP1P1 p)
  10. {
  11. FieldOperations.fe_mul(out r.X, ref p.X, ref p.T);
  12. FieldOperations.fe_mul(out r.Y, ref p.Y, ref p.Z);
  13. FieldOperations.fe_mul(out r.Z, ref p.Z, ref p.T);
  14. FieldOperations.fe_mul(out r.T, ref p.X, ref p.Y);
  15. }
  16. }
  17. }