Searched refs:blockMode (Results 1 – 1 of 1) sorted by relevance
339 public static int toKeymaster(@NonNull @BlockModeEnum String blockMode) { in toKeymaster() argument340 if (BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in toKeymaster()342 } else if (BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) { in toKeymaster()344 } else if (BLOCK_MODE_CTR.equalsIgnoreCase(blockMode)) { in toKeymaster()346 } else if (BLOCK_MODE_GCM.equalsIgnoreCase(blockMode)) { in toKeymaster()349 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in toKeymaster()354 public static @BlockModeEnum String fromKeymaster(int blockMode) { in fromKeymaster() argument355 switch (blockMode) { in fromKeymaster()365 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in fromKeymaster()377 for (int blockMode : blockModes) { in allFromKeymaster()[all …]