package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev

# Packages

# Functions

DecryptRotatedSearchableAcraBlock decrypt AcraBlock with hash and verify that hash correct Note: function expects that AcraBlock was encrypted with key related to this context and hmacKey passed according to this context context should be ClientID or AdditionalContext.
DecryptRotatedSearchableAcraStruct decrypt acrastruct with hash and verify that hash correct Note: function expects that AcraStruct was encrypted with key related to this context and hmacKey passed according to this context context should be ClientID or AdditionalContext.
ExtractHash return Hash if matched otherwise nil.
ExtractHashAndData return hash and data with extracted hash if matched.
GenerateHMAC return hmac with default hash function.
GetDefaultHashSize return size of hash signature with hash func number prefix.
NewDefaultHash return hash wrapper from raw hash data.
NewHashProcessor extract hmac value data passed to DataProcessor.Process func and check hmac of data returned from processor by comparing with extracted hmac.
NewHMACProcessor return initialized HMACProcessor by provided keystore.HmacKeyStore).
NewSearchableEncryptor return new SearchableDataEncryptor.

# Variables

ErrHMACNotMatch hmac not equal to data in AcraStruct.

# Structs

HashData implementation of Hash interface.
Processor HMAC DataProcessor implementation.
SearchableDataEncryptor adds hash prefix to AcraStruct generated with encryptor.AcrawriterDataEncryptor.

# Interfaces

Hash provide methods to work with known hash signature.
SearchableEncryptorKeystore keystore interface used by SearchableAcrastructEncryptor.

# Type aliases

SimpleHmacKeyStore wrap byte slice and implement HmacKeyStore interface.