in src/main/java/com/amazonaws/encryptionsdk/CryptoAlgorithm.java [204:221]
public String getDataKeyAlgo() {
if (info.kdf().HKDF() == null) {
return KEY_ALGORITHM;
} else {
String hmac = info.kdf().HKDF().hmac().name();
switch (hmac) {
case "SHA_256":
return HKDF_SHA256;
case "SHA_384":
return HKDF_SHA384;
case "SHA_512":
return HKDF_SHA512;
default:
throw new UnsupportedOperationException(
"Support for Data Key Algorithm:" + hmac + " not yet built");
}
}
}