Package | Description |
---|---|
gov.nist.secauto.swid.builder.resource | |
gov.nist.secauto.swid.builder.resource.file | |
gov.nist.secauto.swid.builder.resource.firmware |
Modifier and Type | Method and Description |
---|---|
static HashAlgorithm |
HashAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
HashAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Map<HashAlgorithm,List<Byte>> |
SimpleResourceEntry.getDigestValues() |
Map<HashAlgorithm,List<Byte>> |
AbstractObjectBasedResourceEntry.getDigestValues() |
Map<HashAlgorithm,List<Byte>> |
ResourceEntry.getDigestValues() |
protected abstract EnumMap<HashAlgorithm,List<Byte>> |
AbstractObjectBasedResourceEntry.processDigests(ENTRY_TYPE resource) |
Modifier and Type | Method and Description |
---|---|
SimpleResourceEntry |
SimpleResourceEntry.digestValue(HashAlgorithm algorithm,
List<Byte> bytes)
Associate a list of bytes representing a digest with the hash function used to generate the
digest for this entry.
|
List<Byte> |
SimpleResourceEntry.getDigestValue(HashAlgorithm key) |
List<Byte> |
AbstractObjectBasedResourceEntry.getDigestValue(HashAlgorithm key) |
List<Byte> |
ResourceEntry.getDigestValue(HashAlgorithm key) |
byte[] |
ResourceCollection.getMessageDigest(HashAlgorithm algorithm)
Retrieve a digest of all of the resources in the collection.
|
static byte[] |
HashUtils.hash(HashAlgorithm algorithm,
byte[] bytes)
Generates a hash value, in the form of an array of bytes, by digesting a provided bytes based on
the provided hash algorithm.
|
static byte[] |
HashUtils.hash(HashAlgorithm algorithm,
File file)
Generates a hash value, in the form of an array of bytes, by digesting a provided input stream
based on the provided hash algorithm.
|
static byte[] |
HashUtils.hash(HashAlgorithm algorithm,
InputStream is)
Generates a hash value, in the form of an array of bytes, by digesting a provided input stream
based on the provided hash algorithm.
|
static byte[] |
HashUtils.processDigest(HashAlgorithm algorithm,
byte[] mdbytes)
Processes the provided hash value, truncating the value based on the width of the provided hash
algorithm.
|
Constructor and Description |
---|
SimpleResourceEntry(String path,
Map<HashAlgorithm,List<Byte>> digestValues,
Long size,
String version)
Construct a new
ResourceEntry using simple provided values. |
Modifier and Type | Method and Description |
---|---|
Map<HashAlgorithm,byte[]> |
FileBuilder.getHashAlgorithmToValueMap() |
Modifier and Type | Method and Description |
---|---|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
byte[] hashBytes)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
File file)
Sets the to-be-built file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
InputStream is)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FileBuilder |
FileBuilder.hash(HashAlgorithm algorithm,
String hashHexBytes)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
ResourceReference.getAlgorithm() |
HashAlgorithm |
FirmwarePayloadDigest.getAlgorithm() |
Modifier and Type | Method and Description |
---|---|
FirmwarePayloadBuilder |
FirmwarePayloadBuilder.addDigest(DigestType type,
HashAlgorithm algorithm,
byte[] digest)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
FirmwarePayloadBuilder |
FirmwarePayloadBuilder.addDigest(DigestType type,
HashAlgorithm algorithm,
File file)
Sets the to-be-built file's hash value, for the provided algorithm, to the provided value.
|
FirmwarePayloadBuilder |
FirmwarePayloadBuilder.addDigest(DigestType type,
HashAlgorithm algorithm,
InputStream is)
Sets the file's hash value, for the provided algorithm, to the provided value.
|
Constructor and Description |
---|
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
byte[] value) |
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
byte[] value,
byte[] guidance) |
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
File file) |
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
File file,
byte[] guidance) |
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
InputStream is) |
FirmwarePayloadDigest(DigestType type,
HashAlgorithm algorithm,
InputStream is,
byte[] guidance) |
ResourceReference(URI uri,
HashAlgorithm algorithm,
byte[] bytes) |
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.