Skip to content

Commit

Permalink
v2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalchev committed Apr 2, 2020
1 parent 06f73da commit c81a5fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Sections
### Developers
-->

## [2.8.0] - 2020-04-02

### Added
- Add support for service-level callbacks. You can now register a callback that will be called for all characteristics that belong to it. [#229](https://github.com/ikalchev/HAP-python/pull/229)

### Fixed
- - Switch the symmetric cipher to use the cryptography module. This greatly improves performance. [#232](https://github.com/ikalchev/HAP-python/pull/232)

## [2.7.0] - 2020-01-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyhap/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""This module contains constants used by other modules."""
MAJOR_VERSION = 2
MINOR_VERSION = 7
MINOR_VERSION = 8
PATCH_VERSION = 0
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
Expand Down
4 changes: 3 additions & 1 deletion pyhap/hap_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

backend = default_backend()


# Various "tag" constants for HAP's TLV encoding.
class HAP_TLV_TAGS:
REQUEST_TYPE = b'\x00'
Expand Down Expand Up @@ -69,7 +70,7 @@ class HAP_OPERATION_CODE:
class HAP_CRYPTO:
HKDF_KEYLEN = 32 # bytes, length of expanded HKDF keys
HKDF_HASH = hashes.SHA512() # Hash function to use in key expansion
TAG_LENGTH = 16 # ChaCha20Poly1305 tag length
TAG_LENGTH = 16 # ChaCha20Poly1305 tag length
TLS_NONCE_LEN = 12 # bytes, length of TLS encryption nonce


Expand All @@ -89,6 +90,7 @@ def hap_hkdf(key, salt, info):
)
return hkdf.derive(key)


class UnprivilegedRequestException(Exception):
pass

Expand Down

0 comments on commit c81a5fb

Please sign in to comment.