# Path: mom/security/rsa/keys.py
# ZERO_BYTE = _compat.ZERO_BYTE
# SHA1_DIGESTINFO = b("""\
# \x30\x21\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05\x00\x04\x14""")
# SHA1_DIGESTINFO_LEN = len(SHA1_DIGESTINFO)
# ZERO_ONE_BYTES = b("\x00\x01")
# FF_BYTE = b("\xff")
# def pkcs1_v1_5_encode(key_size, data):
#   def __init__(self,
#                key_info,
#                encoded_key,
#                encoding,
#                *unused_args,
#                **unused_kwargs):
#   def encoded_key(self):
#   def encoding(self):
#   def key(self):
#   def size(self):
#   def key_info(self):
#   def sign(self, digest):
#   def verify(self, digest, signature_bytes):
#   def pkcs1_v1_5_sign(self, digest):
#   def pkcs1_v1_5_verify(self, digest, signature_bytes):
#   def _sign(self, digest):
#   def _verify(self, digest, signature):
# class Key(object):
# class PrivateKey(Key):
# class PublicKey(Key):


from Crypto import PublicKey
from mom.security.rsa import keys
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
:module: mom.security.rsa.pycrypto
:synopsis: PyCrypto RSA implementation wrapper.

.. autoclass:: PrivateKey
.. autoclass:: PublicKey
"""

from __future__ import absolute_import



__author__ = "yesudeep@google.com (Yesudeep Mangalapilly)"



# Path: mom/security/rsa/keys.py
# ZERO_BYTE = _compat.ZERO_BYTE
# SHA1_DIGESTINFO = b("""\
# \x30\x21\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05\x00\x04\x14""")
# SHA1_DIGESTINFO_LEN = len(SHA1_DIGESTINFO)
# ZERO_ONE_BYTES = b("\x00\x01")
# FF_BYTE = b("\xff")
# def pkcs1_v1_5_encode(key_size, data):
#   def __init__(self,
#                key_info,
#                encoded_key,
#                encoding,
#                *unused_args,
#                **unused_kwargs):
#   def encoded_key(self):
#   def encoding(self):
#   def key(self):
#   def size(self):
#   def key_info(self):
#   def sign(self, digest):
#   def verify(self, digest, signature_bytes):
#   def pkcs1_v1_5_sign(self, digest):
#   def pkcs1_v1_5_verify(self, digest, signature_bytes):
#   def _sign(self, digest):
#   def _verify(self, digest, signature):
# class Key(object):
# class PrivateKey(Key):
# class PublicKey(Key):


# Path: mom/security/rsa/pycrypto.py
from Crypto import PublicKey
from mom.security.rsa import keys

# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
:module: mom.security.rsa.pycrypto
:synopsis: PyCrypto RSA implementation wrapper.

.. autoclass:: PrivateKey
.. autoclass:: PublicKey
"""

from __future__ import absolute_import



__author__ = "yesudeep@google.com (Yesudeep Mangalapilly)"



class PrivateKey(keys.PrivateKey):