GET /public/key-exchange

生成临时 ECDH P-256 密钥对,返回服务端公钥和交换 ID。客户端用此公钥完成 ECDH → 派生 AES-256-GCM 会话密钥加密密码。

身份认证 - 内部接口 None application/json

响应

引用的 Schema

service-core/base/dto.DataResponse-service-identity/internal/handler/dto/KeyExchangeResponse

字段类型必填示例约束描述
code integer 否
data service-identity/internal/handler/dto.KeyExchangeResponse 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.KeyExchangeResponse

字段类型必填示例约束描述
algorithm string 否 "ECDH-P256-HKDF-SHA256-AES256GCM"
expires_in integer 否 TTL in seconds
key_exchange_id string 否
server_pub_key string 否 base64 ECDH P-256 public key