summaryrefslogtreecommitdiffstats
path: root/nova/crypto.py
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2010-11-01 14:13:58 -0400
committerTodd Willey <todd@ansolabs.com>2010-11-01 14:13:58 -0400
commitb76286c5ef2b2182cb0c2cc42b31971656e8f70f (patch)
tree8141344278733882ddd57f9b0f5dfb1991860651 /nova/crypto.py
parentbf15a6eb3de8c688dc1364959dd3e00d3e26a563 (diff)
parentab1c34f71745b901f40fd6a72dffc7a29a864990 (diff)
downloadnova-b76286c5ef2b2182cb0c2cc42b31971656e8f70f.tar.gz
nova-b76286c5ef2b2182cb0c2cc42b31971656e8f70f.tar.xz
nova-b76286c5ef2b2182cb0c2cc42b31971656e8f70f.zip
Merge trunk and apply some sphinx love.
Diffstat (limited to 'nova/crypto.py')
-rw-r--r--nova/crypto.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/nova/crypto.py b/nova/crypto.py
index 16b4f5e1f..d73559587 100644
--- a/nova/crypto.py
+++ b/nova/crypto.py
@@ -15,10 +15,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-
"""
-Wrappers around standard crypto, including root and intermediate CAs,
-SSH key_pairs and x509 certificates.
+Wrappers around standard crypto data elements.
+
+Includes root and intermediate CAs, SSH key_pairs and x509 certificates.
+
"""
import base64
@@ -227,12 +228,12 @@ def mkcacert(subject='nova', years=1):
def compute_md5(fp):
"""
- @type fp: file
- @param fp: File pointer to the file to MD5 hash. The file pointer will be
+ :type fp: file
+ :param fp: File pointer to the file to MD5 hash. The file pointer will be
reset to the beginning of the file before the method returns.
- @rtype: tuple
- @return: the hex digest version of the MD5 hash
+ :rtype: tuple
+ :return: the hex digest version of the MD5 hash
"""
m = hashlib.md5()
fp.seek(0)