| | |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2009 Parametric Technology Corporation (PTC) |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.crypto; |
| | | |
| | |
| | | |
| | | // Requested encryption cipher validation. |
| | | String requestedCipherTransformation = cfg.getCipherTransformation(); |
| | | Integer requestedCipherTransformationKeyLengthBits = cfg.getCipherKeyLength(); |
| | | int requestedCipherTransformationKeyLengthBits = cfg.getCipherKeyLength(); |
| | | if (! requestedCipherTransformation.equals( |
| | | this.preferredCipherTransformation) || |
| | | requestedCipherTransformationKeyLengthBits != |
| | |
| | | |
| | | // Requested MAC algorithm validation. |
| | | String requestedMACAlgorithm = cfg.getMacAlgorithm(); |
| | | Integer requestedMACAlgorithmKeyLengthBits = cfg.getMacKeyLength(); |
| | | int requestedMACAlgorithmKeyLengthBits = cfg.getMacKeyLength(); |
| | | if (!requestedMACAlgorithm.equals(this.preferredMACAlgorithm) || |
| | | requestedMACAlgorithmKeyLengthBits != |
| | | this.preferredMACAlgorithmKeyLengthBits) |