Package org.bouncycastle.crypto.hash2curve.impl
package org.bouncycastle.crypto.hash2curve.impl
-
ClassesClassDescriptionImplements the Elligator 2 Map to curve according to section 6.7.1 of RFC 9380 This is the straight-line implementation optimized for Montgomery curves as defined in section F.3.Generic implementation of the sqrt_ratio(u, v) operation defined in RFC 9380.Curve processor for Montgomery curves of the form B * y^2 = x^3 + A * x^2 + x Internally we treat this as a long Weierstrass curve y^2 = x^3 + a2 * x^2 + a4 * x + a6 with a2 = A / B, a4 = 1 / B, a6 = 0.Curve processor for NIST curves (P-256, P-384, P-521) where the cofactor is 1.Implements the Simplified Shallue van de Woestijne Map to curve according to section 6.6.2 of RFC 9380 This is the straight-line implementation optimized for Weierstrass curves as defined in section F.2.The result of a sqrt_ratio calculationXmdMessageExpansion is an implementation of the MessageExpansion interface, used to expand a given message to a specified length in bytes while following cryptographic domain separation principles.