Home
last modified time | relevance | path

Searched refs:blockMode (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java318 public static int toKeymaster(@NonNull @BlockModeEnum String blockMode) { in toKeymaster() argument
319 if (BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in toKeymaster()
321 } else if (BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) { in toKeymaster()
323 } else if (BLOCK_MODE_CTR.equalsIgnoreCase(blockMode)) { in toKeymaster()
325 } else if (BLOCK_MODE_GCM.equalsIgnoreCase(blockMode)) { in toKeymaster()
328 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in toKeymaster()
333 public static @BlockModeEnum String fromKeymaster(int blockMode) { in fromKeymaster() argument
334 switch (blockMode) { in fromKeymaster()
344 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in fromKeymaster()
356 for (int blockMode : blockModes) { in allFromKeymaster()
[all …]