Skip to main content
. 2025 Nov 1;25(21):6677. doi: 10.3390/s25216677
Algorithm 2 Init
  • 1:

    Let G:{0,1}λ{0,1}2λ+2 a random generator.

  • 2:

    Let G={0,1}λ, where{0,1}λ employs bitwise addition

  • 3:

    and ConvertG:{0,1}λG denote a function that transforms a λ-bit random string to a random group element in G. ConvertG(m):

  • 4:

    Let u|G|

  • 5:

    if u=2s for an integer s then

  • 6:

         Output the group element corresponding to G(m), for PRG G:{0,1}λ{0,1}s

  • 7:

    else

  • 8:

         Let llog2u+λ

  • 9:

         Output the group element corresponding to G(m)modu, for a PRG G:{0,1}λ{0,1}l

  • 10:

    end if