ai_v/venv/Lib/site-packages/Cryptodome/PublicKey/_curve.py
公司git 67f2621a69 feat(payment): 集成支付宝支付与订单管理功能
- 在应用中注册支付蓝图(payment_bp)以支持支付接口
- 配置支付宝相关秘钥、回调地址及环境选项
- 新增订单模型(Order),支持订单数据存储与管理
- 管理后台接口添加订单列表查询功能,支持超级管理员访问
- 购买页面与表单修改,支持不同套餐的购买提交
- 支付成功页面提示,显示订单编号及积分到账信息
- 移除买积分按钮禁用逻辑,开放购买功能
2026-01-14 17:00:43 +08:00

38 lines
1.8 KiB
Python

# This file is licensed under the BSD 2-Clause License.
# See https://opensource.org/licenses/BSD-2-Clause for details.
# This is the element of a database of curve parameters. Items are indexed by their
# human-friendly name, such as "P-256". The element has the following fields:
#
# - p the prime number that defines the finite field for all modulo operations
# - b the constant in the Short Weierstrass curve equation (can be None)
# - order the number of elements in the group with the generator below
# - Gx the affine coordinate X of the generator point
# - Gy the affine coordinate Y of the generator point
# - G the generator, as an EccPoint object
# - modulus_bits the minimum number of bits for encoding the modulus p
# - oid an ASCII string with the registered ASN.1 Object ID
# - context a raw pointer to memory holding a context for all curve operations (can be None)
# - canonical the canonical name of the curve
# - openssh the ASCII string used in OpenSSH id files for public keys on this curve
# - rawlib the reference to the dynamic libary with the low-level functions
# - validate a function that raises an exception if the the input point is invalid
class _Curve(object):
def __init__(self, p, b, order, Gx, Gy, G, modulus_bits, oid, context,
canonical, openssh, rawlib, validate=None):
self.p = p
self.b = b
self.order = order
self.Gx = Gx
self.Gy = Gy
self.G = G
self.modulus_bits = modulus_bits
self.oid = oid
self.context = context
self.canonical = canonical
self.openssh = openssh
self.rawlib = rawlib
self.validate = validate