mirror of
https://github.com/google/pebble.git
synced 2025-11-18 13:30:56 -05:00
fw: drivers: add da1468x bluetooth code
This commit is contained in:
27
src/bluetooth-fw/da1468x/controller/main/include/aes.h
Normal file
27
src/bluetooth-fw/da1468x/controller/main/include/aes.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2024 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define AES_128_BLOCK_SIZE (16)
|
||||
#define AES_128_KEY_SIZE (16)
|
||||
|
||||
bool aes_128_encrypt_block(const uint8_t key[AES_128_KEY_SIZE],
|
||||
const uint8_t plain_text_block[AES_128_BLOCK_SIZE],
|
||||
uint8_t cipher_text_block_out[AES_128_BLOCK_SIZE]);
|
||||
Reference in New Issue
Block a user