calculateDigestsForNameSpace

fun calculateDigestsForNameSpace(nameSpaceName: String, issuerNameSpaces: Map<String, List<ByteArray>>, digestAlgorithm: Algorithm): Map<Long, ByteArray>

Calculates all digests in a given name space.

Return

a map from digest identifiers to the calculated digest.

Parameters

nameSpaceName

the name space to pick from the issuerNameSpaces map.

issuerNameSpaces

a map from name spaces into a list of IssuerSignedItemBytes.

digestAlgorithm

the digest algorithm to use, for example Algorithm.SHA256.

Throws

if the digest algorithm isn't supported.