diff options
| author | Alex Klyubin <klyubin@google.com> | 2015-05-18 09:52:29 -0700 |
|---|---|---|
| committer | Alex Klyubin <klyubin@google.com> | 2015-05-18 09:54:54 -0700 |
| commit | bdc1382ac575a06c98cab69117700e081c90c595 (patch) | |
| tree | 333074e30eab95253531217527a623fead0cb236 /docs/html/sdk/api_diff/10/changes | |
| parent | a194eb9b5d36acc083aa55b9a152567d68e84f14 (diff) | |
Switch from getSpi to getCurrentSpi.
Crypto primitives' getSpi has a side-effect which modifies the state
of the primitive: it selects an SPI implementation if it hasn't been
selected yet (e.g., Cipher.getInstance("AES") doesn't select an SPI
implementation until Cipher.init). The new method getCurrentSpi has
no side-effects: it simply returns null if no SPI implementation is
selected. The switch to getCurrentSpi lets us avoid side-effects and
throw a more pertinent exception when no SPI is yet selected.
Bug: 18088752
Change-Id: I6d62eb67f904a15782673d16bcdae240cdc8f979
Diffstat (limited to 'docs/html/sdk/api_diff/10/changes')
0 files changed, 0 insertions, 0 deletions
