PKCS1_PSS sign()方法 [英] PKCS1_PSS sign() method

查看:94
本文介绍了PKCS1_PSS sign()方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试解决问题,但无数次失败.我需要使用方法sign(),并且导入了正确的库,但是仍然无法识别它.

I have been trying to fix an issue but failed countless times. I need to use a method, sign(), and I have the correct library imported, however its still not being recognized.

我正在用Python进行编码,这就是我认为很重要的内容:

I'm coding in Python and this is what I have that seems important:

#importing the library
from Crypto.Signature import PKCS1_PSS

[...]
signer = PKCS1_PSS.new(keypair)
sig = PKCS1_PSS.sign(keypair)

但是sign()方法是该库中整个代码中唯一无法识别的东西:

But the sign() method is the only thing in the entire code from that library that doesn't get recognized:

"此检查检测到应解析但不解析的名称.由于动态调度和鸭子输入,这在有限的范围内是可能的,但是有用的案例数.支持顶级和类项目比实例项更好."

"This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items."

有人对如何解决此问题有任何建议或知道我在做什么错吗?

Does anyone have any suggestions on how to fix this or know what I'm doing wrong?

推荐答案

但是,它应该类似于 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆