VirtualBox

忽略:
時間撮記:
2022-3-3 下午07:17:34 (3 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
150325
訊息:

libs/openssl-3.0.1: started applying and adjusting our OpenSSL changes to 3.0.1. bugref:10128

位置:
trunk/src/libs/openssl-3.0.1
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/libs/openssl-3.0.1

    • 屬性 svn:mergeinfo
      •  

        old new  
        1212/vendor/openssl/1.1.1c:131722-131725
        1313/vendor/openssl/1.1.1k:145841-145843
         14/vendor/openssl/3.0.1:150323-150324
         15/vendor/openssl/current:147554-150322
  • trunk/src/libs/openssl-3.0.1/include/crypto/siphash.h

    r91772 r94082  
    11/*
    2  * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    4  * Licensed under the OpenSSL license (the "License").  You may not use
     4 * Licensed under the Apache License 2.0 (the "License").  You may not use
    55 * this file except in compliance with the License.  You can obtain a copy
    66 * in the file LICENSE in the source distribution or at
     
    88 */
    99
    10 #include <stddef.h>
     10#ifndef OSSL_CRYPTO_SIPHASH_H
     11# define OSSL_CRYPTO_SIPHASH_H
     12# pragma once
    1113
    12 #define SIPHASH_BLOCK_SIZE        8
    13 #define SIPHASH_KEY_SIZE         16
    14 #define SIPHASH_MIN_DIGEST_SIZE   8
    15 #define SIPHASH_MAX_DIGEST_SIZE  16
     14# include <stddef.h>
     15
     16# define SIPHASH_BLOCK_SIZE        8
     17# define SIPHASH_KEY_SIZE         16
     18# define SIPHASH_MIN_DIGEST_SIZE   8
     19# define SIPHASH_MAX_DIGEST_SIZE  16
    1620
    1721typedef struct siphash_st SIPHASH;
     
    2428void SipHash_Update(SIPHASH *ctx, const unsigned char *in, size_t inlen);
    2529int SipHash_Final(SIPHASH *ctx, unsigned char *out, size_t outlen);
     30
     31/* Based on https://131002.net/siphash C reference implementation */
     32
     33struct siphash_st {
     34    uint64_t total_inlen;
     35    uint64_t v0;
     36    uint64_t v1;
     37    uint64_t v2;
     38    uint64_t v3;
     39    unsigned int len;
     40    unsigned int hash_size;
     41    unsigned int crounds;
     42    unsigned int drounds;
     43    unsigned char leavings[SIPHASH_BLOCK_SIZE];
     44};
     45
     46/* default: SipHash-2-4 */
     47# define SIPHASH_C_ROUNDS 2
     48# define SIPHASH_D_ROUNDS 4
     49
     50#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette