Ejemplo n.º 1
0
	def _createPayload(self, recipientKeyId):
		'''Create the encrypted output for the given recipient'''
		total = self._createUnencryptedPayload()
		# Encrypt and sign the result
		ownKeyId = DbClient.getOwnKeyId()
		return CryptoClient.encryptAndSign(total, recipientKeyId, ownKeyId)
Ejemplo n.º 2
0
	def _makeFingerprintChecker(self, userid):
		'''Use the given userid to make a FingerprintChecker between me and them'''
		person = DbClient.getProfile(userid, False)
		ownFingerprint = CryptoClient.getFingerprint(DbClient.getOwnKeyId())
		usrFingerprint = CryptoClient.getFingerprint(person['keyid'])
		return FingerprintChecker(ownFingerprint, usrFingerprint)