private IEnumerable <Scalar> Sequence()
 {
     while (true)
     {
         yield return(new Scalar(_strobe.Prf(32, false)));
     }
 }
 private IEnumerable <Scalar> Sequence()
 {
     while (true)
     {
         Scalar scalar;
         int    overflow;
         do
         {
             scalar = new Scalar(_strobe.Prf(32, false), out overflow);
         }while (overflow != 0);
         yield return(scalar);
     }
 }
 public Scalar GenerateChallenge()
 {
     _strobe.AddAssociatedMetaData(Encoding.UTF8.GetBytes("challenge"), false);
     return(new Scalar(_strobe.Prf(32, false)));
 }
Beispiel #4
0
 // Generate Fiat Shamir challenges
 public Scalar GenerateChallenge()
 {
     _strobe.AddAssociatedMetaData(ChallengeTag, false);
     return(new Scalar(_strobe.Prf(KeySizeInBytes, false)));
 }
Beispiel #5
0
 public Scalar GetScalar()
 {
     return(new Scalar(_strobe.Prf(32, false)));
 }