Google is committed to advancing racial equity for Black communities. See how.

ApplicationKeySupport

public final class ApplicationKeySupport extends Object

Utility methods and definitions for working with Weave Application keys.

Nested Class Summary

interface ApplicationKeySupport.ConstituentKeySource  

Constant Summary

int kAppIntermediateKeySize The size (in bytes) of a derived intermediate key.

Field Summary

public static final byte[] kAppIntermediateKeyDiversifier Diversifier value used to derive an intermediate key from a root key plus an epoch key.

Public Constructor Summary

Public Method Summary

static byte[]
deriveApplicationKey(int keyId, ApplicationKeySupport.ConstituentKeySource keySource, byte[] salt, byte[] diversifier, int keyLen)

Inherited Method Summary

Constants

public static final int kAppIntermediateKeySize

The size (in bytes) of a derived intermediate key.

Constant Value: 32

Fields

public static final byte[] kAppIntermediateKeyDiversifier

Diversifier value used to derive an intermediate key from a root key plus an epoch key.

Public Constructors

public ApplicationKeySupport ()

Public Methods

public static byte[] deriveApplicationKey (int keyId, ApplicationKeySupport.ConstituentKeySource keySource, byte[] salt, byte[] diversifier, int keyLen)

Parameters
keyId
keySource
salt
diversifier
keyLen
Throws
Exception