pkanwar | de1ac79 | 2017-03-19 10:49:01 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.hardware.radio@1.1; |
| 18 | |
| 19 | import IRadioResponse; |
| 20 | import @1.0::IRadio; |
| 21 | |
| 22 | /** |
| 23 | * This interface is used by telephony and telecom to talk to cellular radio. |
| 24 | * All the functions have minimum one parameter: |
| 25 | * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the |
| 26 | * duration of a method call. If clients provide colliding serials (including passing the same |
| 27 | * serial to different methods), multiple responses (one for each method call) must still be served. |
| 28 | * setResponseFunctions must work with @1.1::IRadioResponse and @1.1::IRadioIndication. |
| 29 | */ |
| 30 | interface IRadio extends @1.0::IRadio { |
| 31 | /** |
| 32 | * Provide Carrier specific information to the modem that must be used to |
| 33 | * encrypt the IMSI and IMPI. Sent by the framework during boot, carrier |
| 34 | * switch and everytime the framework receives a new certificate. |
| 35 | * |
| 36 | * @param serial Serial number of request. |
| 37 | * @param carrierKey Carrier specific key to be used for encryption. It must |
| 38 | * be opaque to the framework. This is the byte-stream representation |
| 39 | * of the key. This is an external encoded form for the key used when |
| 40 | * a standard representation of the key is needed outside the Java |
| 41 | * Virtual Machine, as when transmitting the key to some other party. |
| 42 | * The key is encoded according to a standard format |
| 43 | * (such as X.509 SubjectPublicKeyInfo or PKCS#8), and is returned using |
| 44 | * the getEncoded method. |
| 45 | * @param keyIdentifier This is an opaque value we're given by the carrier |
| 46 | * and is returned to the carrier. This is used by the server to |
| 47 | * help it locate the private key to decrypt the permanent identity. |
| 48 | * |
| 49 | * Response callback is |
| 50 | * IRadioResponse.setCarrierInfoForImsiEncryptionResponse() |
| 51 | */ |
| 52 | oneway setCarrierInfoForImsiEncryption(int32_t serial, vec<uint8_t> carrierKey, |
| 53 | string keyIdentifier); |
| 54 | }; |