mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 17:35:06 -04:00
crypto: implement RSA-2048-PSS
This commit is contained in:
parent
d675aa3414
commit
f3629f863d
13 changed files with 692 additions and 3 deletions
|
@ -147,7 +147,7 @@ namespace ams::crypto::impl {
|
|||
};
|
||||
|
||||
template<size_t Bits>
|
||||
class StackBigNum : public BigNum {
|
||||
class StaticBigNum : public BigNum {
|
||||
public:
|
||||
static constexpr size_t NumBits = Bits;
|
||||
static constexpr size_t NumWords = util::AlignUp(NumBits, BitsPerWord) / BitsPerWord;
|
||||
|
@ -155,7 +155,7 @@ namespace ams::crypto::impl {
|
|||
private:
|
||||
Word word_buf[NumWords];
|
||||
public:
|
||||
constexpr StackBigNum() : word_buf() {
|
||||
constexpr StaticBigNum() : word_buf() {
|
||||
this->ReserveStatic(word_buf, NumWords);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue