#NEWLINE# def wrap_rsa_key( public_key , private_key_bytes ) : #NEWLINE# #INDENT# wrapped_key = public_key . encrypt ( private_key_bytes , padding . OAEP ( mgf = padding . MGF1 ( algorithm = hashes . SHA1 ( ) ) , algorithm = hashes . SHA1 ( ) , label = None ) ) #NEWLINE# encoded_wrapped_key = base64 . b64encode ( wrapped_key ) #NEWLINE# return encoded_wrapped_key