147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce/*
247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Copyright (C) 2014 The Android Open Source Project
347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Licensed under the Apache License, Version 2.0 (the "License");
547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * you may not use this file except in compliance with the License.
647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * You may obtain a copy of the License at
747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *      http://www.apache.org/licenses/LICENSE-2.0
947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce *
1047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * Unless required by applicable law or agreed to in writing, software
1147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * distributed under the License is distributed on an "AS IS" BASIS,
1247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * See the License for the specific language governing permissions and
1447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce * limitations under the License.
1547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce */
1647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
1747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#ifndef CLEARKEY_TYPES_H_
1847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#define CLEARKEY_TYPES_H_
1947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
2047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#include <media/hardware/CryptoAPI.h>
2116dfdcff6e4bb025220b88d5fc132ae48e7cb437John "Juce" Bruce#include <openssl/aes.h>
2247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#include <utils/KeyedVector.h>
2347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#include <utils/Vector.h>
2447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
2547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucenamespace clearkeydrm {
2647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
2716dfdcff6e4bb025220b88d5fc132ae48e7cb437John "Juce" Bruceconst uint8_t kBlockSize = AES_BLOCK_SIZE;
2847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucetypedef uint8_t KeyId[kBlockSize];
2947a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucetypedef uint8_t Iv[kBlockSize];
3047a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
3147a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucetypedef android::CryptoPlugin::SubSample SubSample;
3247a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
3347a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Brucetypedef android::KeyedVector<android::Vector<uint8_t>,
3447a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce        android::Vector<uint8_t> > KeyMap;
3547a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
3647a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce} // namespace clearkeydrm
3747a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce
3847a86fb32803a37f03a40e4ea13e1f7db6cd728dJohn "Juce" Bruce#endif // CLEARKEY_TYPES_H_
39