清单2中的回调旨在支持使用同一个公开-私有密匙对进行签名和解密,因此将在两种情况下进行检查并对任意一种情况返回相同的密码。
The callback in Listing 2 is designed to support both signing and decrypting using the same private-public key pair, so it checks for both cases and returns the same password in either case.
在运行时,Rampart需要获得用于保护私有密匙的密码,这个私有密匙用于对已加密数据进行解密。
At run time, Rampart needs to get the password used to protect the private key to be used to decrypt the encrypted data.
应用推荐