arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.13445cs.CR
收藏

基于意图的密码学API设计以实现密码学敏捷性

Intent-Based Cryptographic API Design for Cryptographic Agility

IBM Research Europe(IBM欧洲研究院)

Navaneeth Rameshan, Gregoire Messmer

AI总结:

针对当前密码学API缺乏算法灵活性、阻碍后量子迁移的问题,提出基于意图的API设计原则,通过解耦密钥创建与算法身份、支持策略驱动算法替换和密钥演化,实现无需重写应用代码的密码学更新。

摘要:

随着组织向后量子密码学迁移,它们面临着在庞大复杂的软件组合中更新密码算法的重大挑战。然而,目前使用的大多数密码学API都是围绕特定算法设计的。这些API期望显式使用特定算法,很少或根本不支持基于策略的算法选择,并且没有提供将现有密钥迁移到更新算法的直接方法。这使得向后的量子密码学过渡具有挑战性。配套的评估框架识别了密码学敏捷性的障碍,并解释了为什么算法过渡主要是一个软件工程问题。为了解决当前密码学API的局限性,我们确定了设计密码学敏捷API所必需的原则。这些设计原则源自五个基本架构特征(抽象性、稳定性、时间灵活性、分离性和可扩展性)。我们还展示了如何使用Protocol Buffers API设计模式的几个示例来实现这些设计原则。特别是,我们提出了一个基于作用域的意图词汇表,它允许将密钥创建与算法身份解耦。它还支持在适用作用域内透明地替换算法。密码学治理通过一个不规定策略格式的抽象策略API实现。密钥由稳定标识符表示,并支持密钥演化操作(轮换、转换、迁移),从而促进算法和提供商之间的迁移,同时跟踪原始密钥身份及其演化历史。通过这种方法,更新密码学成为一个操作过程,无需重写应用程序代码。

英文摘要:

As organizations move toward post-quantum cryptography, they face the major challenge of updating cryptographic algorithms across large, complex software portfolios. However, most cryptographic APIs in use today were designed around specific algorithms. These APIs expect explicit use of specific algorithms, provide little or no support for policy-based algorithm selection, and offer no straightforward way to migrate existing keys to newer algorithms. This makes the transition to post-quantum cryptography challenging. The companion assessment framework identifies the barriers to cryptographic agility and explains why algorithm transition is largely a software engineering problem. To address the limitations of current cryptographic APIs, we identify the principles necessary to design a cryptographically agile API. The design principles are derived from five fundamental architectural characteristics (Abstraction, Stability, Temporal Flexibility, Separation, and Extensibility). We also show how the design principles can be implemented using several examples of Protocol Buffers API design patterns. In particular, we present an intent vocabulary that is based on scopes which allows for decoupling key creation from algorithm identities. It also supports transparent substitutions of algorithms in the applicable scope. Cryptographic governance is enabled by an abstract policy API that does not prescribe the policy format. Keys are represented by stable identifiers and support key evolution operations (rotation, transformation, migration), facilitating migration between algorithms and providers while tracking both the original key identity and its evolution history. With this approach, updating cryptography becomes an operational process without the need to rewrite application code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑