The interfaces exposed by commonly used cryptographic libraries are clumsy, complicated, and assume an understanding of cryptographic algorithms. The challenge is to design high-level abstractions that require minimum knowledge and effort to use while also allowing maximum control when needed.
This paper proposes such high-level abstractions consisting of simple cryptographic primitives and full declarative configuration. These abstractions can be implemented on top of any cryptographic library in any language. We have implemented these abstractions in Python, and used them to write a wide variety of well-known security protocols, including Signal, Kerberos, and TLS.
We show that programs using our abstractions are much smaller and easier to write than using low-level libraries, where size of security protocols implemented is reduced by about a third on average. We show our implementation incurs a small overhead, less than 5 microseconds for shared key operations and less than 341 microseconds (< 1%) for public key operations. We also show our abstractions are safe against main types of cryptographic misuse reported in the literature.
Validating a Web Service Security Abstraction by Typing
XML Web服务大致上是一种RPC服务,其中请求和响应以XML编码为SOAP信封,并通过HTTP传输。我们考虑在SOAP级别对请求和响应进行身份验证的问题,而不是依赖于传输级别的安全性。我们提出了一个安全的抽象,灵感来自早期的工作安全RPC,其中的Web服务导出的方法注释与三个安全级别之一:无,认证,或认证和加密。我们的抽象模型作为一个对象演算与原语定义和调用Web服务。我们描述我们的对象演算的语义,通过翻译到一个较低层次的语言与原语的消息传递和密码学。为了验证我们的语义,我们嵌入了指定请求和响应的正确身份验证的对应断言。借助Gordon和Jeffrey的Cryptyc密码协议的类型论,我们简单地通过类型化来验证对应断言。最后,我们描述了我们的语义通过自定义SOAP头的实现。
Selective Token-Level Cryptographic Redaction for Privacy-Preserving Clinical Deployment of Large Language Models
MedVisAI Lab, Singapore(新加坡MedVisAI实验室);Ruijin Hospital, Shanghai Jiao Tong University School of Medicine, China(中国上海交通大学医学院瑞金医院);Lee Kong Chian School of Medicine, Nanyang Technological University, Singapore(新加坡南洋理工大学Lee Kong Chian医学院)