matchEncryptKey abstract method

bool matchEncryptKey(
  1. EncryptKey pKey
)

Verifies if this decryption key matches the given encryption key.

Validation logic: decrypt(encrypt(data, PK), SK) == original data

pKey is the encryption key (public/symmetric) to verify against.

Returns true if keys form a valid pair (encryption/decryption works).

Implementation

bool matchEncryptKey(EncryptKey pKey);