DEP0206:在已完成的 Hmac 实例上调用 digest()


🌐 DEP0206: Calling digest() on an already-finalized Hmac instance

类型:仅文档

🌐 Type: Documentation-only

多次调用 hmac.digest() 会返回一个空缓冲区,而不是抛出错误。这种行为与 hash.digest() 不一致,并且可能导致细微的错误。在未来的版本中,对已完成的 Hmac 实例调用 hmac.digest() 将会抛出错误。

🌐 Calling hmac.digest() more than once returns an empty buffer instead of throwing an error. This behavior is inconsistent with hash.digest() and may lead to subtle bugs. Calling hmac.digest() on a finalized Hmac instance will throw an error in a future version.