Parcourir la source

Clarify how Quotient tests do rounding.

Change-Id: Ifea17a894065cce607845208c96e2092e4632d61
Reviewed-on: https://boringssl-review.googlesource.com/8607
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
David Benjamin il y a 8 ans
committed by Adam Langley
Parent
révision
1701776908
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      crypto/bn/bn_tests.txt

+ 2
- 1
crypto/bn/bn_tests.txt Voir le fichier

@@ -5957,7 +5957,8 @@ B = -542fb814f45924aa09a16f2a6

# Quotient tests.
#
# These test vectors satisfy Quotient = A / B and Remainder = A - B * Quotient.
# These test vectors satisfy Quotient = A / B, rounded towards zero, and
# Remainder = A - B * Quotient.

Quotient = 1
Remainder = 0


Chargement…
Annuler
Enregistrer