This also adds the MAC length constraint on imported HMAC keys. HMAC doesn't work without this constraint at the moment. Bug: 18088752 Change-Id: I8613f58f5d2a84df00bcf6179d13e30619440330
21 lines
352 B
Java
21 lines
352 B
Java
package android.security;
|
|
|
|
/**
|
|
* Keymaster exception.
|
|
*
|
|
* @hide
|
|
*/
|
|
public class KeymasterException extends Exception {
|
|
|
|
private final int mErrorCode;
|
|
|
|
public KeymasterException(int errorCode, String message) {
|
|
super(message);
|
|
mErrorCode = errorCode;
|
|
}
|
|
|
|
public int getErrorCode() {
|
|
return mErrorCode;
|
|
}
|
|
}
|