Index: ppapi/api/dev/pp_decryption_buffer_dev.idl |
diff --git a/ppapi/api/dev/pp_decryption_buffer_dev.idl b/ppapi/api/dev/pp_decryption_buffer_dev.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..38bff3e64ad5dc8d79f3902b379bb1df059306f9 |
--- /dev/null |
+++ b/ppapi/api/dev/pp_decryption_buffer_dev.idl |
@@ -0,0 +1,59 @@ |
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+/** |
+ * The data structure for decryption subsample entry. |
+ */ |
+[assert_size(8)] |
+struct PP_DecryptionSubsampleEntry_Dev { |
+ uint32_t clear_bytes; |
+ uint32_t cypher_bytes; |
+}; |
+ |
+/** |
+ * The data structure for decryption buffer. |
dmichael (off chromium)
2012/08/09 16:24:52
This doesn't tell me any more than the class name
|
+ */ |
+[assert_size(348)] |
+struct PP_DecryptionBuffer_Dev { |
xhwang
2012/08/07 00:53:48
dmichael@: this is what I talked about offline. It
|
+ /** |
+ * Buffer to hold the encrypted data. Should be allocated using the |
+ * PPB_Buffer interface for consistent interprocess behaviour. |
+ */ |
+ PP_Resource data; |
dmichael (off chromium)
2012/08/09 16:24:52
I think everything else is okay, but I'd rather yo
|
+ |
+ /** |
+ * Size of data to be discarded before applying the decryption (in bytes). |
+ */ |
+ uint32_t data_offset; |
+ |
+ /** |
+ * Client-specified identifier for the decryption buffer. |
+ */ |
+ uint32_t id; |
+ |
+ /** |
+ * Key ID of the decryption buffer. |
+ */ |
+ uint8_t[64] key_id; |
+ uint32_t key_id_size; |
+ |
+ /** |
+ * Initialization vector of the decryption buffer. |
+ */ |
+ uint8_t[64] iv; |
+ uint32_t iv_size; |
+ |
+ /** |
+ * Checksum of the decryption buffer. |
+ */ |
+ uint8_t[64] checksum; |
+ uint32_t checksum_size; |
+ |
+ /** |
+ * Subsamples of the decryption buffer, as specified in Common Encryption. |
+ */ |
+ PP_DecryptionSubsampleEntry_Dev[16] subsamples; |
+ uint32_t num_subsamples; |
+}; |