""" # (This is ported from ndn::gep::algo::Rsa, and named RsaAlgorithm because # "Rsa" is very short and not all the Common Client Libraries have namespaces.) from random import SystemRandom from import default_backend from import padding, rsa from import serialization from import hashes from import Blob from _node import * from _params import EncryptAlgorithmType from _key import DecryptKey from _key import EncryptKey _systemRandom = SystemRandom () """ This module defines the RsaAlgorithm class which provides static methods to manipulate keys, encrypt and decrypt using RSA. # A copy of the GNU Lesser General Public License is in the file COPYING. # You should have received a copy of the GNU Lesser General Public License # along with this program. See the # GNU Lesser General Public License for more details. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # Author: Jeff Thompson # Author: From ndn-group-encrypt src/algo/rsa # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -*- Mode:python c-file-style:"gnu" indent-tabs-mode:nil -*- */ # Copyright (C) 2015-2017 Regents of the University of California.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |