We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c2697 commit 0271ef1Copy full SHA for 0271ef1
sigstore/hashes.py
@@ -19,11 +19,6 @@
19
from sigstore_protobuf_specs.dev.sigstore.common.v1 import HashAlgorithm
20
21
22
-class DIRSHA256_P1(hashes.HashAlgorithm):
23
- name = "dirsha256-p1"
24
- digest_size = 32
25
- block_size = -1
26
-
27
class Hashed(BaseModel):
28
"""
29
Represents hashed value.
@@ -45,6 +40,5 @@ def as_prehashed(self) -> Prehashed:
45
40
def hazmat_algorithm(self) -> hashes.HashAlgorithm:
46
41
if self.algorithm == HashAlgorithm.SHA2_256:
47
42
return hashes.SHA256()
48
- if self.algorithm == HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED:
49
- return DIRSHA256_P1()
43
+ # Add more hashes here.
50
44
raise ValueError(f"unknown hash algorithm: {self.algorithm}")
0 commit comments