Add placeholder function _ecies_gen_ephemeral_key to _internal.py

pull/83/head
tuxxy 2017-10-19 00:59:50 -06:00
parent a81b6e0f23
commit ec3f95e62f
No known key found for this signature in database
GPG Key ID: 7BB971A0E89144D9
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from nkms.crypto import api as API
from typing import Tuple, Union
from npre import elliptic_curve
def _ecies_gen_ephemeral_key(
recp_pubkey: Union[bytes, elliptic_curve.ec_element]
) -> Tuple[bytes, bytes]:
"""
Generates and encrypts an ephemeral key for the `recp_pubkey`.
:param recp_pubkey: Recipient's pubkey
:return: Tuple of encrypted symmetric key, and encrypted ephemeral privkey
"""
pass