-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address first round of review comments
- Loading branch information
Showing
9 changed files
with
251 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
from typing import List, Optional | ||
|
||
class Fernet: | ||
class InvalidToken(Exception): ... | ||
|
||
class Fernet(object): | ||
def __init__(self, key: bytes) -> None: ... | ||
def decrypt(self, token: bytes, ttl: Optional[int]) -> bytes: ... | ||
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ... | ||
def encrypt(self, data: bytes) -> bytes: ... | ||
def extract_timestamp(self, token: bytes) -> int: ... | ||
@classmethod | ||
def generate_key(cls) -> bytes: ... | ||
|
||
class MultiFernet: | ||
class MultiFernet(object): | ||
def __init__(self, fernets: List[Fernet]) -> None: ... | ||
def decrypt(self, token: bytes, ttl: Optional[int]) -> bytes: ... | ||
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ... | ||
def encrypt(self, data: bytes) -> bytes: ... | ||
def rotate(self, msg: bytes) -> bytes: ... |
8 changes: 4 additions & 4 deletions
8
third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from typing import Any | ||
from typing import Any, Optional | ||
|
||
class Binding: | ||
ffi: Any | ||
lib: Any | ||
class Binding(object): | ||
ffi: Optional[Any] | ||
lib: Optional[Any] | ||
def init_static_locks(self) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.