diff --git a/src/main/java/no/ssb/dapla/dlp/pseudo/func/fpe/FpeFunc.java b/src/main/java/no/ssb/dapla/dlp/pseudo/func/fpe/FpeFunc.java index 1014d91..d0f298c 100644 --- a/src/main/java/no/ssb/dapla/dlp/pseudo/func/fpe/FpeFunc.java +++ b/src/main/java/no/ssb/dapla/dlp/pseudo/func/fpe/FpeFunc.java @@ -14,10 +14,17 @@ public class FpeFunc extends AbstractPseudoFunc { private final FormatPreservingEncryption fpe; private final FpeConfigService fpeConfigService = new FpeConfigService(); + private static final String ALGORITHM = "FPE"; + // We should consider implementing a more sophisticated tweak, see: // https://crypto.stackexchange.com/questions/10903/what-are-the-uses-of-tweaks-in-block-ciphers private static final byte[] STATIC_TWEAK = new byte[0]; + @Override + public String getAlgorithm() { + return ALGORITHM; + } + public FpeFunc(PseudoFuncConfig genericConfig) { super(genericConfig.getFuncDecl()); config = fpeConfigService.resolve(genericConfig);